1 |
commit: 88b3f2734d3f0eed6a956e20fb524e5d717ea5db |
2 |
Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 27 22:19:17 2017 +0000 |
4 |
Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 27 22:20:11 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88b3f273 |
7 |
|
8 |
gnome-extra/cinnamon: Cleanup old |
9 |
|
10 |
Package-Manager: Portage-2.3.13, Repoman-2.3.3 |
11 |
|
12 |
gnome-extra/cinnamon/cinnamon-3.6.6-r1.ebuild | 229 -------------------------- |
13 |
gnome-extra/cinnamon/cinnamon-3.6.6.ebuild | 227 ------------------------- |
14 |
2 files changed, 456 deletions(-) |
15 |
|
16 |
diff --git a/gnome-extra/cinnamon/cinnamon-3.6.6-r1.ebuild b/gnome-extra/cinnamon/cinnamon-3.6.6-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index 8ecd59c4bce..00000000000 |
19 |
--- a/gnome-extra/cinnamon/cinnamon-3.6.6-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,229 +0,0 @@ |
22 |
-# Copyright 1999-2017 Gentoo Foundation |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=6 |
26 |
-GNOME2_LA_PUNT="yes" |
27 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
28 |
-PYTHON_REQ_USE="xml" |
29 |
- |
30 |
-inherit autotools eutils flag-o-matic gnome2 multilib pax-utils python-r1 |
31 |
- |
32 |
-DESCRIPTION="A fork of GNOME Shell with layout similar to GNOME 2" |
33 |
-HOMEPAGE="http://developer.linuxmint.com/" |
34 |
- |
35 |
-MY_PV="${PV/_p/-UP}" |
36 |
-MY_P="${PN}-${MY_PV}" |
37 |
- |
38 |
-SRC_URI="https://github.com/linuxmint/Cinnamon/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" |
39 |
- |
40 |
-LICENSE="GPL-2+" |
41 |
-SLOT="0" |
42 |
- |
43 |
-# bluetooth support dropped due to bug #511648 |
44 |
-IUSE="+nls +networkmanager" #+bluetooth |
45 |
- |
46 |
-# We need *both* python 2.x and 3.x |
47 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
48 |
- || ( $(python_gen_useflags 'python2*') ) |
49 |
- || ( $(python_gen_useflags 'python3*') ) |
50 |
-" |
51 |
- |
52 |
-KEYWORDS="~amd64 ~x86" |
53 |
- |
54 |
-COMMON_DEPEND="${PYTHON_DEPS} |
55 |
- app-accessibility/at-spi2-atk:2 |
56 |
- app-misc/ca-certificates |
57 |
- dev-libs/dbus-glib |
58 |
- >=dev-libs/glib-2.35.0:2[dbus] |
59 |
- >=dev-libs/gobject-introspection-0.10.1:= |
60 |
- >=dev-libs/json-glib-0.13.2 |
61 |
- >=dev-libs/libcroco-0.6.2:0.6 |
62 |
- dev-libs/libxml2:2 |
63 |
- gnome-base/gconf:2[introspection] |
64 |
- gnome-base/librsvg |
65 |
- >=gnome-extra/cinnamon-desktop-2.4:0=[introspection] |
66 |
- >=gnome-extra/cinnamon-menus-3.0[introspection] |
67 |
- >=gnome-extra/cjs-3.2.0 |
68 |
- >=media-libs/clutter-1.10:1.0[introspection] |
69 |
- media-libs/cogl:1.0=[introspection] |
70 |
- >=gnome-base/gsettings-desktop-schemas-2.91.91 |
71 |
- media-libs/gstreamer:1.0 |
72 |
- media-libs/gst-plugins-base:1.0 |
73 |
- net-libs/libsoup:2.4[introspection] |
74 |
- >=sys-auth/polkit-0.100[introspection] |
75 |
- x11-libs/gdk-pixbuf:2[introspection] |
76 |
- >=x11-libs/gtk+-3.9.12:3[introspection] |
77 |
- x11-libs/pango[introspection] |
78 |
- >=x11-libs/startup-notification-0.11 |
79 |
- x11-libs/libX11 |
80 |
- >=x11-libs/libXfixes-5.0 |
81 |
- >=x11-wm/muffin-3.2.0[introspection] |
82 |
- networkmanager? ( |
83 |
- gnome-base/libgnome-keyring |
84 |
- >=net-misc/networkmanager-0.8.999:=[introspection] ) |
85 |
-" |
86 |
-#bluetooth? ( >=net-wireless/gnome-bluetooth-3.1:=[introspection] ) |
87 |
- |
88 |
-# Runtime-only deps are probably incomplete and approximate. |
89 |
-# Each block: |
90 |
-# 2. Introspection stuff + dconf needed via imports.gi.* |
91 |
-# 3. gnome-session is needed for gnome-session-quit |
92 |
-# 4. Control shell settings |
93 |
-# 5. accountsservice is needed for GdmUserManager (0.6.14 needed for fast |
94 |
-# user switching with gdm-3.1.x) |
95 |
-# 6. caribou needed for on-screen keyboard |
96 |
-# 7. xdg-utils needed for xdg-open, used by extension tool |
97 |
-# 8. gconf-python, imaging, lxml needed for cinnamon-settings |
98 |
-# 9. gnome-icon-theme-symbolic needed for various icons |
99 |
-# 10. pygobject needed for menu editor |
100 |
-# 11. nemo - default file manager, tightly integrated with cinnamon |
101 |
-# 12. polkit-gnome - explicitly autostarted by us |
102 |
-# TODO(lxnay): fix error: libgnome-desktop/gnome-rr-labeler.h: No such file or directory |
103 |
-RDEPEND="${COMMON_DEPEND} |
104 |
- >=gnome-base/dconf-0.4.1 |
105 |
- >=gnome-base/libgnomekbd-2.91.4[introspection] |
106 |
- || ( sys-power/upower[introspection] sys-power/upower-pm-utils[introspection] ) |
107 |
- |
108 |
- >=gnome-extra/cinnamon-session-2.4 |
109 |
- >=gnome-extra/cinnamon-settings-daemon-2.4 |
110 |
- |
111 |
- >=app-accessibility/caribou-0.3 |
112 |
- |
113 |
- x11-misc/xdg-utils |
114 |
- x11-libs/xapps[introspection] |
115 |
- |
116 |
- dev-python/dbus-python[${PYTHON_USEDEP}] |
117 |
- dev-python/pygobject:3[${PYTHON_USEDEP}] |
118 |
- $(python_gen_cond_dep 'dev-python/gconf-python:2[${PYTHON_USEDEP}]' 'python2*') |
119 |
- $(python_gen_cond_dep 'dev-python/lxml[${PYTHON_USEDEP}]' 'python2*') |
120 |
- $(python_gen_cond_dep 'dev-python/pexpect[${PYTHON_USEDEP}]' 'python2*') |
121 |
- $(python_gen_cond_dep 'dev-python/pycairo[${PYTHON_USEDEP}]' 'python2*') |
122 |
- $(python_gen_cond_dep 'dev-python/pyinotify[${PYTHON_USEDEP}]' 'python2*') |
123 |
- $(python_gen_cond_dep 'dev-python/pypam[${PYTHON_USEDEP}]' 'python2*') |
124 |
- $(python_gen_cond_dep 'dev-python/pillow[${PYTHON_USEDEP}]' 'python2*') |
125 |
- |
126 |
- x11-themes/gnome-themes-standard |
127 |
- x11-themes/adwaita-icon-theme |
128 |
- |
129 |
- >=gnome-extra/nemo-2.4 |
130 |
- >=gnome-extra/cinnamon-control-center-2.4 |
131 |
- >=gnome-extra/cinnamon-screensaver-2.4 |
132 |
- |
133 |
- gnome-extra/polkit-gnome |
134 |
- |
135 |
- networkmanager? ( |
136 |
- gnome-extra/nm-applet |
137 |
- net-misc/mobile-broadband-provider-info |
138 |
- sys-libs/timezone-data ) |
139 |
- nls? ( >=gnome-extra/cinnamon-translations-2.4 ) |
140 |
-" |
141 |
-#bluetooth? ( net-wireless/cinnamon-bluetooth ) |
142 |
- |
143 |
-DEPEND="${COMMON_DEPEND} |
144 |
- $(python_gen_cond_dep 'dev-python/polib[${PYTHON_USEDEP}]' 'python2*') |
145 |
- dev-util/gtk-doc |
146 |
- >=dev-util/intltool-0.4 |
147 |
- >=sys-devel/gettext-0.17 |
148 |
- virtual/pkgconfig |
149 |
- gnome-base/gnome-common |
150 |
- !!=dev-lang/spidermonkey-1.8.2* |
151 |
-" |
152 |
-# libmozjs.so is picked up from /usr/lib while compiling, so block at build-time |
153 |
-# https://bugs.gentoo.org/show_bug.cgi?id=360413 |
154 |
- |
155 |
-S="${WORKDIR}/Cinnamon-${PV}" |
156 |
- |
157 |
-pkg_setup() { |
158 |
- python_setup |
159 |
-} |
160 |
- |
161 |
-src_prepare() { |
162 |
- # Fix backgrounds path as cinnamon doesn't provide them |
163 |
- # https://github.com/linuxmint/Cinnamon/issues/3575 |
164 |
- eapply "${FILESDIR}"/${PN}-2.8.0-background.patch |
165 |
- |
166 |
- # Fix automagic gnome-bluetooth dep, bug #398145 |
167 |
- eapply "${FILESDIR}"/${PN}-2.2.6-automagic-gnome-bluetooth.patch |
168 |
- |
169 |
- # Use wheel group instead of sudo (from Fedora/Arch) |
170 |
- # https://github.com/linuxmint/Cinnamon/issues/3576 |
171 |
- eapply "${FILESDIR}"/${PN}-3.6.6-wheel-sudo.patch |
172 |
- |
173 |
- # Use pkexec instead of gksu (from Arch) |
174 |
- # https://github.com/linuxmint/Cinnamon/issues/3565 |
175 |
- sed -i 's/gksu/pkexec/' files/usr/bin/cinnamon-settings-users || die |
176 |
- |
177 |
- # Add polkit agent to required components (from Fedora/Arch), bug #523958 |
178 |
- # https://github.com/linuxmint/Cinnamon/issues/3579 |
179 |
- sed -i 's/RequiredComponents=\(.*\)$/RequiredComponents=\1polkit-gnome-authentication-agent-1;/' \ |
180 |
- files/usr/share/cinnamon-session/sessions/cinnamon*.session || die |
181 |
- |
182 |
- if ! use networkmanager; then |
183 |
- rm -rv files/usr/share/cinnamon/applets/network@××××××××.org || die |
184 |
- fi |
185 |
- |
186 |
- # python 2-and-3 shebang fixing craziness |
187 |
- local p |
188 |
- python_setup 'python3*' |
189 |
- for p in $(grep -rl '#!.*python3'); do |
190 |
- python_fix_shebang "${p}" |
191 |
- done |
192 |
- |
193 |
- python_setup 'python2*' |
194 |
- for p in $(grep -rl '#!.*python[^3]'); do |
195 |
- python_fix_shebang "${p}" |
196 |
- done |
197 |
- |
198 |
- eautoreconf |
199 |
- gnome2_src_prepare |
200 |
-} |
201 |
- |
202 |
-src_configure() { |
203 |
- gnome2_src_configure \ |
204 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
205 |
- --disable-jhbuild-wrapper-script \ |
206 |
- $(use_enable networkmanager) \ |
207 |
- --with-ca-certificates="${EPREFIX}/etc/ssl/certs/ca-certificates.crt" \ |
208 |
- BROWSER_PLUGIN_DIR="${EPREFIX}/usr/$(get_libdir)/nsbrowser/plugins" \ |
209 |
- --without-bluetooth |
210 |
-} |
211 |
- |
212 |
-src_install() { |
213 |
- gnome2_src_install |
214 |
- python_optimize "${ED}"usr/$(get_libdir)/cinnamon-* |
215 |
- |
216 |
- # Required for gnome-shell on hardened/PaX, bug #398941 |
217 |
- pax-mark mr "${ED}usr/bin/cinnamon" |
218 |
- |
219 |
- # Doesn't exist on Gentoo, causing this to be a dead symlink |
220 |
- rm -f "${ED}etc/xdg/menus/cinnamon-applications-merged" || die |
221 |
- |
222 |
- # Ensure authentication-agent is started, bug #523958 |
223 |
- # https://github.com/linuxmint/Cinnamon/issues/3579 |
224 |
- insinto /etc/xdg/autostart/ |
225 |
- doins "${FILESDIR}"/polkit-cinnamon-authentication-agent-1.desktop |
226 |
-} |
227 |
- |
228 |
-pkg_postinst() { |
229 |
- gnome2_pkg_postinst |
230 |
- |
231 |
- if ! has_version 'media-libs/gst-plugins-good:1.0' || \ |
232 |
- ! has_version 'media-plugins/gst-plugins-vpx:1.0'; then |
233 |
- ewarn "To make use of Cinnamon's built-in screen recording utility," |
234 |
- ewarn "you need to either install media-libs/gst-plugins-good:1.0" |
235 |
- ewarn "and media-plugins/gst-plugins-vpx:1.0, or use dconf-editor to change" |
236 |
- ewarn "org.cinnamon.recorder/pipeline to what you want to use." |
237 |
- fi |
238 |
- |
239 |
- if ! has_version ">=x11-base/xorg-server-1.11"; then |
240 |
- ewarn "If you use multiple screens, it is highly recommended that you" |
241 |
- ewarn "upgrade to >=x11-base/xorg-server-1.11 to be able to make use of" |
242 |
- ewarn "pointer barriers which will make it easier to use hot corners." |
243 |
- fi |
244 |
- |
245 |
- if has_version "<x11-drivers/ati-drivers-12"; then |
246 |
- ewarn "Cinnamon has been reported to show graphical corruption under" |
247 |
- ewarn "x11-drivers/ati-drivers-11.*; you may want to switch to" |
248 |
- ewarn "open-source drivers." |
249 |
- fi |
250 |
-} |
251 |
|
252 |
diff --git a/gnome-extra/cinnamon/cinnamon-3.6.6.ebuild b/gnome-extra/cinnamon/cinnamon-3.6.6.ebuild |
253 |
deleted file mode 100644 |
254 |
index 23734530bbd..00000000000 |
255 |
--- a/gnome-extra/cinnamon/cinnamon-3.6.6.ebuild |
256 |
+++ /dev/null |
257 |
@@ -1,227 +0,0 @@ |
258 |
-# Copyright 1999-2017 Gentoo Foundation |
259 |
-# Distributed under the terms of the GNU General Public License v2 |
260 |
- |
261 |
-EAPI=6 |
262 |
-GNOME2_LA_PUNT="yes" |
263 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
264 |
-PYTHON_REQ_USE="xml" |
265 |
- |
266 |
-inherit autotools eutils flag-o-matic gnome2 multilib pax-utils python-r1 |
267 |
- |
268 |
-DESCRIPTION="A fork of GNOME Shell with layout similar to GNOME 2" |
269 |
-HOMEPAGE="http://developer.linuxmint.com/" |
270 |
- |
271 |
-MY_PV="${PV/_p/-UP}" |
272 |
-MY_P="${PN}-${MY_PV}" |
273 |
- |
274 |
-SRC_URI="https://github.com/linuxmint/Cinnamon/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" |
275 |
- |
276 |
-LICENSE="GPL-2+" |
277 |
-SLOT="0" |
278 |
- |
279 |
-# bluetooth support dropped due to bug #511648 |
280 |
-IUSE="+nls +networkmanager" #+bluetooth |
281 |
- |
282 |
-# We need *both* python 2.x and 3.x |
283 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
284 |
- || ( $(python_gen_useflags 'python2*') ) |
285 |
- || ( $(python_gen_useflags 'python3*') ) |
286 |
-" |
287 |
- |
288 |
-KEYWORDS="~amd64 ~x86" |
289 |
- |
290 |
-COMMON_DEPEND="${PYTHON_DEPS} |
291 |
- app-accessibility/at-spi2-atk:2 |
292 |
- app-misc/ca-certificates |
293 |
- dev-libs/dbus-glib |
294 |
- >=dev-libs/glib-2.35.0:2[dbus] |
295 |
- >=dev-libs/gobject-introspection-0.10.1:= |
296 |
- >=dev-libs/json-glib-0.13.2 |
297 |
- >=dev-libs/libcroco-0.6.2:0.6 |
298 |
- dev-libs/libxml2:2 |
299 |
- gnome-base/gconf:2[introspection] |
300 |
- gnome-base/librsvg |
301 |
- >=gnome-extra/cinnamon-desktop-3.6:0=[introspection] |
302 |
- >=gnome-extra/cinnamon-menus-3.6[introspection] |
303 |
- >=gnome-extra/cjs-3.6.0 |
304 |
- >=media-libs/clutter-1.10:1.0[introspection] |
305 |
- media-libs/cogl:1.0=[introspection] |
306 |
- >=gnome-base/gsettings-desktop-schemas-2.91.91 |
307 |
- media-libs/gstreamer:1.0 |
308 |
- media-libs/gst-plugins-base:1.0 |
309 |
- net-libs/libsoup:2.4[introspection] |
310 |
- >=sys-auth/polkit-0.100[introspection] |
311 |
- x11-libs/gdk-pixbuf:2[introspection] |
312 |
- >=x11-libs/gtk+-3.9.12:3[introspection] |
313 |
- x11-libs/pango[introspection] |
314 |
- >=x11-libs/startup-notification-0.11 |
315 |
- x11-libs/libX11 |
316 |
- >=x11-libs/libXfixes-5.0 |
317 |
- >=x11-wm/muffin-3.6.0[introspection] |
318 |
- networkmanager? ( |
319 |
- gnome-base/libgnome-keyring |
320 |
- >=net-misc/networkmanager-0.8.999:=[introspection] ) |
321 |
-" |
322 |
-#bluetooth? ( >=net-wireless/gnome-bluetooth-3.1:=[introspection] ) |
323 |
- |
324 |
-# Runtime-only deps are probably incomplete and approximate. |
325 |
-# Each block: |
326 |
-# 2. Introspection stuff + dconf needed via imports.gi.* |
327 |
-# 3. gnome-session is needed for gnome-session-quit |
328 |
-# 4. Control shell settings |
329 |
-# 5. accountsservice is needed for GdmUserManager (0.6.14 needed for fast |
330 |
-# user switching with gdm-3.1.x) |
331 |
-# 6. caribou needed for on-screen keyboard |
332 |
-# 7. xdg-utils needed for xdg-open, used by extension tool |
333 |
-# 8. gconf-python, imaging, lxml needed for cinnamon-settings |
334 |
-# 9. gnome-icon-theme-symbolic needed for various icons |
335 |
-# 10. pygobject needed for menu editor |
336 |
-# 11. nemo - default file manager, tightly integrated with cinnamon |
337 |
-# 12. polkit-gnome - explicitly autostarted by us |
338 |
-# TODO(lxnay): fix error: libgnome-desktop/gnome-rr-labeler.h: No such file or directory |
339 |
-RDEPEND="${COMMON_DEPEND} |
340 |
- >=gnome-base/dconf-0.4.1 |
341 |
- >=gnome-base/libgnomekbd-2.91.4[introspection] |
342 |
- || ( sys-power/upower[introspection] sys-power/upower-pm-utils[introspection] ) |
343 |
- |
344 |
- >=gnome-extra/cinnamon-session-2.4 |
345 |
- >=gnome-extra/cinnamon-settings-daemon-2.4 |
346 |
- |
347 |
- >=sys-apps/accountsservice-0.6.14[introspection] |
348 |
- |
349 |
- >=app-accessibility/caribou-0.3 |
350 |
- |
351 |
- x11-misc/xdg-utils |
352 |
- x11-libs/xapps[introspection] |
353 |
- |
354 |
- dev-python/dbus-python[${PYTHON_USEDEP}] |
355 |
- dev-python/pygobject:3[${PYTHON_USEDEP}] |
356 |
- $(python_gen_cond_dep 'dev-python/gconf-python:2[${PYTHON_USEDEP}]' 'python2*') |
357 |
- $(python_gen_cond_dep 'dev-python/lxml[${PYTHON_USEDEP}]' 'python2*') |
358 |
- $(python_gen_cond_dep 'dev-python/pexpect[${PYTHON_USEDEP}]' 'python2*') |
359 |
- $(python_gen_cond_dep 'dev-python/pycairo[${PYTHON_USEDEP}]' 'python2*') |
360 |
- $(python_gen_cond_dep 'dev-python/pyinotify[${PYTHON_USEDEP}]' 'python2*') |
361 |
- $(python_gen_cond_dep 'dev-python/pypam[${PYTHON_USEDEP}]' 'python2*') |
362 |
- $(python_gen_cond_dep 'dev-python/pillow[${PYTHON_USEDEP}]' 'python2*') |
363 |
- |
364 |
- x11-themes/gnome-themes-standard |
365 |
- x11-themes/adwaita-icon-theme |
366 |
- |
367 |
- >=gnome-extra/nemo-3.6 |
368 |
- >=gnome-extra/cinnamon-control-center-3.6 |
369 |
- >=gnome-extra/cinnamon-screensaver-3.6 |
370 |
- |
371 |
- gnome-extra/polkit-gnome |
372 |
- |
373 |
- networkmanager? ( |
374 |
- gnome-extra/nm-applet |
375 |
- net-misc/mobile-broadband-provider-info |
376 |
- sys-libs/timezone-data ) |
377 |
- nls? ( >=gnome-extra/cinnamon-translations-2.4 ) |
378 |
-" |
379 |
-#bluetooth? ( net-wireless/cinnamon-bluetooth ) |
380 |
- |
381 |
-DEPEND="${COMMON_DEPEND} |
382 |
- $(python_gen_cond_dep 'dev-python/polib[${PYTHON_USEDEP}]' 'python2*') |
383 |
- dev-util/gtk-doc |
384 |
- >=dev-util/intltool-0.4 |
385 |
- >=sys-devel/gettext-0.17 |
386 |
- virtual/pkgconfig |
387 |
- gnome-base/gnome-common |
388 |
- !!=dev-lang/spidermonkey-1.8.2* |
389 |
-" |
390 |
-# libmozjs.so is picked up from /usr/lib while compiling, so block at build-time |
391 |
-# https://bugs.gentoo.org/show_bug.cgi?id=360413 |
392 |
- |
393 |
-S="${WORKDIR}/Cinnamon-${PV}" |
394 |
- |
395 |
-pkg_setup() { |
396 |
- python_setup |
397 |
-} |
398 |
- |
399 |
-src_prepare() { |
400 |
- # Fix backgrounds path as cinnamon doesn't provide them |
401 |
- # https://github.com/linuxmint/Cinnamon/issues/3575 |
402 |
- eapply "${FILESDIR}"/${PN}-2.8.0-background.patch |
403 |
- |
404 |
- # Fix automagic gnome-bluetooth dep, bug #398145 |
405 |
- eapply "${FILESDIR}"/${PN}-2.2.6-automagic-gnome-bluetooth.patch |
406 |
- |
407 |
- # Use pkexec instead of gksu (from Arch) |
408 |
- # https://github.com/linuxmint/Cinnamon/issues/3565 |
409 |
- sed -i 's/gksu/pkexec/' files/usr/bin/cinnamon-settings-users || die |
410 |
- |
411 |
- # Add polkit agent to required components (from Fedora/Arch), bug #523958 |
412 |
- # https://github.com/linuxmint/Cinnamon/issues/3579 |
413 |
- sed -i 's/RequiredComponents=\(.*\)$/RequiredComponents=\1polkit-gnome-authentication-agent-1;/' \ |
414 |
- files/usr/share/cinnamon-session/sessions/cinnamon*.session || die |
415 |
- |
416 |
- if ! use networkmanager; then |
417 |
- rm -rv files/usr/share/cinnamon/applets/network@××××××××.org || die |
418 |
- fi |
419 |
- |
420 |
- # python 2-and-3 shebang fixing craziness |
421 |
- local p |
422 |
- python_setup 'python3*' |
423 |
- for p in $(grep -rl '#!.*python3'); do |
424 |
- python_fix_shebang "${p}" |
425 |
- done |
426 |
- |
427 |
- python_setup 'python2*' |
428 |
- for p in $(grep -rl '#!.*python[^3]'); do |
429 |
- python_fix_shebang "${p}" |
430 |
- done |
431 |
- |
432 |
- eautoreconf |
433 |
- gnome2_src_prepare |
434 |
-} |
435 |
- |
436 |
-src_configure() { |
437 |
- gnome2_src_configure \ |
438 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
439 |
- --disable-jhbuild-wrapper-script \ |
440 |
- $(use_enable networkmanager) \ |
441 |
- --with-ca-certificates="${EPREFIX}/etc/ssl/certs/ca-certificates.crt" \ |
442 |
- BROWSER_PLUGIN_DIR="${EPREFIX}/usr/$(get_libdir)/nsbrowser/plugins" \ |
443 |
- --without-bluetooth |
444 |
-} |
445 |
- |
446 |
-src_install() { |
447 |
- gnome2_src_install |
448 |
- python_optimize "${ED}"usr/$(get_libdir)/cinnamon-* |
449 |
- |
450 |
- # Required for gnome-shell on hardened/PaX, bug #398941 |
451 |
- pax-mark mr "${ED}usr/bin/cinnamon" |
452 |
- |
453 |
- # Doesn't exist on Gentoo, causing this to be a dead symlink |
454 |
- rm -f "${ED}etc/xdg/menus/cinnamon-applications-merged" || die |
455 |
- |
456 |
- # Ensure authentication-agent is started, bug #523958 |
457 |
- # https://github.com/linuxmint/Cinnamon/issues/3579 |
458 |
- insinto /etc/xdg/autostart/ |
459 |
- doins "${FILESDIR}"/polkit-cinnamon-authentication-agent-1.desktop |
460 |
-} |
461 |
- |
462 |
-pkg_postinst() { |
463 |
- gnome2_pkg_postinst |
464 |
- |
465 |
- if ! has_version 'media-libs/gst-plugins-good:1.0' || \ |
466 |
- ! has_version 'media-plugins/gst-plugins-vpx:1.0'; then |
467 |
- ewarn "To make use of Cinnamon's built-in screen recording utility," |
468 |
- ewarn "you need to either install media-libs/gst-plugins-good:1.0" |
469 |
- ewarn "and media-plugins/gst-plugins-vpx:1.0, or use dconf-editor to change" |
470 |
- ewarn "org.cinnamon.recorder/pipeline to what you want to use." |
471 |
- fi |
472 |
- |
473 |
- if ! has_version ">=x11-base/xorg-server-1.11"; then |
474 |
- ewarn "If you use multiple screens, it is highly recommended that you" |
475 |
- ewarn "upgrade to >=x11-base/xorg-server-1.11 to be able to make use of" |
476 |
- ewarn "pointer barriers which will make it easier to use hot corners." |
477 |
- fi |
478 |
- |
479 |
- if has_version "<x11-drivers/ati-drivers-12"; then |
480 |
- ewarn "Cinnamon has been reported to show graphical corruption under" |
481 |
- ewarn "x11-drivers/ati-drivers-11.*; you may want to switch to" |
482 |
- ewarn "open-source drivers." |
483 |
- fi |
484 |
-} |