1 |
commit: 83e98e024616d8471ddf0a31e27e1ce4744ed584 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 16 16:42:16 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 16 16:48:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83e98e02 |
7 |
|
8 |
media-video/totem: Version bump to 3.38.0 |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
media-video/totem/Manifest | 1 + |
13 |
.../totem/files/3.38.0-gst-inspect-sandbox.patch | 42 ++++++++ |
14 |
media-video/totem/totem-3.38.0.ebuild | 119 +++++++++++++++++++++ |
15 |
3 files changed, 162 insertions(+) |
16 |
|
17 |
diff --git a/media-video/totem/Manifest b/media-video/totem/Manifest |
18 |
index 5b4ecf3ff76..b2ee154b2b4 100644 |
19 |
--- a/media-video/totem/Manifest |
20 |
+++ b/media-video/totem/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST totem-3.34.1.tar.xz 2157160 BLAKE2B 9ae9c8f6485c7377af07803c328e8ea3cc6fa80d8e30a7045bd2b50f7bc3d5a12582e5b60d901d22683f89e994c619c26ddb8b0890e343c873d4457fa177786d SHA512 9a3556f5cf522fca29926db185c2e5d25bdb80a25e14d0ba3062a7f15fc3ec40ae9f25752763bc444d4fd82ec2098efd732da662a1b1c5923ec19fde432606db |
23 |
+DIST totem-3.38.0.tar.xz 2235672 BLAKE2B 31a69bce69316e06b6ba1b1c98bfc5b87cae0b30e682bb1b32bbac713fb2ff262084e76c19690eb78495969a67c2be484bc45adcd1b432a3de7a33c3dc04109c SHA512 231aca873bb53f23f81a7981177761d0bf7768baa845309b0dc0821db58377d692cf7e8a65135090dac14e856aa3e1dc0c1f11c55a7b25d694822019bfa9eecf |
24 |
|
25 |
diff --git a/media-video/totem/files/3.38.0-gst-inspect-sandbox.patch b/media-video/totem/files/3.38.0-gst-inspect-sandbox.patch |
26 |
new file mode 100644 |
27 |
index 00000000000..ef3ea114021 |
28 |
--- /dev/null |
29 |
+++ b/media-video/totem/files/3.38.0-gst-inspect-sandbox.patch |
30 |
@@ -0,0 +1,42 @@ |
31 |
+From abb91b315f407b7e180bc00eb96f1cd6bb0ab25d Mon Sep 17 00:00:00 2001 |
32 |
+From: Gilles Dartiguelongue <eva@g.o> |
33 |
+Date: Thu, 7 Jun 2018 23:47:48 +0200 |
34 |
+Subject: [PATCH] Make gst-inspect calls optional at build-time |
35 |
+ |
36 |
+Crashes on Gentoo due to plugins trying to access dri nodes which are sandboxed |
37 |
+--- |
38 |
+ meson_options.txt | 1 + |
39 |
+ src/backend/meson.build | 2 ++ |
40 |
+ 2 files changed, 3 insertions(+) |
41 |
+ |
42 |
+diff --git a/meson_options.txt b/meson_options.txt |
43 |
+index 7070fd5d0..678b8f588 100644 |
44 |
+--- a/meson_options.txt |
45 |
++++ b/meson_options.txt |
46 |
+@@ -3,3 +3,4 @@ option('enable-python', type: 'combo', choices: ['yes', 'no', 'auto'], value: 'a |
47 |
+ option('with-plugins', type: 'combo', choices: ['all', 'none', 'auto'], value: 'auto', description: 'Which Totem plugins to compile (default: auto; "all", "none" and "auto" are valid)') |
48 |
+ option('enable-gtk-doc', type: 'boolean', value: false, description: 'use gtk-doc to build documentation') |
49 |
+ option('profile', type: 'combo', choices: ['default', 'development'], value: 'default', description: 'Build profiles') |
50 |
++option('gst-inspect', type: 'boolean', value: true, description: 'build-time test of available gstreamer plugins') |
51 |
+diff --git a/src/backend/meson.build b/src/backend/meson.build |
52 |
+index fbf74258b..1e025a5b9 100644 |
53 |
+--- a/src/backend/meson.build |
54 |
++++ b/src/backend/meson.build |
55 |
+@@ -1,5 +1,6 @@ |
56 |
+ backend_inc = include_directories('.') |
57 |
+ |
58 |
++if get_option('gst-inspect') |
59 |
+ gst_inspect = find_program( |
60 |
+ 'gst-inspect-1.0', |
61 |
+ join_paths(gst_dep.get_pkgconfig_variable('toolsdir'), 'gst-inspect-1.0'), |
62 |
+@@ -31,6 +32,7 @@ foreach plugin: gst_good_plugins |
63 |
+ assert(r.returncode() == 0, |
64 |
+ 'Cannot find required GStreamer-1.0 plugin "' + plugin + '". It should be part of gst-plugins-good. Please install it.') |
65 |
+ endforeach |
66 |
++endif |
67 |
+ |
68 |
+ sources = files( |
69 |
+ 'bacon-time-label.c', |
70 |
+-- |
71 |
+2.26.3 |
72 |
+ |
73 |
|
74 |
diff --git a/media-video/totem/totem-3.38.0.ebuild b/media-video/totem/totem-3.38.0.ebuild |
75 |
new file mode 100644 |
76 |
index 00000000000..89b5506cb67 |
77 |
--- /dev/null |
78 |
+++ b/media-video/totem/totem-3.38.0.ebuild |
79 |
@@ -0,0 +1,119 @@ |
80 |
+# Copyright 1999-2021 Gentoo Authors |
81 |
+# Distributed under the terms of the GNU General Public License v2 |
82 |
+ |
83 |
+EAPI=7 |
84 |
+PYTHON_COMPAT=( python3_{7..9} ) |
85 |
+PYTHON_REQ_USE="threads(+)" |
86 |
+ |
87 |
+inherit gnome.org gnome2-utils meson virtualx xdg python-single-r1 |
88 |
+ |
89 |
+DESCRIPTION="Media player for GNOME" |
90 |
+HOMEPAGE="https://wiki.gnome.org/Apps/Videos" |
91 |
+ |
92 |
+LICENSE="GPL-2+ LGPL-2+" |
93 |
+SLOT="0" |
94 |
+IUSE="gtk-doc +python test" |
95 |
+# see bug #359379 |
96 |
+REQUIRED_USE=" |
97 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
98 |
+" |
99 |
+RESTRICT="!test? ( test )" |
100 |
+ |
101 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" |
102 |
+ |
103 |
+DEPEND=" |
104 |
+ >=dev-libs/glib-2.56.0:2 |
105 |
+ >=x11-libs/gtk+-3.19.4:3[introspection] |
106 |
+ >=media-libs/gstreamer-1.6.0:1.0 |
107 |
+ >=media-libs/gst-plugins-base-1.6.0:1.0[pango] |
108 |
+ >=media-libs/gst-plugins-good-1.6.0:1.0 |
109 |
+ >=media-libs/grilo-0.3.0:0.3[playlist] |
110 |
+ >=dev-libs/libpeas-1.1.0[gtk] |
111 |
+ >=dev-libs/totem-pl-parser-3.26.5:0=[introspection] |
112 |
+ >=media-libs/clutter-1.17.3:1.0[gtk] |
113 |
+ >=media-libs/clutter-gst-2.99.2:3.0 |
114 |
+ >=media-libs/clutter-gtk-1.8.1:1.0 |
115 |
+ gnome-base/gnome-desktop:3= |
116 |
+ gnome-base/gsettings-desktop-schemas |
117 |
+ >=x11-libs/cairo-1.14 |
118 |
+ x11-libs/gdk-pixbuf:2 |
119 |
+ >=dev-libs/gobject-introspection-1.54:= |
120 |
+ |
121 |
+ python? ( |
122 |
+ ${PYTHON_DEPS} |
123 |
+ $(python_gen_cond_dep ' |
124 |
+ >=dev-python/pygobject-2.90.3:3[${PYTHON_MULTI_USEDEP}] |
125 |
+ ') |
126 |
+ ) |
127 |
+" |
128 |
+RDEPEND="${DEPEND} |
129 |
+ media-plugins/grilo-plugins:0.3 |
130 |
+ media-plugins/gst-plugins-meta:1.0 |
131 |
+ media-plugins/gst-plugins-taglib:1.0 |
132 |
+ x11-themes/adwaita-icon-theme |
133 |
+ python? ( |
134 |
+ x11-libs/pango[introspection] |
135 |
+ >=dev-libs/libpeas-1.1.0[python,${PYTHON_SINGLE_USEDEP}] |
136 |
+ $(python_gen_cond_dep ' |
137 |
+ dev-python/dbus-python[${PYTHON_MULTI_USEDEP}] |
138 |
+ ') |
139 |
+ ) |
140 |
+" |
141 |
+BDEPEND=" |
142 |
+ dev-lang/perl |
143 |
+ gtk-doc? ( >=dev-util/gtk-doc-1.14 |
144 |
+ app-text/docbook-xml-dtd:4.5 ) |
145 |
+ dev-util/glib-utils |
146 |
+ dev-util/itstool |
147 |
+ >=sys-devel/gettext-0.19.8 |
148 |
+ virtual/pkgconfig |
149 |
+ x11-base/xorg-proto |
150 |
+" |
151 |
+# perl for pod2man |
152 |
+# Prevent dev-python/pylint dep, bug #482538 |
153 |
+ |
154 |
+PATCHES=( |
155 |
+ "${FILESDIR}"/${PV}-gst-inspect-sandbox.patch # Allow disabling calls to gst-inspect (sandbox issue) |
156 |
+) |
157 |
+ |
158 |
+pkg_setup() { |
159 |
+ use python && python-single-r1_pkg_setup |
160 |
+} |
161 |
+ |
162 |
+src_prepare() { |
163 |
+ # Drop pointless samplepython plugin from build |
164 |
+ sed -e '/samplepython/d' -i src/plugins/meson.build || die |
165 |
+ xdg_src_prepare |
166 |
+} |
167 |
+ |
168 |
+src_configure() { |
169 |
+ local emesonargs=( |
170 |
+ -Denable-easy-codec-installation=yes |
171 |
+ -Denable-python=$(usex python yes no) |
172 |
+ -Dwith-plugins=all # in 3.34.1 only builtin and python plugins are left, and python is extra controlled by enable-python |
173 |
+ $(meson_use gtk-doc enable-gtk-doc) |
174 |
+ -Dgst-inspect=false |
175 |
+ ) |
176 |
+ meson_src_configure |
177 |
+} |
178 |
+ |
179 |
+src_install() { |
180 |
+ meson_src_install |
181 |
+ if use python ; then |
182 |
+ python_optimize "${ED}"/usr/$(get_libdir)/totem/plugins/ |
183 |
+ fi |
184 |
+} |
185 |
+ |
186 |
+pkg_postinst() { |
187 |
+ xdg_pkg_postinst |
188 |
+ gnome2_schemas_update |
189 |
+} |
190 |
+ |
191 |
+pkg_postrm() { |
192 |
+ xdg_pkg_postrm |
193 |
+ gnome2_schemas_update |
194 |
+} |
195 |
+ |
196 |
+src_test() { |
197 |
+ virtx meson_src_test |
198 |
+} |