1 |
commit: 71fd00d68a3a477d2d2281a773eb75333649388a |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 19 19:02:57 2019 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 19 20:10:11 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71fd00d6 |
7 |
|
8 |
media-video/totem-3.32: ebuild touchups |
9 |
|
10 |
* Port to EAPI-7 (BDEPEND + removal of obsolete gnome2_icon_cache_update). |
11 |
* Drop USE=nautilus and always build save-file plugin (it communicates |
12 |
with nautilus via dbus only at runtime). |
13 |
* Fix tests (an actual first test was added, needing virtx) |
14 |
* Drop X11 requirements - it will add minimal things for X automagically |
15 |
at build time based on gtk+[X] being around or not during build; which |
16 |
is the unfortunate status quo elsewhere as well. This change however |
17 |
should allow using totem on a pure-wayland system. The libX11 dep is |
18 |
also dropped for this, but we can rely on it being there whenever it |
19 |
is needed. |
20 |
* User help got ported to pure its, so now docbook-xml-dtd:4.5 should |
21 |
only be necessary for gtk-doc. |
22 |
* Resort enabled plugin list and drop obsolete comments. |
23 |
* Restore -Dgst-inspect=false to avoid sandbox issues |
24 |
* Drop unnecessary src_prepare(), as only xdg_src_prepare is called now, |
25 |
which will be the case without src_prepare() in ebuild too. |
26 |
|
27 |
Package-Manager: Portage-2.3.69, Repoman-2.3.12 |
28 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
29 |
|
30 |
...{totem-3.32.1.ebuild => totem-3.32.1-r1.ebuild} | 48 ++++++++++------------ |
31 |
1 file changed, 21 insertions(+), 27 deletions(-) |
32 |
|
33 |
diff --git a/media-video/totem/totem-3.32.1.ebuild b/media-video/totem/totem-3.32.1-r1.ebuild |
34 |
similarity index 71% |
35 |
rename from media-video/totem/totem-3.32.1.ebuild |
36 |
rename to media-video/totem/totem-3.32.1-r1.ebuild |
37 |
index 1046a2c110e..b06daab34a8 100644 |
38 |
--- a/media-video/totem/totem-3.32.1.ebuild |
39 |
+++ b/media-video/totem/totem-3.32.1-r1.ebuild |
40 |
@@ -1,32 +1,33 @@ |
41 |
# Copyright 1999-2019 Gentoo Authors |
42 |
# Distributed under the terms of the GNU General Public License v2 |
43 |
|
44 |
-EAPI=6 |
45 |
+EAPI=7 |
46 |
PYTHON_COMPAT=( python{3_5,3_6} ) |
47 |
PYTHON_REQ_USE="threads" |
48 |
|
49 |
-inherit gnome.org gnome2-utils meson xdg python-single-r1 |
50 |
+inherit gnome.org gnome2-utils meson virtualx xdg python-single-r1 |
51 |
|
52 |
DESCRIPTION="Media player for GNOME" |
53 |
HOMEPAGE="https://wiki.gnome.org/Apps/Videos" |
54 |
|
55 |
LICENSE="GPL-2+ LGPL-2+" |
56 |
SLOT="0" |
57 |
-IUSE="cdr gtk-doc +introspection lirc nautilus +python test" |
58 |
+IUSE="cdr gtk-doc +introspection lirc +python test" |
59 |
# see bug #359379 |
60 |
REQUIRED_USE=" |
61 |
python? ( introspection ${PYTHON_REQUIRED_USE} ) |
62 |
" |
63 |
+RESTRICT="!test? ( test )" |
64 |
|
65 |
KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd" |
66 |
|
67 |
# FIXME: |
68 |
# Runtime dependency on gnome-session-2.91 |
69 |
-COMMON_DEPEND=" |
70 |
+DEPEND=" |
71 |
>=dev-libs/glib-2.43.4:2 |
72 |
- >=x11-libs/gtk+-3.19.4:3[X,introspection?] |
73 |
+ >=x11-libs/gtk+-3.19.4:3[introspection?] |
74 |
>=media-libs/gstreamer-1.6.0:1.0 |
75 |
- >=media-libs/gst-plugins-base-1.6.0:1.0[X,pango] |
76 |
+ >=media-libs/gst-plugins-base-1.6.0:1.0[pango] |
77 |
>=media-libs/gst-plugins-good-1.6.0:1.0 |
78 |
>=media-libs/grilo-0.3.0:0.3[playlist] |
79 |
>=dev-libs/libpeas-1.1.0[gtk] |
80 |
@@ -36,19 +37,17 @@ COMMON_DEPEND=" |
81 |
>=media-libs/clutter-gtk-1.8.1:1.0 |
82 |
gnome-base/gnome-desktop:3= |
83 |
gnome-base/gsettings-desktop-schemas |
84 |
- x11-libs/libX11 |
85 |
>=x11-libs/cairo-1.14 |
86 |
x11-libs/gdk-pixbuf:2 |
87 |
introspection? ( >=dev-libs/gobject-introspection-1.54:= ) |
88 |
|
89 |
cdr? ( >=dev-libs/libxml2-2.6:2 ) |
90 |
lirc? ( app-misc/lirc ) |
91 |
- nautilus? ( >=gnome-base/nautilus-2.91.3 ) |
92 |
python? ( |
93 |
${PYTHON_DEPS} |
94 |
>=dev-python/pygobject-2.90.3:3[${PYTHON_USEDEP}] ) |
95 |
" |
96 |
-RDEPEND="${COMMON_DEPEND} |
97 |
+RDEPEND="${DEPEND} |
98 |
media-plugins/grilo-plugins:0.3 |
99 |
media-plugins/gst-plugins-meta:1.0 |
100 |
media-plugins/gst-plugins-taglib:1.0 |
101 |
@@ -57,10 +56,10 @@ RDEPEND="${COMMON_DEPEND} |
102 |
>=dev-libs/libpeas-1.1.0[python,${PYTHON_USEDEP}] |
103 |
dev-python/dbus-python[${PYTHON_USEDEP}] ) |
104 |
" |
105 |
-DEPEND="${COMMON_DEPEND} |
106 |
+BDEPEND=" |
107 |
dev-lang/perl |
108 |
- app-text/docbook-xml-dtd:4.5 |
109 |
- gtk-doc? ( >=dev-util/gtk-doc-1.14 ) |
110 |
+ gtk-doc? ( >=dev-util/gtk-doc-1.14 |
111 |
+ app-text/docbook-xml-dtd:4.5 ) |
112 |
dev-util/glib-utils |
113 |
dev-util/itstool |
114 |
>=sys-devel/gettext-0.19.8 |
115 |
@@ -68,7 +67,6 @@ DEPEND="${COMMON_DEPEND} |
116 |
x11-base/xorg-proto |
117 |
" |
118 |
# perl for pod2man |
119 |
-# docbook-xml-dtd is needed for user doc |
120 |
# Prevent dev-python/pylint dep, bug #482538 |
121 |
|
122 |
PATCHES=( |
123 |
@@ -80,21 +78,14 @@ pkg_setup() { |
124 |
use python && python-single-r1_pkg_setup |
125 |
} |
126 |
|
127 |
-src_prepare() { |
128 |
- xdg_src_prepare |
129 |
-} |
130 |
- |
131 |
src_configure() { |
132 |
- # Disabled: sample-python, zeitgeist-dp |
133 |
- # brasero-disc-recorder and gromit require gtk+[X], but totem itself does |
134 |
- # for now still too, so no point in optionality based on that yet. |
135 |
+ # Disabled: samplepython |
136 |
local plugins="apple-trailers,autoload-subtitles" |
137 |
- plugins+=",im-status,media-player-keys" |
138 |
- plugins+=",properties,recent,screensaver,screenshot" |
139 |
- plugins+=",skipto,variable-rate,vimeo,rotation" |
140 |
+ plugins+=",im-status,media-player-keys,properties" |
141 |
+ plugins+=",recent,rotation,save-file,screensaver,screenshot" |
142 |
+ plugins+=",skipto,variable-rate,vimeo" |
143 |
use cdr && plugins+=",brasero-disc-recorder" |
144 |
use lirc && plugins+=",lirc" |
145 |
- use nautilus && plugins+=",save-file" |
146 |
use python && plugins+=",dbusservice,pythonconsole,opensubtitles" |
147 |
|
148 |
local emesonargs=( |
149 |
@@ -103,6 +94,7 @@ src_configure() { |
150 |
-Dwith-plugins=${plugins} |
151 |
$(meson_use gtk-doc enable-gtk-doc) |
152 |
-Denable-introspection=$(usex introspection yes no) |
153 |
+ -Dgst-inspect=false |
154 |
) |
155 |
meson_src_configure |
156 |
} |
157 |
@@ -110,18 +102,20 @@ src_configure() { |
158 |
src_install() { |
159 |
meson_src_install |
160 |
if use python ; then |
161 |
- python_optimize "${ED}"usr/$(get_libdir)/totem/plugins/ |
162 |
+ python_optimize "${ED}"/usr/$(get_libdir)/totem/plugins/ |
163 |
fi |
164 |
} |
165 |
|
166 |
pkg_postinst() { |
167 |
xdg_pkg_postinst |
168 |
- gnome2_icon_cache_update |
169 |
gnome2_schemas_update |
170 |
} |
171 |
|
172 |
pkg_postrm() { |
173 |
xdg_pkg_postrm |
174 |
- gnome2_icon_cache_update |
175 |
gnome2_schemas_update |
176 |
} |
177 |
+ |
178 |
+src_test() { |
179 |
+ virtx meson_src_test |
180 |
+} |