From: James Le Cuirot Date: Tue, 24 Mar 2020 11:38:39 +0000 (+0000) Subject: media-libs/libbluray: Version bump to 1.2.0 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=61064d994b615fd188698fb4e244f4dc07b88e4b;p=gentoo.git media-libs/libbluray: Version bump to 1.2.0 Package-Manager: Portage-2.3.95, Repoman-2.3.20 Signed-off-by: James Le Cuirot --- diff --git a/media-libs/libbluray/Manifest b/media-libs/libbluray/Manifest index 39141966a6bb..25f463490121 100644 --- a/media-libs/libbluray/Manifest +++ b/media-libs/libbluray/Manifest @@ -1 +1,2 @@ DIST libbluray-1.1.2.tar.bz2 745779 BLAKE2B 04803f67d9b0732df54e85d960539280ce26755c5874ae90cc8d787036ad279fca8c508695ea0607eed1183eea7b0be9326999dda473dc864fa4da131a27af40 SHA512 5a82af6c1840a1dcb31d06d90203c68e2c4f0bbadc9212eb0bb2776d42b0ab3793a769ebe07b3051be151e8b15876874d5a0658292f72b7126dd915a1ada3fe7 +DIST libbluray-1.2.0.tar.bz2 747265 BLAKE2B d9f0d1c321faa9008431b17aecba495e44d2795cea2973f9772b5be2c0193af53e3c947b9dd0b2d4d22c4085e163461252f895618e98491184d85eb7fbf5bd54 SHA512 d10413b6b86ff2d2e7c4b0103546f2142727cc5209ddb7b227aa74e27384f2e0b9abee37bf8ccc5b0cdfcaeebfb0669cf20903a247df278a8ad6dbd27469d324 diff --git a/media-libs/libbluray/libbluray-1.2.0.ebuild b/media-libs/libbluray/libbluray-1.2.0.ebuild new file mode 100644 index 000000000000..a977ea88e85f --- /dev/null +++ b/media-libs/libbluray/libbluray-1.2.0.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +if [[ "${PV#9999}" != "${PV}" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://code.videolan.org/videolan/libbluray.git" +else + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" + SRC_URI="https://downloads.videolan.org/pub/videolan/libbluray/${PV}/${P}.tar.bz2" +fi + +inherit autotools java-pkg-opt-2 flag-o-matic multilib-minimal + +DESCRIPTION="Blu-ray playback libraries" +HOMEPAGE="https://www.videolan.org/developers/libbluray.html" + +LICENSE="LGPL-2.1" +SLOT="0/2" +IUSE="aacs bdplus +fontconfig java static-libs +truetype utils +xml" + +COMMON_DEPEND=" + xml? ( >=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] ) + fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) + truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) +" +RDEPEND=" + ${COMMON_DEPEND} + aacs? ( >=media-libs/libaacs-0.6.0[${MULTILIB_USEDEP}] ) + bdplus? ( media-libs/libbdplus[${MULTILIB_USEDEP}] ) + java? ( >=virtual/jre-1.6 ) +" +DEPEND=" + ${COMMON_DEPEND} + java? ( >=virtual/jdk-1.6 ) +" +BDEPEND=" + java? ( + >=virtual/jdk-1.6 + dev-java/ant-core + ) + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-jars.patch +) + +DOCS=( + ChangeLog + README.txt +) + +src_prepare() { + default + eautoreconf +} + +multilib_src_configure() { + use java || unset JDK_HOME # Bug #621992. + + ECONF_SOURCE="${S}" econf \ + --disable-optimizations \ + $(multilib_native_use_enable utils examples) \ + $(multilib_native_use_enable java bdjava-jar) \ + $(use_with fontconfig) \ + $(use_with truetype freetype) \ + $(use_enable static-libs static) \ + $(use_with xml libxml2) +} + +multilib_src_install() { + emake DESTDIR="${D}" install + multilib_is_native_abi || return + + use utils && + find .libs/ -type f -executable ! -name "${PN}.*" \ + $(use java || echo '! -name bdj_test') -exec dobin {} + + + use java && + java-pkg_regjar "${ED}"/usr/share/${PN}/lib/*.jar +} + +multilib_src_install_all() { + einstalldocs + find "${D}" -name '*.la' -delete || die +}