diff options
Diffstat (limited to 'media-video/ripwrap/ripwrap-0.20.ebuild')
-rw-r--r-- | media-video/ripwrap/ripwrap-0.20.ebuild | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/media-video/ripwrap/ripwrap-0.20.ebuild b/media-video/ripwrap/ripwrap-0.20.ebuild index 376fc9b5b..3c1fdc428 100644 --- a/media-video/ripwrap/ripwrap-0.20.ebuild +++ b/media-video/ripwrap/ripwrap-0.20.ebuild @@ -1,12 +1,13 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ +EAPI=2 inherit perl-app DESCRIPTION="gtk-perl wrapper for mencoder and mp4box with scripting support" HOMEPAGE="http://sourceforge.net/projects/ripwrap/" -SRC_URI="mirror://sourceforge/ripwrap/${P}.tar.gz" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" @@ -14,25 +15,12 @@ KEYWORDS="~amd64" IUSE="aac mp2 mp3 x264 mp4" DEPEND="dev-lang/perl - dev-perl/gtk2-perl - >=media-video/lsdvd-0.10 - media-video/mplayer - mp4? ( media-video/gpac )" - -pkg_setup() { - if ! built_with_use media-video/mplayer encode; then - eerror "ripwrap requires mplayer to be installed with the encode use" - eerror "flag set. Please recompile mplayer with USE=\"encode\": " - eerror "USE=\"encode\" emerge mplayer" - die "MEncoder not installed!" - fi - - for i in aac mp2 mp3 x264; do - if use $i && ! built_with_use media-video/mplayer $i; then - eerror "You have enabled $i support, but mplayer needs to compiled with" - eerror "USE=$i to support $i. Please recompile mplayer with $i" - eerror "support or disable the $i use flag" - die "$i support not available" - fi - done -} + dev-perl/gtk2-perl + >=media-video/lsdvd-0.10 + media-video/mplayer[encode] + aac? ( media-video/mplayer[aac] ) + mp2? ( media-video/mplayer[mp2] ) + mp3? ( media-video/mplayer[mp3] ) + mp4? ( media-video/gpac ) + x264? ( media-video/mplayer[x264] )" +RDEPEND=${DEPEND} |