diff options
author | Alexis Ballier <aballier@gentoo.org> | 2011-12-19 16:43:13 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2011-12-19 16:43:13 +0000 |
commit | 6fba7586c730f2573715bb195745b114b6bb7343 (patch) | |
tree | b05244a5d4a1eeab9f7887622ffa2751eedf61f6 /media-video | |
parent | Stable for AMD64, wrt bug #393837 (diff) | |
download | gentoo-2-6fba7586c730f2573715bb195745b114b6bb7343.tar.gz gentoo-2-6fba7586c730f2573715bb195745b114b6bb7343.tar.bz2 gentoo-2-6fba7586c730f2573715bb195745b114b6bb7343.zip |
Simplify X checks in ebuild: use REQUIRED_USE instead of silently disabling features, people enabling X related features should know they will require X. Remove video_cards_vesa useflag that does nothing.
(Portage version: 2.2.0_alpha81/cvs/Linux x86_64)
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/mplayer/ChangeLog | 7 | ||||
-rw-r--r-- | media-video/mplayer/mplayer-9999.ebuild | 113 |
2 files changed, 48 insertions, 72 deletions
diff --git a/media-video/mplayer/ChangeLog b/media-video/mplayer/ChangeLog index 7e194b6ff30f..b49d9361acb8 100644 --- a/media-video/mplayer/ChangeLog +++ b/media-video/mplayer/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-video/mplayer # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v 1.828 2011/12/19 15:23:54 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v 1.829 2011/12/19 16:43:12 aballier Exp $ + + 19 Dec 2011; Alexis Ballier <aballier@gentoo.org> mplayer-9999.ebuild: + Simplify X checks in ebuild: use REQUIRED_USE instead of silently disabling + features, people enabling X related features should know they will require X. + Remove video_cards_vesa useflag that does nothing. 19 Dec 2011; Alexis Ballier <aballier@gentoo.org> mplayer-9999.ebuild: some new formats have been added after ffmpeg 0.9 which mplayer trunk now diff --git a/media-video/mplayer/mplayer-9999.ebuild b/media-video/mplayer/mplayer-9999.ebuild index cdf0f2bb4cb2..59f9938b85aa 100644 --- a/media-video/mplayer/mplayer-9999.ebuild +++ b/media-video/mplayer/mplayer-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-9999.ebuild,v 1.120 2011/12/19 15:23:54 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-9999.ebuild,v 1.121 2011/12/19 16:43:13 aballier Exp $ EAPI=4 @@ -21,7 +21,7 @@ tga +theora +tremor +truetype +toolame +twolame +unicode v4l vdpau vidix +vorbis win32codecs +X +x264 xanim xinerama +xscreensaver +xv +xvid xvmc zoran" -VIDEO_CARDS="s3virge mga tdfx vesa" +VIDEO_CARDS="s3virge mga tdfx" for x in ${VIDEO_CARDS}; do IUSE+=" video_cards_${x}" done @@ -63,22 +63,6 @@ RDEPEND+=" win32codecs? ( media-libs/win32codecs ) ) ) - X? ( - ${X_RDEPS} - dga? ( x11-libs/libXxf86dga ) - ggi? ( - media-libs/libggi - media-libs/libggiwmh - ) - opengl? ( virtual/opengl ) - vdpau? ( x11-libs/libvdpau ) - xinerama? ( x11-libs/libXinerama ) - xscreensaver? ( x11-libs/libXScrnSaver ) - xv? ( - x11-libs/libXv - xvmc? ( x11-libs/libXvMC ) - ) - ) a52? ( media-libs/a52dec ) aalib? ( media-libs/aalib ) alsa? ( media-libs/alsa-lib ) @@ -88,6 +72,7 @@ RDEPEND+=" bs2b? ( media-libs/libbs2b ) cdio? ( dev-libs/libcdio ) cdparanoia? ( !cdio? ( media-sound/cdparanoia ) ) + dga? ( x11-libs/libXxf86dga ) directfb? ( dev-libs/DirectFB ) dts? ( media-libs/libdca ) dv? ( media-libs/libdv ) @@ -107,6 +92,7 @@ RDEPEND+=" esd? ( media-sound/esound ) enca? ( app-i18n/enca ) faad? ( media-libs/faad2 ) + ggi? ( media-libs/libggi media-libs/libggiwmh ) gif? ( media-libs/giflib ) gsm? ( media-sound/gsm ) iconv? ( virtual/libiconv ) @@ -125,6 +111,7 @@ RDEPEND+=" nas? ( media-libs/nas ) nut? ( >=media-libs/libnut-661 ) openal? ( media-libs/openal ) + opengl? ( virtual/opengl ) png? ( media-libs/libpng ) pnm? ( media-libs/netpbm ) pulseaudio? ( media-sound/pulseaudio ) @@ -140,8 +127,14 @@ RDEPEND+=" speex? ( media-libs/speex ) theora? ( media-libs/libtheora[encode?] ) truetype? ( ${FONT_RDEPS} ) + vdpau? ( x11-libs/libvdpau ) vorbis? ( media-libs/libvorbis ) + X? ( ${X_RDEPS} ) xanim? ( media-video/xanim ) + xinerama? ( x11-libs/libXinerama ) + xscreensaver? ( x11-libs/libXScrnSaver ) + xv? ( x11-libs/libXv ) + xvmc? ( x11-libs/libXvMC ) " X_DEPS=" @@ -151,13 +144,11 @@ X_DEPS=" ASM_DEP="dev-lang/yasm" DEPEND="${RDEPEND} dev-util/pkgconfig - X? ( - ${X_DEPS} - dga? ( x11-proto/xf86dgaproto ) - dxr3? ( media-video/em8300-libraries ) - xinerama? ( x11-proto/xineramaproto ) - xscreensaver? ( x11-proto/scrnsaverproto ) - ) + dga? ( x11-proto/xf86dgaproto ) + dxr3? ( media-video/em8300-libraries ) + X? ( ${X_DEPS} ) + xinerama? ( x11-proto/xineramaproto ) + xscreensaver? ( x11-proto/scrnsaverproto ) amd64? ( ${ASM_DEP} ) doc? ( dev-libs/libxslt app-text/docbook-xml-dtd @@ -186,7 +177,18 @@ fi REQUIRED_USE="bindist? ( !faac !win32codecs ) dvdnav? ( dvd ) ass? ( truetype ) - truetype? ( iconv )" + truetype? ( iconv ) + dxr3? ( X ) + ggi? ( X ) + xinerama? ( X ) + dga? ( X ) + opengl? ( X ) + osdmenu? ( X ) + vdpau? ( X ) + vidix? ( X ) + xscreensaver? ( X ) + xv? ( X ) + xvmc? ( xv )" pkg_setup() { if [[ ${PV} == *9999* ]]; then @@ -500,52 +502,21 @@ src_configure() { # X enabled configuration # ########################### myconf+=" --disable-gui" - if use X; then - uses="dxr3 ggi xinerama" - for i in ${uses}; do - use ${i} || myconf+=" --disable-${i}" - done - use dga || myconf+=" --disable-dga1 --disable-dga2" - use opengl || myconf+=" --disable-gl" - use osdmenu && myconf+=" --enable-menu" - use vdpau || myconf+=" --disable-vdpau" - use video_cards_vesa || myconf+=" --disable-vesa" - use vidix || myconf+=" --disable-vidix --disable-vidix-pcidb" - use xscreensaver || myconf+=" --disable-xss" - - if use xv; then - if use xvmc; then - myconf+=" --enable-xvmc --with-xvmclib=XvMCW" - else - myconf+=" --disable-xvmc" - fi - else - myconf+=" - --disable-xv - --disable-xvmc - " - use xvmc && elog "Disabling xvmc because it requires \"xv\" useflag enabled." - fi + myconf+=" --disable-vesa" + uses="dxr3 ggi vdpau xinerama xv" + for i in ${uses}; do + use ${i} || myconf+=" --disable-${i}" + done + use dga || myconf+=" --disable-dga1 --disable-dga2" + use opengl || myconf+=" --disable-gl" + use osdmenu && myconf+=" --enable-menu" + use vidix || myconf+=" --disable-vidix --disable-vidix-pcidb" + use xscreensaver || myconf+=" --disable-xss" + use X || myconf+=" --disable-x11" + if use xvmc; then + myconf+=" --enable-xvmc --with-xvmclib=XvMCW" else - myconf+=" - --disable-dga1 - --disable-dga2 - --disable-dxr3 - --disable-ggi - --disable-gl - --disable-vdpau - --disable-vidix - --disable-vidix-pcidb - --disable-xinerama - --disable-xss - --disable-xv - --disable-xvmc - --disable-x11 - " - uses="dga dxr3 ggi opengl osdmenu vdpau vidix xinerama xscreensaver xv" - for i in ${uses}; do - use ${i} && elog "Useflag \"${i}\" require \"X\" useflag enabled to work." - done + myconf+=" --disable-xvmc" fi ############################ |