summaryrefslogtreecommitdiff
blob: 8b491de1b4869d77fb7dd8d9f2125c5487bf12bb (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
# 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.3 2003/07/12 21:12:37 aliz 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
}