Update live ebuild to use the git-2 eclass and new xine plugin package.
authorTim Harder <radhermit@gentoo.org>
Fri, 5 Aug 2011 22:31:56 +0000 (22:31 +0000)
committerTim Harder <radhermit@gentoo.org>
Fri, 5 Aug 2011 22:31:56 +0000 (22:31 +0000)
Package-Manager: portage-2.2.0_alpha50/cvs/Linux x86_64

media-libs/libbluray/ChangeLog
media-libs/libbluray/libbluray-9999.ebuild

index b58022500515566239739356a2a062061ac15732..a02e4f3007151b1634614860be71301ef66396a4 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for media-libs/libbluray
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libbluray/ChangeLog,v 1.7 2011/08/05 22:13:53 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libbluray/ChangeLog,v 1.8 2011/08/05 22:31:56 radhermit Exp $
+
+  05 Aug 2011; Tim Harder <radhermit@gentoo.org> libbluray-9999.ebuild:
+  Update live ebuild to use the git-2 eclass and new xine plugin package.
 
   05 Aug 2011; Tim Harder <radhermit@gentoo.org>
   libbluray-0.0.1_pre20110210-r1.ebuild:
index 90d457a638d47659a5f9ebcaef406f86606400ea..951afe823e5c4a3a402f4bf8ee11f71fa380f628 100644 (file)
@@ -1,10 +1,10 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libbluray/libbluray-9999.ebuild,v 1.4 2011/02/04 19:51:04 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libbluray/libbluray-9999.ebuild,v 1.5 2011/08/05 22:31:56 radhermit Exp $
 
 EAPI=4
 
-inherit autotools java-pkg-opt-2 git flag-o-matic
+inherit autotools java-pkg-opt-2 git-2 flag-o-matic
 
 EGIT_REPO_URI="git://git.videolan.org/libbluray.git"
 
@@ -18,7 +18,6 @@ IUSE="aacs java static-libs utils xine"
 
 COMMON_DEPEND="
        dev-libs/libxml2
-       xine? ( media-libs/xine-lib )
 "
 RDEPEND="
        ${COMMON_DEPEND}
@@ -33,8 +32,13 @@ DEPEND="
        )
        dev-util/pkgconfig
 "
+PDEPEND="
+       xine? ( ~media-libs/libbluray-xine-${PV} )
+"
+
+REQUIRED_USE="utils? ( static-libs )"
 
-DOCS="doc/README README.txt TODO.txt"
+DOCS=( doc/README README.txt TODO.txt )
 
 src_prepare() {
        use java && export JDK_HOME="$(java-config -g JAVA_HOME)"
@@ -54,22 +58,12 @@ src_configure() {
        econf \
                $(use_enable java bdjava) \
                $(use_enable static-libs static) \
-               $(use_enable utils static) \
                $(use_enable utils examples) \
-               $myconf
-}
-
-src_compile() {
-       emake
-
-       if use xine; then
-               cd player_wrappers/xine
-               emake
-       fi
+               ${myconf}
 }
 
 src_install() {
-       default_src_install
+       default
 
        if use utils; then
                cd src/examples/
@@ -86,9 +80,5 @@ src_install() {
                doenvd "${FILESDIR}"/90${PN}
        fi
 
-       if use xine; then
-               cd "${S}"/player_wrappers/xine
-               emake DESTDIR="${D}" install
-               newdoc HOWTO README.xine
-       fi
+       use static-libs || find "${ED}" -name '*.la' -exec rm -f '{}' +
 }