add support for controlling xine/gstreamer #107869
authorMike Frysinger <vapier@gentoo.org>
Sun, 2 Oct 2005 19:38:24 +0000 (19:38 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 2 Oct 2005 19:38:24 +0000 (19:38 +0000)
Package-Manager: portage-2.0.52-r1 http://www.bash.org/?136501

media-libs/emotion/Manifest
media-libs/emotion/emotion-9999.ebuild

index 4f50a7eb099438719c3bebe6a1a5f4da14abd67e..91831eaf2f2dd708fbd23757bcc2c366b7fe2b81 100644 (file)
@@ -4,7 +4,7 @@ Hash: SHA1
 MD5 1fb0cef8c20e31d8fee121ebb2205588 metadata.xml 221
 MD5 93ad4ae30cee654d5998fb3fe2b958b1 emotion-0.0.1.003.ebuild 461
 MD5 1562d70842c98fac8b76917c103917f7 emotion-0.0.1.004.ebuild 444
-MD5 cb56995b60bb601e2bc29ae58bbea8c3 emotion-9999.ebuild 456
+MD5 be3c5bc83f8a546f9f2aff501da2cffa emotion-9999.ebuild 799
 MD5 e80d95d8833877a69419f5239b83cb53 ChangeLog 336
 MD5 7b4acc459fa0f45ac498b9d0f50b1cbc files/digest-emotion-0.0.1.003 69
 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-emotion-9999 0
@@ -12,7 +12,7 @@ MD5 aec0d2ba104188e40464ed83e07672df files/digest-emotion-0.0.1.004 69
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (GNU/Linux)
 
-iD8DBQFDBrz6gIKl8Uu19MoRAlKXAJ9bQVxrnjCMza4gKX4OLu6b0QId2ACcDAS4
-0BXdhYWrd1+9LxPFcQnUEbM=
-=Quat
+iD8DBQFDQDeNgIKl8Uu19MoRAu58AJ44addxS45vizKGJ2o2srXproG0pwCfWXMI
+tPpLUTticsq5Cky4loLyoTQ=
+=qTRU
 -----END PGP SIGNATURE-----
index 9e497c462d42755786ec881d631cc07fc71d7023..5a6a41120782fa6a3b266827313fe4c1862a4712 100644 (file)
@@ -1,15 +1,30 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/emotion/emotion-9999.ebuild,v 1.3 2005/04/10 03:34:47 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/emotion/emotion-9999.ebuild,v 1.4 2005/10/02 19:38:24 vapier Exp $
 
-EHACKAUTOGEN=yes
 inherit enlightenment
 
 DESCRIPTION="video libraries for e17"
 
+IUSE="gstreamer xine"
+
 DEPEND=">=dev-libs/eet-0.9.9
        >=x11-libs/evas-0.9.9
        >=media-libs/edje-0.5.0
        >=x11-libs/ecore-0.9.9
        >=dev-libs/embryo-0.9.1
-       >=media-libs/xine-lib-1_rc5"
+       xine? ( >=media-libs/xine-lib-1_rc5 )
+       !gstreamer? ( !xine? ( >=media-libs/xine-lib-1_rc5 ) )
+       gstreamer? ( =media-libs/gstreamer-0.8* )"
+
+src_compile() {
+       if ! use xine && ! use gstreamer ; then
+               export MY_ECONF="--enable-xine --disable-gstreamer"
+       else
+               export MY_ECONF="
+                       $(use_enable xine) \
+                       $(use_enable gstreamer) \
+               "
+       fi
+       enlightenment_src_compile
+}