Minor retouches and forwarding the changes to the live ebuild, thanks a lot to Nikoli...
authorLuca Barbato <lu_zero@gentoo.org>
Thu, 1 Dec 2011 20:13:49 +0000 (20:13 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Thu, 1 Dec 2011 20:13:49 +0000 (20:13 +0000)
Package-Manager: portage-2.2.0_alpha76/cvs/Linux x86_64

media-video/mplayer2/ChangeLog
media-video/mplayer2/Manifest
media-video/mplayer2/metadata.xml
media-video/mplayer2/mplayer2-2.0_p20111126.ebuild
media-video/mplayer2/mplayer2-9999.ebuild

index cb95689747a49f894cbde8940732cdd250fcda2c..a51a4fa4f6a1bd47a9431f6ba4d95df0cade9740 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for media-video/mplayer2
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/ChangeLog,v 1.29 2011/11/30 04:49:34 lu_zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/ChangeLog,v 1.30 2011/12/01 20:13:49 lu_zero Exp $
+
+  01 Dec 2011; Luca Barbato <lu_zero@gentoo.org> mplayer2-2.0_p20111126.ebuild,
+  mplayer2-9999.ebuild, metadata.xml:
+  Minor retouches and forwarding the changes to the live ebuild, thanks a lot
+  to Nikoli again
 
 *mplayer2-2.0_p20111126 (30 Nov 2011)
 
index 0d3bdac5136654d457d10981bcf99ffc4940f50e..7fb33d50b875749708090a81b7bcaa4290cab4f9 100644 (file)
@@ -9,14 +9,14 @@ DIST font-arial-iso-8859-2.tar.bz2 222208 RMD160 562d4d92c4f5f3d537340fde3ad8d14
 DIST mplayer2-2.0.tar.xz 3675080 RMD160 7dc37f0071a9a8bc348a40b26b480a365a904d62 SHA1 0df8d4e5484128b7b28029273b7704ab5d5419bc SHA256 f1d17397bbdfcff2220d8b4bc17e7de5b78488736e21dca2df0d8a3216c85910
 DIST mplayer2-2.0_p20111126.tar.xz 3349400 RMD160 7ba89e64d3421fba99fd8ed80b5ad66ea324b14f SHA1 0992f7450e84b6c3d55486edc6ca430dee2260a7 SHA256 540229ddaf0ca183c2e18da74713aa3d58713a38a8fcb306a6ce677d6a330d1e
 EBUILD mplayer2-2.0.ebuild 17099 RMD160 2730f5df208df4b786142560f6e5b585f64158bb SHA1 36fe31e66f3dadaf4a30c4e869ed460fb762897e SHA256 ea3ea3e6a2a4e0f339c73745f84192653a8ab7a5e829c6801012511e31ab8b16
-EBUILD mplayer2-2.0_p20111126.ebuild 16672 RMD160 918ff4ea987f549d4cf309c31965f69d20a0a0a0 SHA1 1d84b812fa1609ea8e3ec60081ad3f9d05904b87 SHA256 036057b94d7f245d07a2539e0e78be187b68c745a5e1c5ef67f65444acbab6b9
-EBUILD mplayer2-9999.ebuild 16333 RMD160 034b8caf5d02ba6e3ec2432631289341179e010d SHA1 900b0fb6b8629e2b0c151977f7831f467ca715ae SHA256 8da5203ab19dd25827d66c50d5b44ae6067960e34ae0165876c57d23ced27d86
-MISC ChangeLog 7733 RMD160 56153781285902d8ed24ebbc27666627c52128f7 SHA1 6bc796e7c8defa6e94fe6ea4406bb25ebdecd577 SHA256 f113382ba63a93125d8919a6993002f6f0cd4b37f6ea892723284abed09bda11
-MISC metadata.xml 4031 RMD160 bea4935d9f2e9bb2518b4ee36fcfc4549c0bd7f7 SHA1 7e7360cc5e6e4bf2a365dbed28d6284815328e0c SHA256 c66f6177a9af9b1c9e2f513e1e712eefe4bf41fb6aba2b276fa06fbbc77c2c03
+EBUILD mplayer2-2.0_p20111126.ebuild 16716 RMD160 8c8133a743c835ec9bdf21eb54059a5016f9f389 SHA1 61ac1eded7e5dc1b31d081966483a91ab36efc27 SHA256 b972a37136bf32e69b85070a01023fececb4a029e27cae567e9196f6397b9ef1
+EBUILD mplayer2-9999.ebuild 16708 RMD160 9c0fe3458c9d48c6c16ad30abde275d67388ea52 SHA1 a4ab901f03aed7ce08029c0640eb9dfd711d1716 SHA256 d9009fdb88eaab6d749ede4f39e4b9afb78c04864eb83410f03978102f722dfd
+MISC ChangeLog 7948 RMD160 50382d6ac8986f7736b77ac8e185220f4fa39695 SHA1 98c7aab4e518fa736e92f20954e23e75f7a85126 SHA256 ac5b9116bb36477a587b399c939f7e3ad74fef5ff87b83e017945475e84ddc06
+MISC metadata.xml 4197 RMD160 ddd3782831ebffe26b073f86be6726f9d10f6f3a SHA1 2d58d43505f2869e30d3b50fa9eaa2a3dd5e813a SHA256 b53fa260149137d852aec1384bb20cc65f64bdedb94ed3c0967e0f940dcedc70
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.18 (GNU/Linux)
 
-iF4EAREIAAYFAk7Vte0ACgkQYpJnKVbCxcy7pQD6Ah2S/UKYKl2FQfzfGHf5ktts
-YhKxlwZPBZmE1vehwUkA+QEtxqd80WLdUXC54IjZc5yY8UAb9iBDUEvX0Gj/lysX
-=I0ZQ
+iF4EAREIAAYFAk7X4AgACgkQYpJnKVbCxcx7VwEAl5BvqBgvzGz1Ptx4xwdSkzQn
+rLe7NdH/EeCF4Or/YZcA/1QEGh7LBEvZoDY+0jXYOK2o+Sds68veCYvZEvMDxXnV
+=OlkF
 -----END PGP SIGNATURE-----
index abe19630ff4d826f8655047f3c835c4e3a22ab91..1c7adc52b15e50c0ae26ccee4a4bcc38c8973fd8 100644 (file)
@@ -55,7 +55,8 @@
        <flag name="tga">Enables Targa video output</flag>
        <flag name="vdpau">Enables experimental VDPAU support (requires nVidia video cards) to offload MPEG2/MPEG4/VC1/WMV CPU processing to video card</flag>
        <flag name="vpx">Enables vp8 codec support using libvpx: Decoding vp8 does not require this to be enabled but libvpx can also be used for decoding; encoding vp8 requires this useflag to be enabled though.</flag>
-<flag name="xanim">Enables support for xanim based codecs</flag>
+       <flag name="symlink">Copy all binaries and configuration into locations occupied by <pkg>media-video/mplayer</pkg> and thus act like drop-in replacement.</flag>
+    <flag name="xanim">Enables support for xanim based codecs</flag>
        <flag name="xvmc">Enables X-Video Motion Compensation support</flag>
 </use>
 </pkgmetadata>
index c42947552be38b0a3ac3ba459ba2239f0f50176a..4707f0f4545dc610a81efdb280a95837ab1f1891 100644 (file)
@@ -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/mplayer2/mplayer2-2.0_p20111126.ebuild,v 1.1 2011/11/30 04:49:34 lu_zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20111126.ebuild,v 1.2 2011/12/01 20:13:49 lu_zero Exp $
 
 EAPI=4
 
@@ -30,7 +30,7 @@ SLOT="0"
 if [[ ${PV} == *9999* ]]; then
        KEYWORDS=""
 else
-       KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
+       KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux "
 fi
 IUSE="3dnow 3dnowext +a52 aalib +alsa altivec aqua +ass bidi bindist bl
 bluray bs2b +bzip2 cddb +cdio cdparanoia cpudetection custom-cpuopts
@@ -102,6 +102,7 @@ RDEPEND+="
        a52? ( media-libs/a52dec )
        aalib? ( media-libs/aalib )
        alsa? ( media-libs/alsa-lib )
+       ass? ( ${FONT_RDEPS} >=media-libs/libass-0.9.10[enca?,fontconfig] )
        bidi? ( dev-libs/fribidi )
        bluray? ( media-libs/libbluray )
        bs2b? ( media-libs/libbs2b )
@@ -123,7 +124,6 @@ RDEPEND+="
        jack? ( media-sound/jack-audio-connection-kit )
        jpeg? ( virtual/jpeg )
        ladspa? ( media-libs/ladspa-sdk )
-       ass? ( ${FONT_RDEPS} >=media-libs/libass-0.9.10[enca?,fontconfig] )
        libcaca? ( media-libs/libcaca )
        lirc? ( app-misc/lirc )
        live? ( media-plugins/live )
@@ -265,11 +265,12 @@ src_configure() {
                $(use_enable network networking)
                $(use_enable joystick)
        "
-       uses="ass bl bluray enca ftp rtc" # nemesi <- not working with in-tree ebuild
+       uses="bl bluray enca ftp rtc" # nemesi <- not working with in-tree ebuild
        myconf+=" --disable-nemesi" # nemesi automagic disable
        for i in ${uses}; do
                use ${i} || myconf+=" --disable-${i}"
        done
+       use ass || myconf+=" --disable-libass"
        use bidi || myconf+=" --disable-fribidi"
        use ipv6 || myconf+=" --disable-inet6"
        use nut || myconf+=" --disable-libnut"
index 459f5814fc1c3f24e70945ba6a74770e2e5c708d..7e40060fcd504cd117fe5f0d3caf2f56a2f3a4c4 100644 (file)
@@ -1,19 +1,22 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-9999.ebuild,v 1.18 2011/11/30 04:49:34 lu_zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-9999.ebuild,v 1.19 2011/12/01 20:13:49 lu_zero Exp $
 
 EAPI=4
 
-EGIT_REPO_URI="git://git.mplayer2.org/mplayer2.git"
-[[ ${PV} = *9999* ]] && VCS_ECLASS="git-2"
-NAMESUF=${PN/mplayer/}
+[[ ${PV} = *9999* ]] && VCS_ECLASS="git-2" || VCS_ECLASS=""
 
 inherit toolchain-funcs eutils flag-o-matic multilib base ${VCS_ECLASS}
 
+NAMESUF="${PN/mplayer/}"
 DESCRIPTION="Media Player for Linux"
 HOMEPAGE="http://www.mplayer2.org/"
-[[ ${PV} == *9999* ]] || \
-       RELEASE_URI="http://ftp.${PN}.org/pub/release/${P}.tar.xz"
+
+if [[ ${PV} == *9999* ]]; then
+       EGIT_REPO_URI="git://git.mplayer2.org/mplayer2.git"
+else
+       RELEASE_URI="http://dev.gentoo.org/~lu_zero/${PN}/${P}.tar.xz"
+fi
 SRC_URI="${RELEASE_URI}
        !truetype? (
                mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
@@ -24,16 +27,23 @@ SRC_URI="${RELEASE_URI}
 
 LICENSE="GPL-3"
 SLOT="0"
-[[ ${PV} == *9999* ]] || KEYWORDS="~amd64 ~x86 ~amd64-linux"
-IUSE="3dnow 3dnowext +a52 aalib +alsa altivec aqua +ass bidi bindist bl bluray
-bs2b cddb +cdio cdparanoia cpudetection custom-cpuopts custom-cflags debug dga
-directfb doc +dts +dv dvb +dvd +dvdnav dxr3 +enca esd +faad fbcon
-ftp gif ggi +iconv ipv6 jack joystick jpeg kernel_linux ladspa
-libcaca lirc +live mad md5sum +mmx mmxext mng +mp3 nas
-+network nut +opengl oss png pnm pulseaudio pvr +quicktime
-radio +rar +real +rtc samba +shm sdl +speex sse sse2 ssse3
-tga +theora +truetype +unicode v4l vdpau
-+vorbis win32codecs +X xanim xinerama +xscreensaver +xv xvid"
+if [[ ${PV} == *9999* ]]; then
+       KEYWORDS=""
+else
+       KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux "
+fi
+IUSE="3dnow 3dnowext +a52 aalib +alsa altivec aqua +ass bidi bindist bl
+bluray bs2b +bzip2 cddb +cdio cdparanoia cpudetection custom-cpuopts
+custom-cflags debug dga +dirac directfb doc +dts +dv dvb +dvd +dvdnav
+dxr3 +enca esd +faad fbcon ftp gif ggi gsm +iconv ipv6 jack joystick
+jpeg jpeg2k kernel_linux ladspa libcaca lirc +live mad md5sum +mmx
+mmxext mng +mp3 nas +network nut amr +opengl oss png pnm pulseaudio
+pvr +quicktime radio +rar +real +rtc rtmp samba +shm +schroedinger
+sdl +speex sse sse2 ssse3 tga +theora threads +truetype +unicode
+v4l vdpau +vorbis vpx win32codecs +X xanim xinerama +xscreensaver
++xv xvid
+"
+IUSE+=" symlink"
 
 VIDEO_CARDS="s3virge mga tdfx vesa"
 for x in ${VIDEO_CARDS}; do
@@ -41,7 +51,20 @@ for x in ${VIDEO_CARDS}; do
 done
 
 # bindist does not cope with win32codecs, which are nonfree
-REQUIRED_USE="bindist? ( !win32codecs )"
+REQUIRED_USE="bindist? ( !win32codecs )
+       cdio? ( !cdparanoia )
+       cddb? ( || ( cdio cdparanoia ) network )
+       dvdnav? ( dvd )
+       radio? ( || ( dvb v4l ) )
+       dga? ( X )
+       dxr3? ( X )
+       ggi? ( X )
+       opengl? ( X )
+       vdpau? ( X )
+       xinerama? ( X )
+       xscreensaver? ( X )
+       xv? ( X )
+"
 
 FONT_RDEPS="
        virtual/ttf-fonts
@@ -50,8 +73,9 @@ FONT_RDEPS="
 "
 # Rar: althrought -gpl version is nice, it cant do most functions normal rars can
 #      nemesi? ( net-libs/libnemesi )
+# virtual/ffmpeg does not have all USE
+LIBAV_USE="[amr?,bzip2?,dirac?,gsm?,jpeg2k?,rtmp?,schroedinger?,threads?,vpx?]"
 RDEPEND+="
-       virtual/ffmpeg
        sys-libs/ncurses
        sys-libs/zlib
        !bindist? (
@@ -125,6 +149,11 @@ RDEPEND+="
        vorbis? ( media-libs/libvorbis )
        xanim? ( media-video/xanim )
        xvid? ( media-libs/xvid )
+       || (
+               >=media-video/libav-0.6.2${LIBAV_USE}
+               >=media-video/ffmpeg-0.6_p25423${LIBAV_USE}
+       )
+       symlink? ( !media-video/mplayer )
 "
 ASM_DEP="dev-lang/yasm"
 DEPEND="${RDEPEND}
@@ -190,32 +219,17 @@ pkg_setup() {
        einfo "    media-video/libav or media-video/ffmpeg"
 }
 
-src_unpack() {
-       if [[ ${PV} = *9999* ]]; then
-               git-2_src_unpack
-       else
-               default
-       fi
-
-       if ! use truetype; then
-               unpack font-arial-iso-8859-1.tar.bz2 \
-                       font-arial-iso-8859-2.tar.bz2 \
-                       font-arial-cp1250.tar.bz2
-       fi
-}
-
 src_prepare() {
        # fix path to bash executable in configure scripts
        local bash_scripts="configure version.sh"
-       sed -i \
-               -e "1c\#!${EPREFIX}/bin/bash" \
+       sed -i -e "1c\#!${EPREFIX}/bin/bash" \
                ${bash_scripts} || die
 
        if [[ -n ${NAMESUF} ]]; then
                sed -e "/elif linux ; then/a\  _exesuf=\"${NAMESUF}\"" \
                        -i configure || die
-               sed -e "/ -m 644 DOCS\/man\/en\/mplayer/i\      mv DOCS\/man\/en\/mplayer.1 DOCS\/man\/en\/${PN}.1" \
-                       -e "/ -m 644 DOCS\/man\/\$(lang)\/mplayer/i\    mv DOCS\/man\/\$(lang)\/mplayer.1 DOCS\/man\/\$(lang)\/${PN}.1" \
+               sed -e "\, -m 644 DOCS/man/en/mplayer,i\        mv DOCS/man/en/mplayer.1 DOCS/man/en/${PN}.1" \
+                       -e "\, -m 644 DOCS/man/\$(lang)/mplayer,i\      mv DOCS/man/\$(lang)/mplayer.1 DOCS/man/\$(lang)/${PN}.1" \
                        -e "s/er.1/er${NAMESUF}.1/g" \
                        -i Makefile || die
                sed -e "s/mplayer/${PN}/" \
@@ -251,11 +265,12 @@ src_configure() {
                $(use_enable network networking)
                $(use_enable joystick)
        "
-       uses="ass bl bluray enca ftp rtc" # nemesi <- not working with in-tree ebuild
+       uses="bl bluray enca ftp rtc" # nemesi <- not working with in-tree ebuild
        myconf+=" --disable-nemesi" # nemesi automagic disable
        for i in ${uses}; do
                use ${i} || myconf+=" --disable-${i}"
        done
+       use ass || myconf+=" --disable-libass"
        use bidi || myconf+=" --disable-fribidi"
        use ipv6 || myconf+=" --disable-inet6"
        use nut || myconf+=" --disable-libnut"
@@ -269,15 +284,12 @@ src_configure() {
                "
        fi
 
-       # libcdio support: prefer libcdio over cdparanoia
-       # don't check for cddb w/cdio
-       if use cdio; then
-               myconf+=" --disable-cdparanoia"
-       else
-               myconf+=" --disable-libcdio"
-               use cdparanoia || myconf+=" --disable-cdparanoia"
-               use cddb || myconf+=" --disable-cddb"
-       fi
+       ########
+       # CDDA #
+       ########
+       use cddb || myconf+=" --disable-cddb"
+       use cdio || myconf+=" --disable-libcdio"
+       use cdparanoia || myconf+=" --disable-cdparanoia"
 
        ################################
        # DVD read, navigation support #
@@ -426,6 +438,7 @@ src_configure() {
        ################
        # Audio Output #
        ################
+       myconf+=" --disable-rsound" # media-sound/rsound is in pro-audio overlay only
        uses="alsa esd jack ladspa nas"
        for i in ${uses}; do
                use ${i} || myconf+=" --disable-${i}"
@@ -495,10 +508,6 @@ src_configure() {
                        --disable-xv
                        --disable-x11
                "
-               uses="dga dxr3 ggi opengl vdpau xinerama xscreensaver xv"
-               for i in ${uses}; do
-                       use ${i} && elog "Useflag \"${i}\" require \"X\" useflag enabled to work."
-               done
        fi
 
        ############################
@@ -600,4 +609,9 @@ _EOF_
        dosym ../../../etc/${PN}/mplayer.conf /usr/share/${PN}/mplayer.conf
 
        newbin "${S}/TOOLS/midentify.sh" midentify${NAMESUF}
+
+       if [[ -n ${NAMESUF} ]] && use symlink; then
+               dosym "${PN}" /usr/bin/mplayer
+               dosym "midentify${NAMESUF}" /usr/bin/midentify
+       fi
 }