Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libbluray/
Date: Tue, 25 Jun 2019 19:24:59
Message-Id: 1561490640.ee7b83ef88c1da2c368dbf6a633dedd4d7b133a3.polynomial-c@gentoo
1 commit: ee7b83ef88c1da2c368dbf6a633dedd4d7b133a3
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 25 19:24:00 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 25 19:24:00 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee7b83ef
7
8 media-libs/libbluray: Bump to version 1.1.2
9
10 Package-Manager: Portage-2.3.67, Repoman-2.3.16
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 media-libs/libbluray/Manifest | 1 +
14 media-libs/libbluray/libbluray-1.1.2.ebuild | 88 +++++++++++++++++++++++++++++
15 2 files changed, 89 insertions(+)
16
17 diff --git a/media-libs/libbluray/Manifest b/media-libs/libbluray/Manifest
18 index f0f4a53f1b2..611db7072d7 100644
19 --- a/media-libs/libbluray/Manifest
20 +++ b/media-libs/libbluray/Manifest
21 @@ -1,2 +1,3 @@
22 DIST libbluray-1.0.2.tar.bz2 733058 BLAKE2B 6428b3cb8a2339e2c2d7f86663d6917d8484b858fb03aaf3bda6824181d072050625d37280cf011574c07316ef83103b334f654de1a6219e3a33343532cfe986 SHA512 e1360ad08aa6cc67a80efa81a09004faebbe31105f1961494f82f655e3e7378b198ee3bc534b0d0c2bfec726939b11b545cc8bbfa30794fc647432dadf71089b
23 DIST libbluray-1.1.1.tar.bz2 746034 BLAKE2B 031d9c4f5ed85cb9128ec6f9b0c4232e889578ca03e131024ce2bc7049ff7990ef1936aa5a525266f8d5402e58d9c2a92b14338259c37dfaebb50c6b9745ca1e SHA512 0a3bcef06d2a58c51c3d46934c32941ec0606dc9b71fe36f72a6e34ab8113cf72cfb6e2fdd51f23e0a44ccd404323f5ac5c666aa1d839ae16cc775267cbce839
24 +DIST libbluray-1.1.2.tar.bz2 745779 BLAKE2B 04803f67d9b0732df54e85d960539280ce26755c5874ae90cc8d787036ad279fca8c508695ea0607eed1183eea7b0be9326999dda473dc864fa4da131a27af40 SHA512 5a82af6c1840a1dcb31d06d90203c68e2c4f0bbadc9212eb0bb2776d42b0ab3793a769ebe07b3051be151e8b15876874d5a0658292f72b7126dd915a1ada3fe7
25
26 diff --git a/media-libs/libbluray/libbluray-1.1.2.ebuild b/media-libs/libbluray/libbluray-1.1.2.ebuild
27 new file mode 100644
28 index 00000000000..d6504f9ac9d
29 --- /dev/null
30 +++ b/media-libs/libbluray/libbluray-1.1.2.ebuild
31 @@ -0,0 +1,88 @@
32 +# Copyright 1999-2019 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 ~amd64-fbsd ~x86-fbsd"
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 +}