blob: 57d9fbad9f53a10588d02b4b90582735b4ad1916 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/dvdrip/dvdrip-0.52.7.ebuild,v 1.3 2006/03/25 21:08:46 swegener Exp $
inherit perl-module eutils flag-o-matic
MY_P=${P/dvdr/Video-DVDR}
# Next three lines are to handle PRE versions
MY_P=${MY_P/_pre/_}
MY_URL="dist"
[ "${P/pre}" != "${P}" ] && MY_URL="dist/pre"
S=${WORKDIR}/${MY_P}
DESCRIPTION="Dvd::rip is a graphical frontend for transcode"
HOMEPAGE="http://www.exit1.org/dvdrip/"
SRC_URI="http://www.exit1.org/${PN}/${MY_URL}/${MY_P}.tar.gz"
LICENSE="Artistic GPL-2"
SLOT="0"
KEYWORDS="~x86 amd64 ppc"
IUSE="cdr gnome xvid rar mplayer ogg fping subtitles"
DEPEND="gnome? ( gnome-extra/gtkhtml )
cdr? ( >=media-video/vcdimager-0.7.19
>=app-cdr/cdrdao-1.1.7
virtual/cdrtools
>=media-video/mjpegtools-1.6.0 )
xvid? ( media-video/xvid4conf )
rar? ( app-arch/rar )
mplayer? ( media-video/mplayer )
>=media-video/transcode-0.6.14
>=media-gfx/imagemagick-5.5.3
dev-perl/gtk-perl
perl-core/Storable
dev-perl/Event"
RDEPEND="${DEPEND}
fping? ( >=net-analyzer/fping-2.3 )
ogg? ( >=media-sound/ogmtools-1.000 )
subtitles? ( media-video/subtitleripper )
virtual/eject
dev-perl/libintl-perl"
pkg_setup() {
built_with_use media-video/transcode dvdread \
|| die "transcode needs dvdread support builtin. Please re-emerge transcode with the dvdread USE flag."
built_with_use media-video/transcode extrafilters \
&& die "Please remerge transcode with -extrafilters in USE=, " \
"you have filters installed not compatible with dvdrip."
}
src_unpack() {
unpack ${A}
cd ${S}
filter-flags "-ftracer"
sed -i -e 's:cc :$(CC) :' src/Makefile || die "sed failed"
}
src_install() {
newicon lib/Video/DVDRip/icon.xpm dvdrip.xpm
make_desktop_entry dvdrip dvd::rip dvdrip.xpm Video
perl-module_src_install
use fping || rm ${D}/usr/bin/dvdrip-master
}
|