summaryrefslogtreecommitdiff
blob: 4a8cca74fd7825e079b7359c151b0abbc4f1b8ad (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/dvb-mpegtools/dvb-mpegtools-0.2.5.ebuild,v 1.4 2003/09/10 05:03:28 msterret Exp $

IUSE=""

S=${WORKDIR}/${P}
DESCRIPTION="mpegtools package for manipulation of various MPEG file formats"
HOMEPAGE="http://www.metzlerbros.org/dvb/"
SRC_URI="http://www.metzlerbros.org/dvb/${P}.tar.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"

DEPEND=">=sys-apps/sed-4
	>=media-tv/linuxtv-dvb-1.0.0_pre2"

src_compile() {
	make || die
}

src_install() {
	# b0rked at the moment (with 1.0.0-pre2)
	# and modify symlink source ;)
	sed -i \
		-e s/'cp dvbaudio '/'#cp dvbaudio '/ \
		-e s/'ln -sf $(DESTDIR)dvb-mpegtools $(DESTDIR)$$f ;'/'ln -sf $(LDESTDIR)dvb-mpegtools $(DESTDIR)$$f ;'/ \
		${S}/Makefile

	dodir /usr/bin
	make LDESTDIR='/usr/bin/' DESTDIR=${D}/usr/bin/ install || die
	dodoc ${S}/README
}