1 |
commit: c2b8e0aef0b4636571983795a96f33431492cbd9 |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 17 10:03:49 2017 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 17 10:30:36 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2b8e0ae |
7 |
|
8 |
media-video/totem: fix dependency on python |
9 |
|
10 |
All plugins actually require libpeas python3 loader. Move some |
11 |
dependencies from RDEPEND+DEPEND to pure RDEPEND. |
12 |
|
13 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
14 |
|
15 |
media-video/totem/totem-3.22.1-r1.ebuild | 133 +++++++++++++++++++++++++++++++ |
16 |
1 file changed, 133 insertions(+) |
17 |
|
18 |
diff --git a/media-video/totem/totem-3.22.1-r1.ebuild b/media-video/totem/totem-3.22.1-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..ec544e37d0a |
21 |
--- /dev/null |
22 |
+++ b/media-video/totem/totem-3.22.1-r1.ebuild |
23 |
@@ -0,0 +1,133 @@ |
24 |
+# Copyright 1999-2017 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+GNOME2_LA_PUNT="yes" # plugins are dlopened |
29 |
+PYTHON_COMPAT=( python{3_4,3_5} ) |
30 |
+PYTHON_REQ_USE="threads" |
31 |
+ |
32 |
+inherit autotools gnome2 python-single-r1 |
33 |
+ |
34 |
+DESCRIPTION="Media player for GNOME" |
35 |
+HOMEPAGE="https://wiki.gnome.org/Apps/Videos" |
36 |
+ |
37 |
+LICENSE="GPL-2+ LGPL-2+" |
38 |
+SLOT="0" |
39 |
+IUSE="debug +introspection lirc nautilus +python test zeitgeist" |
40 |
+# see bug #359379 |
41 |
+REQUIRED_USE=" |
42 |
+ python? ( introspection ${PYTHON_REQUIRED_USE} ) |
43 |
+ zeitgeist? ( introspection ) |
44 |
+" |
45 |
+ |
46 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd" |
47 |
+ |
48 |
+# FIXME: |
49 |
+# Runtime dependency on gnome-session-2.91 |
50 |
+COMMON_DEPEND=" |
51 |
+ >=dev-libs/glib-2.35:2[dbus] |
52 |
+ >=dev-libs/libpeas-1.1[gtk] |
53 |
+ >=dev-libs/libxml2-2.6:2 |
54 |
+ >=dev-libs/totem-pl-parser-3.10.1:0=[introspection?] |
55 |
+ >=media-libs/clutter-1.17.3:1.0[gtk] |
56 |
+ >=media-libs/clutter-gst-2.99.2:3.0 |
57 |
+ >=media-libs/clutter-gtk-1.8.1:1.0 |
58 |
+ >=x11-libs/cairo-1.14 |
59 |
+ >=x11-libs/gdk-pixbuf-2.23.0:2 |
60 |
+ >=x11-libs/gtk+-3.19.4:3[introspection?] |
61 |
+ |
62 |
+ >=media-libs/grilo-0.3.0:0.3[playlist] |
63 |
+ >=media-libs/gstreamer-1.6.0:1.0 |
64 |
+ >=media-libs/gst-plugins-base-1.6.0:1.0[X,introspection?,pango] |
65 |
+ media-libs/gst-plugins-good:1.0 |
66 |
+ |
67 |
+ x11-libs/libX11 |
68 |
+ |
69 |
+ gnome-base/gnome-desktop:3= |
70 |
+ gnome-base/gsettings-desktop-schemas |
71 |
+ |
72 |
+ introspection? ( >=dev-libs/gobject-introspection-0.6.7:= ) |
73 |
+ lirc? ( app-misc/lirc ) |
74 |
+ nautilus? ( >=gnome-base/nautilus-2.91.3 ) |
75 |
+ python? ( |
76 |
+ ${PYTHON_DEPS} |
77 |
+ >=dev-python/pygobject-2.90.3:3[${PYTHON_USEDEP}] ) |
78 |
+ zeitgeist? ( >=gnome-extra/zeitgeist-0.9.12 ) |
79 |
+" |
80 |
+RDEPEND="${COMMON_DEPEND} |
81 |
+ media-plugins/grilo-plugins:0.3 |
82 |
+ media-plugins/gst-plugins-meta:1.0 |
83 |
+ media-plugins/gst-plugins-taglib:1.0 |
84 |
+ x11-themes/adwaita-icon-theme |
85 |
+ python? ( |
86 |
+ >=dev-libs/libpeas-1.1.0[python,${PYTHON_USEDEP}] |
87 |
+ dev-python/pyxdg[${PYTHON_USEDEP}] |
88 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
89 |
+ >=x11-libs/gtk+-3.5.2:3[introspection] ) |
90 |
+" |
91 |
+DEPEND="${COMMON_DEPEND} |
92 |
+ app-text/docbook-xml-dtd:4.5 |
93 |
+ app-text/yelp-tools |
94 |
+ dev-libs/appstream-glib |
95 |
+ >=dev-util/gtk-doc-am-1.14 |
96 |
+ >=dev-util/intltool-0.50.1 |
97 |
+ sys-devel/gettext |
98 |
+ virtual/pkgconfig |
99 |
+ x11-proto/xextproto |
100 |
+ x11-proto/xproto |
101 |
+ |
102 |
+ dev-libs/gobject-introspection-common |
103 |
+ gnome-base/gnome-common |
104 |
+" |
105 |
+# eautoreconf needs: |
106 |
+# app-text/yelp-tools |
107 |
+# dev-libs/gobject-introspection-common |
108 |
+# gnome-base/gnome-common |
109 |
+# docbook-xml-dtd is needed for user doc |
110 |
+# Prevent dev-python/pylint dep, bug #482538 |
111 |
+ |
112 |
+pkg_setup() { |
113 |
+ use python && python-single-r1_pkg_setup |
114 |
+} |
115 |
+ |
116 |
+src_prepare() { |
117 |
+ # Prevent pylint usage by tests, bug #482538 |
118 |
+ sed -i -e 's/ check-pylint//' src/plugins/Makefile.plugins || die |
119 |
+ |
120 |
+ eautoreconf |
121 |
+ gnome2_src_prepare |
122 |
+ |
123 |
+ # FIXME: upstream should provide a way to set GST_INSPECT, bug #358755 & co. |
124 |
+ # gst-inspect causes sandbox violations when a plugin needs write access to |
125 |
+ # /dev/dri/card* in its init phase. |
126 |
+ sed -e "s|\(gst10_inspect=\).*|\1$(type -P true)|" \ |
127 |
+ -i configure || die |
128 |
+} |
129 |
+ |
130 |
+src_configure() { |
131 |
+ # Disabled: sample-python, sample-vala |
132 |
+ local plugins="apple-trailers,autoload-subtitles,brasero-disc-recorder" |
133 |
+ plugins+=",im-status,gromit,media-player-keys,ontop" |
134 |
+ plugins+=",properties,recent,rotation,screensaver,screenshot" |
135 |
+ plugins+=",skipto,variable-rate,vimeo" |
136 |
+ use lirc && plugins+=",lirc" |
137 |
+ use nautilus && plugins+=",save-file" |
138 |
+ use python && plugins+=",dbusservice,pythonconsole,opensubtitles" |
139 |
+ use zeitgeist && plugins+=",zeitgeist-dp" |
140 |
+ |
141 |
+ # pylint is checked unconditionally, but is only used for make check |
142 |
+ # appstream-util overriding necessary until upstream fixes their macro |
143 |
+ # to respect configure switch |
144 |
+ gnome2_src_configure \ |
145 |
+ --disable-run-in-source-tree \ |
146 |
+ --disable-static \ |
147 |
+ --enable-easy-codec-installation \ |
148 |
+ --enable-vala \ |
149 |
+ $(use_enable introspection) \ |
150 |
+ $(use_enable nautilus) \ |
151 |
+ $(use_enable python) \ |
152 |
+ PYLINT=$(type -P true) \ |
153 |
+ VALAC=$(type -P true) \ |
154 |
+ APPSTREAM_UTIL=$(type -P true) \ |
155 |
+ --with-plugins=${plugins} |
156 |
+} |