summaryrefslogtreecommitdiff
blob: 37cd7e38c471cc5e817fd13be9efac1ecdf107ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/lxdvdrip/lxdvdrip-1.20_pre1-r1.ebuild,v 1.3 2005/01/27 20:15:30 luckyduck Exp $

inherit eutils

MY_P="${PN}-${PV/_/-}"

DESCRIPTION="command line tool to automate the process of ripping and burning DVD"
SRC_URI="http://download.berlios.de/lxdvdrip/${MY_P}.tgz"
HOMEPAGE="http://developer.berlios.de/projects/lxdvdrip/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE=""
DEPEND=">=media-video/dvdauthor-0.6.9"

S="${WORKDIR}/${PN}"

src_unpack() {
	unpack ${A}
	cd ${S} || die

	# security bug #64628 fix
	epatch ${FILESDIR}/${P}-overflow.patch

	sed -ie "s/gcc -g/\$(CC) \$(CFLAGS)/g" Makefile
}

src_compile() {
	emake || die
}

src_install () {
	dobin lxdvdrip
	dodoc doc-pak/*
	insinto /etc
	newins doc-pak/lxdvdrip.conf.EN lxdvdrip.conf
}