Gentoo Archives: gentoo-commits

From: Kristian Fiskerstrand <k_f@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/cinnamon/
Date: Wed, 28 Nov 2018 19:56:59
Message-Id: 1543434918.999d64da43c7547c07e76226e7ded7fd3568e302.k_f@gentoo
1 commit: 999d64da43c7547c07e76226e7ded7fd3568e302
2 Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 24 18:25:45 2018 +0000
4 Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 28 19:55:18 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=999d64da
7
8 gnome-extra/cinnamon: New upstream version 4.0.3
9
10 Closes: https://bugs.gentoo.org/671296
11 Closes: https://bugs.gentoo.org/666388
12 Closes: https://bugs.gentoo.org/666386
13 Closes: https://bugs.gentoo.org/666382
14
15 Signed-off-by: Kristian Fiskerstrand <k_f <AT> gentoo.org>
16 Package-Manager: Portage-2.3.51, Repoman-2.3.11
17
18 gnome-extra/cinnamon/Manifest | 1 +
19 gnome-extra/cinnamon/cinnamon-4.0.3.ebuild | 209 +++++++++++++++++++++++++++++
20 2 files changed, 210 insertions(+)
21
22 diff --git a/gnome-extra/cinnamon/Manifest b/gnome-extra/cinnamon/Manifest
23 index d50a6456091..cac23ce7ae5 100644
24 --- a/gnome-extra/cinnamon/Manifest
25 +++ b/gnome-extra/cinnamon/Manifest
26 @@ -1,2 +1,3 @@
27 DIST cinnamon-3.6.6.tar.gz 2211080 BLAKE2B a5be448413532b6cc84c77d17e56739a8c2f3c26f21fac3fcdcaeda127a00e1a8f7d623964c4040f77624da06795eb607491aef55bf31fcb291b074ee75930f9 SHA512 9bd153508458bae2f99a451620fe5e80e45cae0e10cf113b07ca2c0a76cd16e84c4a6d743c659ef41ab91066df025f78a0ea2005a3d34ddd065fe88f358b6642
28 DIST cinnamon-3.8.8.tar.gz 2234388 BLAKE2B edc27a670d788673602536f960e2859f6cc15a52ebd12cd741821c4455664ca6bfc6f2b2e3282a0797b15bf93a33208f4f4458df7b2cbe17e50d90412811265c SHA512 5f8acf181fde8d9156ef8767f97b24e207f6c44975e5ef97e812fcdd3b2d5ce4c921297b679ad1ade6fa8e4f9c544b74143f4d925d022cc95d6c71561ab40b53
29 +DIST cinnamon-4.0.3.tar.gz 2325905 BLAKE2B 8ff07f8f76ae0c0e973a9113e258a31948afc68066e27ccd7e9576d6beb5328aa8cf2c5d97e6c564f3eee9a5bf66a23241270de3a82a1fb56fcf79680b219294 SHA512 d29295dc08971ff6dbd71066d700037718fdb1399bbc4f483903be7a10bfa509a904db9de064a263acb6956b4a1623c1e37a0a9f28819074eb3a93d3a5866db1
30
31 diff --git a/gnome-extra/cinnamon/cinnamon-4.0.3.ebuild b/gnome-extra/cinnamon/cinnamon-4.0.3.ebuild
32 new file mode 100644
33 index 00000000000..bd5ffbd202e
34 --- /dev/null
35 +++ b/gnome-extra/cinnamon/cinnamon-4.0.3.ebuild
36 @@ -0,0 +1,209 @@
37 +# Copyright 1999-2018 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=6
41 +GNOME2_LA_PUNT="yes"
42 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
43 +PYTHON_REQ_USE="xml"
44 +
45 +inherit autotools eutils flag-o-matic gnome2 multilib pax-utils python-r1
46 +
47 +DESCRIPTION="A fork of GNOME Shell with layout similar to GNOME 2"
48 +HOMEPAGE="http://developer.linuxmint.com/"
49 +
50 +MY_PV="${PV/_p/-UP}"
51 +MY_P="${PN}-${MY_PV}"
52 +
53 +SRC_URI="https://github.com/linuxmint/Cinnamon/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
54 +
55 +LICENSE="GPL-2+"
56 +SLOT="0"
57 +
58 +IUSE="+nls"
59 +
60 +# We need *both* python 2.x and 3.x
61 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
62 + || ( $(python_gen_useflags 'python2*') )
63 + || ( $(python_gen_useflags 'python3*') )
64 +"
65 +
66 +KEYWORDS="~amd64 ~x86"
67 +
68 +COMMON_DEPEND="${PYTHON_DEPS}
69 + app-accessibility/at-spi2-atk:2
70 + app-misc/ca-certificates
71 + dev-libs/dbus-glib
72 + >=dev-libs/glib-2.35.0:2[dbus]
73 + >=dev-libs/gobject-introspection-0.10.1:=
74 + >=dev-libs/json-glib-0.13.2
75 + >=dev-libs/libcroco-0.6.2:0.6
76 + dev-libs/libxml2:2
77 + gnome-base/gconf:2[introspection]
78 + gnome-base/librsvg
79 + >=gnome-extra/cinnamon-desktop-4.0:0=[introspection]
80 + >=gnome-extra/cinnamon-menus-4.0[introspection]
81 + >=gnome-extra/cjs-4.0.0[cairo]
82 + >=media-libs/clutter-1.10:1.0[introspection]
83 + media-libs/cogl:1.0=[introspection]
84 + >=gnome-base/gsettings-desktop-schemas-2.91.91
85 + media-libs/gstreamer:1.0
86 + media-libs/gst-plugins-base:1.0
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.12.0: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-4.0.0[introspection]
96 + dev-libs/keybinder:3[introspection]
97 + >=x11-libs/libnotify-0.7.3:0=[introspection]
98 +"
99 +# Runtime-only deps are probably incomplete and approximate.
100 +# Each block:
101 +# 2. Introspection stuff + dconf needed via imports.gi.*
102 +# 3. gnome-session is needed for gnome-session-quit
103 +# 4. Control shell settings
104 +# 5. accountsservice is needed for GdmUserManager (0.6.14 needed for fast
105 +# user switching with gdm-3.1.x)
106 +# 6. caribou needed for on-screen keyboard
107 +# 7. xdg-utils needed for xdg-open, used by extension tool
108 +# 8. gconf-python, imaging, lxml needed for cinnamon-settings
109 +# 9. gnome-icon-theme-symbolic needed for various icons
110 +# 10. pygobject needed for menu editor
111 +# 11. nemo - default file manager, tightly integrated with cinnamon
112 +# 12. polkit-gnome - explicitly autostarted by us
113 +# TODO(lxnay): fix error: libgnome-desktop/gnome-rr-labeler.h: No such file or directory
114 +RDEPEND="${COMMON_DEPEND}
115 + >=gnome-base/dconf-0.4.1
116 + >=gnome-base/libgnomekbd-2.91.4[introspection]
117 + || ( sys-power/upower[introspection] sys-power/upower-pm-utils[introspection] )
118 +
119 + >=gnome-extra/cinnamon-session-4.0
120 + >=gnome-extra/cinnamon-settings-daemon-4.0
121 +
122 + >=app-accessibility/caribou-0.3
123 +
124 + x11-misc/xdg-utils
125 + x11-libs/xapps[introspection]
126 +
127 + dev-python/dbus-python[${PYTHON_USEDEP}]
128 + dev-python/pygobject:3[${PYTHON_USEDEP}]
129 + $(python_gen_cond_dep 'dev-python/gconf-python:2[${PYTHON_USEDEP}]' 'python2*')
130 + $(python_gen_cond_dep 'dev-python/lxml[${PYTHON_USEDEP}]' 'python2*')
131 + $(python_gen_cond_dep 'dev-python/pexpect[${PYTHON_USEDEP}]' 'python2*')
132 + $(python_gen_cond_dep 'dev-python/pycairo[${PYTHON_USEDEP}]' 'python2*')
133 + $(python_gen_cond_dep 'dev-python/pyinotify[${PYTHON_USEDEP}]' 'python2*')
134 + $(python_gen_cond_dep 'dev-python/pypam[${PYTHON_USEDEP}]' 'python2*')
135 + $(python_gen_cond_dep 'dev-python/pillow[${PYTHON_USEDEP}]' 'python2*')
136 +
137 + x11-themes/gnome-themes-standard
138 + x11-themes/adwaita-icon-theme
139 +
140 + >=gnome-extra/nemo-4.0
141 + >=gnome-extra/cinnamon-control-center-4.0
142 + >=gnome-extra/cinnamon-screensaver-4.0
143 +
144 + gnome-extra/polkit-gnome
145 +
146 + nls? ( >=gnome-extra/cinnamon-translations-4.0 )
147 +"
148 +DEPEND="${COMMON_DEPEND}
149 + $(python_gen_cond_dep 'dev-python/polib[${PYTHON_USEDEP}]' 'python2*')
150 + dev-util/gtk-doc
151 + >=dev-util/intltool-0.4
152 + >=sys-devel/gettext-0.17
153 + virtual/pkgconfig
154 + gnome-base/gnome-common
155 + !!=dev-lang/spidermonkey-1.8.2*
156 +"
157 +# libmozjs.so is picked up from /usr/lib while compiling, so block at build-time
158 +# https://bugs.gentoo.org/show_bug.cgi?id=360413
159 +
160 +S="${WORKDIR}/Cinnamon-${PV}"
161 +
162 +pkg_setup() {
163 + python_setup
164 +}
165 +
166 +src_prepare() {
167 + # Fix backgrounds path as cinnamon doesn't provide them
168 + # https://github.com/linuxmint/Cinnamon/issues/3575
169 + eapply "${FILESDIR}"/${PN}-3.8.0-gnome-background-compatibility.patch
170 +
171 + # Use wheel group instead of sudo (from Fedora/Arch)
172 + # https://github.com/linuxmint/Cinnamon/issues/3576
173 + eapply "${FILESDIR}"/${PN}-3.6.6-wheel-sudo.patch
174 +
175 + # Use pkexec instead of gksu (from Arch)
176 + # https://github.com/linuxmint/Cinnamon/issues/3565
177 + sed -i 's/gksu/pkexec/' files/usr/bin/cinnamon-settings-users || die
178 +
179 + # Add polkit agent to required components (from Fedora/Arch), bug #523958
180 + # https://github.com/linuxmint/Cinnamon/issues/3579
181 + sed -i 's/RequiredComponents=\(.*\)$/RequiredComponents=\1polkit-gnome-authentication-agent-1;/' \
182 + files/usr/share/cinnamon-session/sessions/cinnamon*.session || die
183 +
184 + # python 2-and-3 shebang fixing craziness
185 + local p
186 + python_setup 'python3*'
187 + for p in $(grep -rl '#!.*python3'); do
188 + python_fix_shebang "${p}"
189 + done
190 +
191 + python_setup 'python2*'
192 + for p in $(grep -rl '#!.*python[^3]'); do
193 + python_fix_shebang "${p}"
194 + done
195 +
196 + eautoreconf
197 + gnome2_src_prepare
198 +}
199 +
200 +src_configure() {
201 + gnome2_src_configure \
202 + --libdir="${EPREFIX}/usr/$(get_libdir)" \
203 + --with-ca-certificates="${EPREFIX}/etc/ssl/certs/ca-certificates.crt" \
204 + BROWSER_PLUGIN_DIR="${EPREFIX}/usr/$(get_libdir)/nsbrowser/plugins"
205 +}
206 +
207 +src_install() {
208 + gnome2_src_install
209 + python_optimize "${ED}"usr/$(get_libdir)/cinnamon-*
210 +
211 + # Required for gnome-shell on hardened/PaX, bug #398941
212 + pax-mark mr "${ED}usr/bin/cinnamon"
213 +
214 + # Doesn't exist on Gentoo, causing this to be a dead symlink
215 + rm -f "${ED}etc/xdg/menus/cinnamon-applications-merged" || die
216 +
217 + # Ensure authentication-agent is started, bug #523958
218 + # https://github.com/linuxmint/Cinnamon/issues/3579
219 + insinto /etc/xdg/autostart/
220 + doins "${FILESDIR}"/polkit-cinnamon-authentication-agent-1.desktop
221 +}
222 +
223 +pkg_postinst() {
224 + gnome2_pkg_postinst
225 +
226 + if ! has_version 'media-libs/gst-plugins-good:1.0' || \
227 + ! has_version 'media-plugins/gst-plugins-vpx:1.0'; then
228 + ewarn "To make use of Cinnamon's built-in screen recording utility,"
229 + ewarn "you need to either install media-libs/gst-plugins-good:1.0"
230 + ewarn "and media-plugins/gst-plugins-vpx:1.0, or use dconf-editor to change"
231 + ewarn "org.cinnamon.recorder/pipeline to what you want to use."
232 + fi
233 +
234 + if ! has_version ">=x11-base/xorg-server-1.11"; then
235 + ewarn "If you use multiple screens, it is highly recommended that you"
236 + ewarn "upgrade to >=x11-base/xorg-server-1.11 to be able to make use of"
237 + ewarn "pointer barriers which will make it easier to use hot corners."
238 + fi
239 +
240 + if has_version "<x11-drivers/ati-drivers-12"; then
241 + ewarn "Cinnamon has been reported to show graphical corruption under"
242 + ewarn "x11-drivers/ati-drivers-11.*; you may want to switch to"
243 + ewarn "open-source drivers."
244 + fi
245 +}