media-libs/libdvdread: Synced live ebuild.
authorLars Wendler <polynomial-c@gentoo.org>
Sun, 21 Jan 2018 10:19:37 +0000 (11:19 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Sun, 21 Jan 2018 10:22:38 +0000 (11:22 +0100)
Package-Manager: Portage-2.3.20, Repoman-2.3.6

media-libs/libdvdread/libdvdread-9999.ebuild

index 8ca3b52a7401d10ac1f33627905ec9c62951a911..3a46c0663f6a15f8d5700411bb74b092a5a88db4 100644 (file)
@@ -1,10 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-AUTOTOOLS_AUTORECONF=1
-AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
-inherit autotools-multilib
+EAPI=6
+
+inherit autotools multilib-minimal
 
 DESCRIPTION="Library for DVD navigation tools"
 HOMEPAGE="https://www.videolan.org/developers/libdvdnav.html"
@@ -20,9 +19,26 @@ LICENSE="GPL-2"
 SLOT="0"
 IUSE="+css static-libs"
 
-RDEPEND="css? ( >=media-libs/libdvdcss-1.3.0[${MULTILIB_USEDEP}] )
-       abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20130224-r4
-               !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
-DEPEND="${RDEPEND}"
+RDEPEND="css? ( >=media-libs/libdvdcss-1.3.0[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig"
 
 DOCS=( AUTHORS ChangeLog NEWS TODO README )
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+multilib_src_configure() {
+       local myeconfargs=(
+               --enable-shared
+               $(use_enable static-libs static)
+               $(use_with css libdvdcss)
+       )
+       ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_install_all() {
+       find "${ED}" -name "*.la" -delete || die
+}