Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/gstreamer/
Date: Sun, 25 Aug 2019 19:56:00
Message-Id: 1566762902.2ec47a7f5be46d6d81a4c51b47c6a386a1ec5d11.leio@gentoo
1 commit: 2ec47a7f5be46d6d81a4c51b47c6a386a1ec5d11
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 25 19:05:00 2019 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 25 19:55:02 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ec47a7f
7
8 media-libs/gstreamer: bump to 1.14.5 for upstream bug fixes
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 media-libs/gstreamer/Manifest | 1 +
14 media-libs/gstreamer/gstreamer-1.14.5.ebuild | 115 +++++++++++++++++++++++++++
15 2 files changed, 116 insertions(+)
16
17 diff --git a/media-libs/gstreamer/Manifest b/media-libs/gstreamer/Manifest
18 index 1071bb591ba..2024b947ace 100644
19 --- a/media-libs/gstreamer/Manifest
20 +++ b/media-libs/gstreamer/Manifest
21 @@ -1 +1,2 @@
22 DIST gstreamer-1.14.4.tar.xz 3264324 BLAKE2B d51febcd7c317964a09dadb4d3bd3ee7a60ac38bef28cdd7d42f49a7b710d6f6180ca7edee1765c8d146f7e3e852e93d0d5f69962089a653cfc3e6bd4ab42f89 SHA512 7ece9f01d40df7c8358482eac94536c5e15261e9568962008e2029e1ee1b3ebb220d2e4802ed1c81c40d897576fafe52234065e273724bfb4df3a3ddf2711abe
23 +DIST gstreamer-1.14.5.tar.xz 3268756 BLAKE2B 6ef5bdcb103b4d8fd581ae7342d6d467f4c6919610bdd620e4a531755347d8e3276a50f2e637045b9b97cbf7726495608437c180d37a1019ec8a79ab1bc4e4d6 SHA512 1a97ae17f8fff041db5e24d712d33c7116e408be1fabc2abd7b652b067b6ebe6c0943845a33a21335a5b4fa0a1ba178873158659f761f1e3aab04a969029c5d8
24
25 diff --git a/media-libs/gstreamer/gstreamer-1.14.5.ebuild b/media-libs/gstreamer/gstreamer-1.14.5.ebuild
26 new file mode 100644
27 index 00000000000..c57c39da037
28 --- /dev/null
29 +++ b/media-libs/gstreamer/gstreamer-1.14.5.ebuild
30 @@ -0,0 +1,115 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit bash-completion-r1 multilib-minimal pax-utils
37 +
38 +DESCRIPTION="Open source multimedia framework"
39 +HOMEPAGE="https://gstreamer.freedesktop.org/"
40 +SRC_URI="https://${PN}.freedesktop.org/src/${PN}/${P}.tar.xz"
41 +
42 +LICENSE="LGPL-2+"
43 +SLOT="1.0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
45 +IUSE="+caps +introspection nls +orc test unwind"
46 +
47 +RDEPEND="
48 + >=dev-libs/glib-2.40.0:2[${MULTILIB_USEDEP}]
49 + caps? ( sys-libs/libcap[${MULTILIB_USEDEP}] )
50 + introspection? ( >=dev-libs/gobject-introspection-1.31.1:= )
51 + unwind? (
52 + >=sys-libs/libunwind-1.2_rc1[${MULTILIB_USEDEP}]
53 + dev-libs/elfutils[${MULTILIB_USEDEP}]
54 + )
55 + !<media-libs/gst-plugins-bad-1.13.1:1.0
56 +"
57 +DEPEND="${RDEPEND}
58 + dev-util/glib-utils
59 + >=dev-util/gtk-doc-am-1.12
60 + sys-devel/bison
61 + sys-devel/flex
62 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
63 + nls? ( sys-devel/gettext )
64 +"
65 +# gtk-doc-am to install API docs
66 +
67 +PATCHES=(
68 + "${FILESDIR}"/1.14-glib-2.60-tests-compat.patch
69 +)
70 +
71 +src_configure() {
72 + if [[ ${CHOST} == *-interix* ]] ; then
73 + export ac_cv_lib_dl_dladdr=no
74 + export ac_cv_func_poll=no
75 + fi
76 + if [[ ${CHOST} == powerpc-apple-darwin* ]] ; then
77 + # GCC groks this, but then refers to an implementation (___multi3,
78 + # ___udivti3) that don't exist (at least I can't find it), so force
79 + # this one to be off, such that we use 2x64bit emulation code.
80 + export gst_cv_uint128_t=no
81 + fi
82 +
83 + multilib-minimal_src_configure
84 +}
85 +
86 +multilib_src_configure() {
87 + local completiondir=$(get_bashcompdir)
88 + # Set 'libexecdir' to ABI-specific location for the library spawns
89 + # helpers from there.
90 + # Disable static archives and examples to speed up build time
91 + # Disable debug, as it only affects -g passing (debugging symbols), this must done through make.conf in gentoo
92 + local myconf=(
93 + --libexecdir="${EPREFIX}"/usr/$(get_libdir)
94 + --disable-benchmarks
95 + --disable-debug
96 + --disable-examples
97 + --disable-static
98 + --disable-valgrind
99 + --enable-check
100 + $(use_with unwind)
101 + $(use_with unwind dw)
102 + $(multilib_native_use_enable introspection)
103 + $(use_enable nls)
104 + $(use_enable test tests)
105 + --with-bash-completion-dir="${completiondir%/*}"
106 + --with-package-name="GStreamer ebuild for Gentoo"
107 + --with-package-origin="https://packages.gentoo.org/package/media-libs/gstreamer"
108 + )
109 +
110 + if use caps ; then
111 + myconf+=( --with-ptp-helper-permissions=capabilities )
112 + else
113 + myconf+=(
114 + --with-ptp-helper-permissions=setuid-root
115 + --with-ptp-helper-setuid-user=nobody
116 + --with-ptp-helper-setuid-group=nobody
117 + )
118 + fi
119 +
120 + ECONF_SOURCE="${S}" econf "${myconf[@]}"
121 +
122 + if multilib_is_native_abi; then
123 + local x
124 + for x in gst libs plugins; do
125 + ln -s "${S}"/docs/${x}/html docs/${x}/html || die
126 + done
127 + fi
128 +}
129 +
130 +multilib_src_install() {
131 + # can't do "default", we want to install docs in multilib_src_install_all
132 + emake DESTDIR="${D}" install
133 +
134 + # Needed for orc-using gst plugins on hardened/PaX systems, bug #421579
135 + use orc && pax-mark -m "${ED}usr/$(get_libdir)/gstreamer-${SLOT}/gst-plugin-scanner"
136 +}
137 +
138 +multilib_src_install_all() {
139 + DOCS="AUTHORS ChangeLog NEWS MAINTAINERS README RELEASE"
140 + einstalldocs
141 + find "${ED}" -name '*.la' -delete || die
142 +
143 + # Needed for orc-using gst plugins on hardened/PaX systems, bug #421579
144 + use orc && pax-mark -m "${ED}usr/bin/gst-launch-${SLOT}"
145 +}