Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libbluray/
Date: Fri, 01 Jan 2021 03:13:32
Message-Id: 1609470795.d4e5bc36b7dbd8a6ebebca427d73b9f43a21e7df.sam@gentoo
1 commit: d4e5bc36b7dbd8a6ebebca427d73b9f43a21e7df
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 1 03:13:15 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 1 03:13:15 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4e5bc36
7
8 media-libs/libbluray: bump to 1.2.1
9
10 Package-Manager: Portage-3.0.9, Repoman-3.0.2
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 media-libs/libbluray/Manifest | 1 +
14 media-libs/libbluray/libbluray-1.2.1.ebuild | 88 +++++++++++++++++++++++++++++
15 2 files changed, 89 insertions(+)
16
17 diff --git a/media-libs/libbluray/Manifest b/media-libs/libbluray/Manifest
18 index 25f46349012..987d86b0061 100644
19 --- a/media-libs/libbluray/Manifest
20 +++ b/media-libs/libbluray/Manifest
21 @@ -1,2 +1,3 @@
22 DIST libbluray-1.1.2.tar.bz2 745779 BLAKE2B 04803f67d9b0732df54e85d960539280ce26755c5874ae90cc8d787036ad279fca8c508695ea0607eed1183eea7b0be9326999dda473dc864fa4da131a27af40 SHA512 5a82af6c1840a1dcb31d06d90203c68e2c4f0bbadc9212eb0bb2776d42b0ab3793a769ebe07b3051be151e8b15876874d5a0658292f72b7126dd915a1ada3fe7
23 DIST libbluray-1.2.0.tar.bz2 747265 BLAKE2B d9f0d1c321faa9008431b17aecba495e44d2795cea2973f9772b5be2c0193af53e3c947b9dd0b2d4d22c4085e163461252f895618e98491184d85eb7fbf5bd54 SHA512 d10413b6b86ff2d2e7c4b0103546f2142727cc5209ddb7b227aa74e27384f2e0b9abee37bf8ccc5b0cdfcaeebfb0669cf20903a247df278a8ad6dbd27469d324
24 +DIST libbluray-1.2.1.tar.bz2 751063 BLAKE2B af353e03a70b0202776c2190d927506225bbe1147fe5bfb19039839f5d82d0beb4fd7c2813a9ce10a2bc6f9d07e2a2080b54f1442e02e5f8e72564a5bcaf0a2a SHA512 e9eeee433034266e88c05ae3469c0bd2bf700d7f16e17ad706f48426c143c823e83c16ab79a637f1e85e4eb858aa0577630671f87ba35d179db2a1d8bc8545c4
25
26 diff --git a/media-libs/libbluray/libbluray-1.2.1.ebuild b/media-libs/libbluray/libbluray-1.2.1.ebuild
27 new file mode 100644
28 index 00000000000..f8e57cc06fb
29 --- /dev/null
30 +++ b/media-libs/libbluray/libbluray-1.2.1.ebuild
31 @@ -0,0 +1,88 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +if [[ "${PV#9999}" != "${PV}" ]] ; then
38 + inherit git-r3
39 + EGIT_REPO_URI="https://code.videolan.org/videolan/libbluray.git"
40 +else
41 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
42 + SRC_URI="https://downloads.videolan.org/pub/videolan/libbluray/${PV}/${P}.tar.bz2"
43 +fi
44 +
45 +inherit autotools java-pkg-opt-2 flag-o-matic multilib-minimal
46 +
47 +DESCRIPTION="Blu-ray playback libraries"
48 +HOMEPAGE="https://www.videolan.org/developers/libbluray.html"
49 +
50 +LICENSE="LGPL-2.1"
51 +SLOT="0/2"
52 +IUSE="aacs bdplus +fontconfig java static-libs +truetype utils +xml"
53 +
54 +COMMON_DEPEND="
55 + xml? ( >=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] )
56 + fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
57 + truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
58 +"
59 +RDEPEND="
60 + ${COMMON_DEPEND}
61 + aacs? ( >=media-libs/libaacs-0.6.0[${MULTILIB_USEDEP}] )
62 + bdplus? ( media-libs/libbdplus[${MULTILIB_USEDEP}] )
63 + java? ( >=virtual/jre-1.6 )
64 +"
65 +DEPEND="
66 + ${COMMON_DEPEND}
67 + java? ( >=virtual/jdk-1.6 )
68 +"
69 +BDEPEND="
70 + java? (
71 + >=virtual/jdk-1.6
72 + dev-java/ant-core
73 + )
74 + virtual/pkgconfig
75 +"
76 +
77 +PATCHES=(
78 + "${FILESDIR}"/${PN}-jars.patch
79 +)
80 +
81 +DOCS=(
82 + ChangeLog
83 + README.txt
84 +)
85 +
86 +src_prepare() {
87 + default
88 + eautoreconf
89 +}
90 +
91 +multilib_src_configure() {
92 + use java || unset JDK_HOME # Bug #621992.
93 +
94 + ECONF_SOURCE="${S}" econf \
95 + --disable-optimizations \
96 + $(multilib_native_use_enable utils examples) \
97 + $(multilib_native_use_enable java bdjava-jar) \
98 + $(use_with fontconfig) \
99 + $(use_with truetype freetype) \
100 + $(use_enable static-libs static) \
101 + $(use_with xml libxml2)
102 +}
103 +
104 +multilib_src_install() {
105 + emake DESTDIR="${D}" install
106 + multilib_is_native_abi || return
107 +
108 + use utils &&
109 + find .libs/ -type f -executable ! -name "${PN}.*" \
110 + $(use java || echo '! -name bdj_test') -exec dobin {} +
111 +
112 + use java &&
113 + java-pkg_regjar "${ED}"/usr/share/${PN}/lib/*.jar
114 +}
115 +
116 +multilib_src_install_all() {
117 + einstalldocs
118 + find "${D}" -name '*.la' -delete || die
119 +}