1 |
commit: bd9dcf1438fd0a7df4ee76fa5b3bec401ab906b3 |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 3 02:03:33 2015 +0000 |
4 |
Commit: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 3 02:03:39 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd9dcf14 |
7 |
|
8 |
gnome-extra/cinnamon: add 2.6.13 |
9 |
|
10 |
Gentoo-Bug: 554122 |
11 |
Reported-by: Akiraba Honata |
12 |
Package-Manager: portage-2.2.20.1 |
13 |
|
14 |
gnome-extra/cinnamon/Manifest | 1 + |
15 |
gnome-extra/cinnamon/cinnamon-2.6.13.ebuild | 258 ++++++++++++++++++++++++++++ |
16 |
2 files changed, 259 insertions(+) |
17 |
|
18 |
diff --git a/gnome-extra/cinnamon/Manifest b/gnome-extra/cinnamon/Manifest |
19 |
index c98b1f5..9d4cb39 100644 |
20 |
--- a/gnome-extra/cinnamon/Manifest |
21 |
+++ b/gnome-extra/cinnamon/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST cinnamon-2.4.7.tar.gz 2812013 SHA256 d971c893d4617f482bad1d79b18cf14ccb3a2298f2381f1a64f1d72ee59cb40e SHA512 0450657804d5bd290177577a7059b494d7ef88bbfbec7b5a480cdc29894dd92d6f4e404d789009abcaad4c6adf279be991c5f8c3d300f70fec81acd57fb8700c WHIRLPOOL 43f31b2b83009321e3d7cd17a0570a2d83bed7fe0cef54966ff32c7075cf6e9181f96c5fd1725f540bb1cce00a6944f57b65bb77361995e527c85c74884e6a0d |
24 |
+DIST cinnamon-2.6.13.tar.gz 2967812 SHA256 f349403901bf3e84cda2ebd425dc6f58850059092775e285862067f120debe86 SHA512 41192b25ac34c542596f9625a671d019531aa466f057777da12ca0fda0f23daa10929c9f7a4e3c1a7137887fc9b0b556836a82f42645128b620949386387efec WHIRLPOOL 0c7c7ed6375964a93217adf43cc6236f7e7b92b75facfc94ded86f914890452b92753486d1c46b8a6531eef49993a0bc9fc0d387e8ea2a5bc4f05dd80571462a |
25 |
DIST cinnamon-2.6.9.tar.gz 2968234 SHA256 9bed52d586480b888a414af6e306c2d8d6cf536aeb49e65304b8f3e2e422e756 SHA512 372492f9a9833ae3b7ba2b22d6c4cec8bb8c0a02282d1efe595e8a822a7064d7129b2a56f9df7dd4ec8f329bee3db22ffb41672752f5daa6811973d42cae150d WHIRLPOOL 83e04e781ac175f4ce885c84554d70d8322a613fac30735af3efb57e43afb8ffb757771cc153b4b1ae8070a219972d76f707ce2fe40b7714aee6854e9a0bdd0d |
26 |
|
27 |
diff --git a/gnome-extra/cinnamon/cinnamon-2.6.13.ebuild b/gnome-extra/cinnamon/cinnamon-2.6.13.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..76f706b |
30 |
--- /dev/null |
31 |
+++ b/gnome-extra/cinnamon/cinnamon-2.6.13.ebuild |
32 |
@@ -0,0 +1,258 @@ |
33 |
+# Copyright 1999-2015 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI="5" |
38 |
+GCONF_DEBUG="no" |
39 |
+GNOME2_LA_PUNT="yes" |
40 |
+PYTHON_COMPAT=( python2_7 python3_3 python3_4 ) |
41 |
+PYTHON_REQ_USE="xml" |
42 |
+ |
43 |
+inherit autotools eutils flag-o-matic gnome2 multilib pax-utils python-r1 |
44 |
+ |
45 |
+DESCRIPTION="A fork of GNOME Shell with layout similar to GNOME 2" |
46 |
+HOMEPAGE="http://cinnamon.linuxmint.com/" |
47 |
+ |
48 |
+MY_PV="${PV/_p/-UP}" |
49 |
+MY_P="${PN}-${MY_PV}" |
50 |
+ |
51 |
+SRC_URI="https://github.com/linuxmint/Cinnamon/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" |
52 |
+ |
53 |
+LICENSE="GPL-2+" |
54 |
+SLOT="0" |
55 |
+ |
56 |
+# bluetooth support dropped due bug #511648 |
57 |
+IUSE="+nls +networkmanager" #+bluetooth |
58 |
+ |
59 |
+# We need *both* python 2.7 and 3.x |
60 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
61 |
+ python_targets_python2_7 |
62 |
+ || ( python_targets_python3_3 python_targets_python3_4 ) |
63 |
+ " |
64 |
+ |
65 |
+KEYWORDS="~amd64 ~x86" |
66 |
+ |
67 |
+COMMON_DEPEND=" |
68 |
+ app-accessibility/at-spi2-atk:2 |
69 |
+ app-misc/ca-certificates |
70 |
+ dev-libs/dbus-glib |
71 |
+ >=dev-libs/glib-2.29.10:2[dbus] |
72 |
+ >=dev-libs/gobject-introspection-0.10.1:= |
73 |
+ >=dev-libs/json-glib-0.13.2 |
74 |
+ >=dev-libs/libcroco-0.6.2:0.6 |
75 |
+ dev-libs/libxml2:2 |
76 |
+ gnome-base/gconf:2[introspection] |
77 |
+ gnome-base/librsvg |
78 |
+ >=gnome-extra/cinnamon-desktop-2.4:0=[introspection] |
79 |
+ gnome-extra/cinnamon-menus[introspection] |
80 |
+ >=gnome-extra/cjs-2.4 |
81 |
+ >=media-libs/clutter-1.10:1.0[introspection] |
82 |
+ media-libs/cogl:1.0=[introspection] |
83 |
+ >=gnome-base/gsettings-desktop-schemas-2.91.91 |
84 |
+ media-libs/gstreamer:1.0 |
85 |
+ media-libs/gst-plugins-base:1.0 |
86 |
+ media-sound/pulseaudio:0=[glib] |
87 |
+ net-libs/libsoup:2.4[introspection] |
88 |
+ >=sys-auth/polkit-0.100[introspection] |
89 |
+ x11-libs/gdk-pixbuf:2[introspection] |
90 |
+ >=x11-libs/gtk+-3.9.12:3[introspection] |
91 |
+ x11-libs/pango[introspection] |
92 |
+ >=x11-libs/startup-notification-0.11 |
93 |
+ x11-libs/libX11 |
94 |
+ >=x11-libs/libXfixes-5.0 |
95 |
+ >=x11-wm/muffin-2.5[introspection] |
96 |
+ ${PYTHON_DEPS} |
97 |
+ networkmanager? ( |
98 |
+ gnome-base/libgnome-keyring |
99 |
+ >=net-misc/networkmanager-0.8.999[introspection] ) |
100 |
+" |
101 |
+#bluetooth? ( >=net-wireless/gnome-bluetooth-3.1:=[introspection] ) |
102 |
+ |
103 |
+# Runtime-only deps are probably incomplete and approximate. |
104 |
+# Each block: |
105 |
+# 2. Introspection stuff + dconf needed via imports.gi.* |
106 |
+# 3. gnome-session is needed for gnome-session-quit |
107 |
+# 4. Control shell settings |
108 |
+# 5. accountsservice is needed for GdmUserManager (0.6.14 needed for fast |
109 |
+# user switching with gdm-3.1.x) |
110 |
+# 6. caribou needed for on-screen keyboard |
111 |
+# 7. xdg-utils needed for xdg-open, used by extension tool |
112 |
+# 8. gconf-python, imaging, lxml needed for cinnamon-settings |
113 |
+# 9. gnome-icon-theme-symbolic needed for various icons |
114 |
+# 10. pygobject needed for menu editor |
115 |
+# 11. nemo - default file manager, tightly integrated with cinnamon |
116 |
+# 12. polkit-gnome - explicitly autostarted by us |
117 |
+# TODO(lxnay): fix error: libgnome-desktop/gnome-rr-labeler.h: No such file or directory |
118 |
+RDEPEND="${COMMON_DEPEND} |
119 |
+ >=gnome-base/dconf-0.4.1 |
120 |
+ >=gnome-base/libgnomekbd-2.91.4[introspection] |
121 |
+ || ( sys-power/upower[introspection] sys-power/upower-pm-utils[introspection] ) |
122 |
+ |
123 |
+ >=gnome-extra/cinnamon-session-2.4 |
124 |
+ >=gnome-extra/cinnamon-settings-daemon-2.4 |
125 |
+ |
126 |
+ >=sys-apps/accountsservice-0.6.14[introspection] |
127 |
+ |
128 |
+ >=app-accessibility/caribou-0.3 |
129 |
+ |
130 |
+ x11-misc/xdg-utils |
131 |
+ |
132 |
+ dev-python/dbus-python[python_targets_python2_7] |
133 |
+ dev-python/gconf-python:2[python_targets_python2_7] |
134 |
+ dev-python/lxml[python_targets_python2_7] |
135 |
+ dev-python/pexpect[python_targets_python2_7] |
136 |
+ dev-python/pycairo[python_targets_python2_7] |
137 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
138 |
+ dev-python/pyinotify[python_targets_python2_7] |
139 |
+ dev-python/pypam[python_targets_python2_7] |
140 |
+ virtual/python-imaging[python_targets_python2_7] |
141 |
+ |
142 |
+ x11-themes/gnome-themes-standard[gtk] |
143 |
+ x11-themes/gnome-icon-theme-symbolic |
144 |
+ |
145 |
+ >=gnome-extra/nemo-2.4 |
146 |
+ >=gnome-extra/cinnamon-control-center-2.4 |
147 |
+ >=gnome-extra/cinnamon-screensaver-2.4 |
148 |
+ |
149 |
+ gnome-extra/polkit-gnome |
150 |
+ |
151 |
+ networkmanager? ( |
152 |
+ gnome-extra/nm-applet |
153 |
+ net-misc/mobile-broadband-provider-info |
154 |
+ sys-libs/timezone-data ) |
155 |
+ nls? ( >=gnome-extra/cinnamon-translations-2.4 ) |
156 |
+" |
157 |
+#bluetooth? ( net-wireless/cinnamon-bluetooth ) |
158 |
+ |
159 |
+DEPEND="${COMMON_DEPEND} |
160 |
+ dev-python/polib[python_targets_python2_7] |
161 |
+ >=sys-devel/gettext-0.17 |
162 |
+ virtual/pkgconfig |
163 |
+ >=dev-util/intltool-0.40 |
164 |
+ gnome-base/gnome-common |
165 |
+ !!=dev-lang/spidermonkey-1.8.2* |
166 |
+" |
167 |
+# libmozjs.so is picked up from /usr/lib while compiling, so block at build-time |
168 |
+# https://bugs.gentoo.org/show_bug.cgi?id=360413 |
169 |
+ |
170 |
+S="${WORKDIR}/Cinnamon-${PV}" |
171 |
+ |
172 |
+pkg_setup() { |
173 |
+ python_setup |
174 |
+} |
175 |
+ |
176 |
+src_prepare() { |
177 |
+ # Fix backgrounds path as cinnamon doesn't provide them |
178 |
+ # https://github.com/linuxmint/Cinnamon/issues/3575 |
179 |
+ epatch "${FILESDIR}"/${PN}-2.4.5-background.patch |
180 |
+ |
181 |
+ # Fix automagic gnome-bluetooth dep, bug #398145 |
182 |
+ epatch "${FILESDIR}"/${PN}-2.2.6-automagic-gnome-bluetooth.patch |
183 |
+ |
184 |
+ # Optional NetworkManager, bug #488684 |
185 |
+ epatch "${FILESDIR}"/${PN}-2.6.7-optional-networkmanager.patch |
186 |
+ |
187 |
+ # Use wheel group instead of sudo (from Fedora/Arch) |
188 |
+ # https://github.com/linuxmint/Cinnamon/issues/3576 |
189 |
+ epatch "${FILESDIR}"/${PN}-2.6.7-set-wheel.patch |
190 |
+ |
191 |
+ # Fix GNOME 3.14 support (from Fedora/Arch) |
192 |
+ # https://github.com/linuxmint/Cinnamon/issues/3577 |
193 |
+ epatch "${FILESDIR}"/${PN}-2.4.5-gnome-3.14.patch |
194 |
+ |
195 |
+ # Use pkexec instead of gksu (from Arch) |
196 |
+ # https://github.com/linuxmint/Cinnamon/issues/3565 |
197 |
+ sed -i 's/gksu/pkexec/' files/usr/bin/cinnamon-settings-users || die |
198 |
+ |
199 |
+ # Add polkit agent to required components (from Fedora/Arch), bug #523958 |
200 |
+ # https://github.com/linuxmint/Cinnamon/issues/3579 |
201 |
+ sed -i 's/RequiredComponents=\(.*\)$/RequiredComponents=\1polkit-gnome-authentication-agent-1;/' \ |
202 |
+ files/usr/share/cinnamon-session/sessions/cinnamon*.session || die |
203 |
+ |
204 |
+ # Gentoo uses /usr/$(get_libdir), not /usr/lib even for python |
205 |
+ sed -e "s:/usr/lib/:/usr/$(get_libdir)/:" \ |
206 |
+ -e 's:"/usr/lib":"/usr/'"$(get_libdir)"'":' \ |
207 |
+ -i files/usr/share/polkit-1/actions/org.cinnamon.settings-users.policy \ |
208 |
+ -i files/usr/lib/*/*.py \ |
209 |
+ -i files/usr/lib/*/*/*.py \ |
210 |
+ -i files/usr/bin/* || die "sed failed" |
211 |
+ if [[ "$(get_libdir)" != lib ]]; then |
212 |
+ mv files/usr/lib "files/usr/$(get_libdir)" || die "mv failed" |
213 |
+ fi |
214 |
+ |
215 |
+ if ! use networkmanager; then |
216 |
+ rm -rv files/usr/share/cinnamon/applets/network@××××××××.org || die |
217 |
+ fi |
218 |
+ |
219 |
+ epatch_user |
220 |
+ |
221 |
+ # python 2-and-3 shebang fixing craziness |
222 |
+ local p |
223 |
+ python_setup 'python3*' |
224 |
+ for p in $(grep -rl '#!.*python3'); do |
225 |
+ python_fix_shebang "${p}" |
226 |
+ done |
227 |
+ |
228 |
+ python_setup 'python2*' |
229 |
+ for p in $(grep -rl '#!.*python[^3]'); do |
230 |
+ python_fix_shebang "${p}" |
231 |
+ done |
232 |
+ |
233 |
+ eautoreconf |
234 |
+ gnome2_src_prepare |
235 |
+} |
236 |
+ |
237 |
+src_configure() { |
238 |
+ # https://bugs.gentoo.org/show_bug.cgi?id=536374 |
239 |
+ # https://github.com/linuxmint/Cinnamon/issues/3843 |
240 |
+ append-ldflags $(no-as-needed) |
241 |
+ |
242 |
+ gnome2_src_configure \ |
243 |
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
244 |
+ --disable-rpath \ |
245 |
+ --disable-jhbuild-wrapper-script \ |
246 |
+ $(use_enable networkmanager) \ |
247 |
+ --with-ca-certificates="${EPREFIX}/etc/ssl/certs/ca-certificates.crt" \ |
248 |
+ BROWSER_PLUGIN_DIR="${EPREFIX}/usr/$(get_libdir)/nsbrowser/plugins" \ |
249 |
+ --without-bluetooth |
250 |
+} |
251 |
+ |
252 |
+src_install() { |
253 |
+ gnome2_src_install |
254 |
+ python_optimize "${ED}"usr/$(get_libdir)/cinnamon-* |
255 |
+ |
256 |
+ # Required for gnome-shell on hardened/PaX, bug #398941 |
257 |
+ pax-mark mr "${ED}usr/bin/cinnamon" |
258 |
+ |
259 |
+ # Doesn't exist on Gentoo, causing this to be a dead symlink |
260 |
+ rm -f "${ED}etc/xdg/menus/cinnamon-applications-merged" || die |
261 |
+ |
262 |
+ # Ensure authentication-agent is started, bug #523958 |
263 |
+ # https://github.com/linuxmint/Cinnamon/issues/3579 |
264 |
+ insinto /etc/xdg/autostart/ |
265 |
+ doins "${FILESDIR}"/polkit-cinnamon-authentication-agent-1.desktop |
266 |
+} |
267 |
+ |
268 |
+pkg_postinst() { |
269 |
+ gnome2_pkg_postinst |
270 |
+ |
271 |
+ if ! has_version 'media-libs/gst-plugins-good:1.0' || \ |
272 |
+ ! has_version 'media-plugins/gst-plugins-vpx:1.0'; then |
273 |
+ ewarn "To make use of Cinnamon's built-in screen recording utility," |
274 |
+ ewarn "you need to either install media-libs/gst-plugins-good:1.0" |
275 |
+ ewarn "and media-plugins/gst-plugins-vpx:1.0, or use dconf-editor to change" |
276 |
+ ewarn "org.cinnamon.recorder/pipeline to what you want to use." |
277 |
+ fi |
278 |
+ |
279 |
+ if ! has_version ">=x11-base/xorg-server-1.11"; then |
280 |
+ ewarn "If you use multiple screens, it is highly recommended that you" |
281 |
+ ewarn "upgrade to >=x11-base/xorg-server-1.11 to be able to make use of" |
282 |
+ ewarn "pointer barriers which will make it easier to use hot corners." |
283 |
+ fi |
284 |
+ |
285 |
+ if has_version "<x11-drivers/ati-drivers-12"; then |
286 |
+ ewarn "Cinnamon has been reported to show graphical corruption under" |
287 |
+ ewarn "x11-drivers/ati-drivers-11.*; you may want to switch to" |
288 |
+ ewarn "open-source drivers." |
289 |
+ fi |
290 |
+} |