| 1 |
tantive |
1.1 |
# Copyright 1999-2004 Gentoo Foundation
|
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
|
|
# $Header: /home/cvsroot/gentoo-x86/media-video/streamdvd/streamdvd-0.4.ebuild,v 1.2 2004/03/28 21:32:06 dholm Exp $
|
| 4 |
|
|
|
| 5 |
|
|
DESCRIPTION="fast tool to backup Video DVDs 'on the fly'"
|
| 6 |
|
|
HOMEPAGE="http://www.badabum.de/streamdvd.html"
|
| 7 |
|
|
SRC_URI="http://www.badabum.de/down/${P}.tar.gz"
|
| 8 |
|
|
|
| 9 |
|
|
LICENSE="GPL-2"
|
| 10 |
|
|
SLOT="0"
|
| 11 |
|
|
KEYWORDS="~x86 ~ppc"
|
| 12 |
|
|
IUSE="gui"
|
| 13 |
|
|
|
| 14 |
|
|
DEPEND="media-libs/libdvdread
|
| 15 |
|
|
gui? ( dev-perl/perl-tk
|
| 16 |
|
|
app-cdr/cdrtools
|
| 17 |
|
|
>=media-video/dvdauthor-0.6.5
|
| 18 |
|
|
>=app-cdr/dvd+rw-tools-5.13.4.7.4 )"
|
| 19 |
|
|
|
| 20 |
|
|
S="${WORKDIR}/StreamDVD-${PV}"
|
| 21 |
|
|
|
| 22 |
|
|
src_unpack() {
|
| 23 |
|
|
unpack ${A}
|
| 24 |
|
|
cd ${S} || die
|
| 25 |
|
|
sed -i "s: -g -Wall : ${CFLAGS} :" Makefile
|
| 26 |
|
|
use gui && epatch "${FILESDIR}/${P}.patch"
|
| 27 |
|
|
}
|
| 28 |
|
|
|
| 29 |
|
|
src_compile() {
|
| 30 |
|
|
emake all addon || die # compile also optional packages
|
| 31 |
|
|
}
|
| 32 |
|
|
|
| 33 |
|
|
src_install() {
|
| 34 |
|
|
dobin streamdvd streamanalyze
|
| 35 |
|
|
newbin lsdvd lsdvd-streamdvd # patched lsdvd, rename to avoid conflict with media-video/lsdvd
|
| 36 |
|
|
dodoc COPYING README
|
| 37 |
|
|
newdoc contrib/lsdvd/AUTHORS AUTHORS.lsdvd
|
| 38 |
|
|
newdoc contrib/lsdvd/README README.lsdvd
|
| 39 |
|
|
newdoc contrib/StreamAnalyze/README README.streamanalyze
|
| 40 |
|
|
if [ `use gui` ]
|
| 41 |
|
|
then
|
| 42 |
|
|
eval `perl '-V:installvendorlib'`
|
| 43 |
|
|
insinto "$installvendorlib/StreamDVD"
|
| 44 |
|
|
doins Gui/StreamDVD/*.pm
|
| 45 |
|
|
dobin Gui/StreamDVD.pl
|
| 46 |
|
|
dosym StreamDVD.pl /usr/bin/streamdvd_gui # convinience symlink
|
| 47 |
|
|
newdoc Gui/README README.gui
|
| 48 |
|
|
fi
|
| 49 |
|
|
}
|
| 50 |
|
|
|