Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/cinnamon/, gnome-extra/cinnamon/files/
Date: Fri, 21 Jan 2022 17:15:45
Message-Id: 1642785313.a815d023e5f45b7ca060cfa9ba10366c026fe2d8.sam@gentoo
1 commit: a815d023e5f45b7ca060cfa9ba10366c026fe2d8
2 Author: Matthew S. Turnbull <sparky <AT> bluefang-logic <DOT> com>
3 AuthorDate: Wed Dec 29 20:09:39 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 21 17:15:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a815d023
7
8 gnome-extra/cinnamon: 5.2.7 version bump
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Matthew S. Turnbull <sparky <AT> bluefang-logic.com>
12 Closes: https://github.com/gentoo/gentoo/pull/23576
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 gnome-extra/cinnamon/Manifest | 1 +
16 gnome-extra/cinnamon/cinnamon-5.2.7.ebuild | 182 +++++++++++++++++++++
17 .../files/cinnamon-5.2.7-optional-eds.patch | 85 ++++++++++
18 3 files changed, 268 insertions(+)
19
20 diff --git a/gnome-extra/cinnamon/Manifest b/gnome-extra/cinnamon/Manifest
21 index fae7a4561542..b167c58a3b6c 100644
22 --- a/gnome-extra/cinnamon/Manifest
23 +++ b/gnome-extra/cinnamon/Manifest
24 @@ -1 +1,2 @@
25 DIST cinnamon-5.0.6.tar.gz 2397950 BLAKE2B e54f8ed02fc36c121d15d30aaed4633f7db30bcf3e0179fb5fa0b9f12b42f0a29b341f531eed7ba19f849c0400ee9887ee59b5218f4558586a360d173798aeea SHA512 3ed835b1c41a34dfd1e2eac7746bfa01fe48359c6c3e8085877a4c18b895ea065efc343a855cbdee3fcbfb63aa40166bbe40fa19154ae1544be675411d49a962
26 +DIST cinnamon-5.2.7.tar.gz 2423949 BLAKE2B f4ce9ec4c79eab3daadff958c0a334d49757548203078ab657ebe2450f3f179c942df9d0f9089efe313c268c929628d724db43371e12338606d284a2738ed62c SHA512 62cbbe2f719574b3f70a4895c231be9ad65a41220d2755cc1557bc06bb2b31ced93621c356f2973376d127d5a1e59f9295498bbc4812d428e8605e8f4882c733
27
28 diff --git a/gnome-extra/cinnamon/cinnamon-5.2.7.ebuild b/gnome-extra/cinnamon/cinnamon-5.2.7.ebuild
29 new file mode 100644
30 index 000000000000..976736f285f6
31 --- /dev/null
32 +++ b/gnome-extra/cinnamon/cinnamon-5.2.7.ebuild
33 @@ -0,0 +1,182 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +PYTHON_COMPAT=( python3_{7,8,9,10} )
40 +PYTHON_REQ_USE="xml"
41 +
42 +inherit meson gnome2-utils pax-utils python-single-r1 xdg
43 +
44 +DESCRIPTION="A fork of GNOME Shell with layout similar to GNOME 2"
45 +HOMEPAGE="https://projects.linuxmint.com/cinnamon/ https://github.com/linuxmint/cinnamon"
46 +SRC_URI="https://github.com/linuxmint/cinnamon/archive/${PV}.tar.gz -> ${P}.tar.gz"
47 +
48 +LICENSE="GPL-2+"
49 +SLOT="0"
50 +IUSE="+eds +gstreamer gtk-doc +nls +networkmanager"
51 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
52 +KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
53 +
54 +DEPEND="
55 + ${PYTHON_DEPS}
56 + app-accessibility/at-spi2-atk:2
57 + >=dev-libs/glib-2.52.0:2[dbus]
58 + >=dev-libs/gobject-introspection-1.29.15:=
59 + dev-libs/libxml2:2
60 + >=gnome-extra/cinnamon-desktop-5.2:0=
61 + >=gnome-extra/cinnamon-menus-5.2
62 + >=gnome-extra/cjs-5.2[cairo]
63 + net-libs/libsoup:2.4[introspection]
64 + sys-apps/dbus
65 + >=sys-auth/polkit-0.100[introspection]
66 + virtual/opengl
67 + x11-libs/gdk-pixbuf:2[introspection]
68 + >=x11-libs/gtk+-3.12.0:3[introspection]
69 + >=x11-libs/libnotify-0.7.3:0=[introspection]
70 + x11-libs/libX11
71 + >=x11-libs/libXfixes-5.0
72 + x11-libs/pango[introspection]
73 + >=x11-libs/startup-notification-0.11
74 + >=x11-wm/muffin-5.2[introspection]
75 +
76 + eds? (
77 + gnome-extra/evolution-data-server
78 + )
79 + gstreamer? (
80 + media-libs/gst-plugins-base:1.0
81 + media-libs/gstreamer:1.0
82 + )
83 + networkmanager? (
84 + net-misc/networkmanager[introspection]
85 + )
86 +"
87 +# caribou used by onscreen keyboard
88 +# libtimezonemap used by datetime settings
89 +# iso-flag-png (unpackaged) used by keyboard layout settings
90 +RDEPEND="
91 + ${DEPEND}
92 + >=app-accessibility/caribou-0.3
93 + dev-libs/keybinder:3[introspection]
94 + dev-libs/libtimezonemap
95 + $(python_gen_cond_dep '
96 + dev-python/dbus-python[${PYTHON_USEDEP}]
97 + dev-python/distro[${PYTHON_USEDEP}]
98 + dev-python/pexpect[${PYTHON_USEDEP}]
99 + dev-python/pillow[${PYTHON_USEDEP}]
100 + dev-python/pycairo[${PYTHON_USEDEP}]
101 + dev-python/pygobject:3[${PYTHON_USEDEP}]
102 + dev-python/pyinotify[${PYTHON_USEDEP}]
103 + dev-python/pypam[${PYTHON_USEDEP}]
104 + dev-python/pytz[${PYTHON_USEDEP}]
105 + dev-python/setproctitle[${PYTHON_USEDEP}]
106 + dev-python/tinycss2[${PYTHON_USEDEP}]
107 + >=dev-python/python3-xapp-2.2.1-r1[${PYTHON_USEDEP}]
108 + ')
109 + >=gnome-base/dconf-0.4.1
110 + >=gnome-base/gsettings-desktop-schemas-2.91.91
111 + >=gnome-base/libgnomekbd-2.91.4
112 + >=gnome-extra/cinnamon-control-center-5.2[networkmanager=]
113 + >=gnome-extra/cinnamon-screensaver-5.2
114 + >=gnome-extra/cinnamon-session-5.2
115 + >=gnome-extra/cinnamon-settings-daemon-5.2
116 + >=gnome-extra/nemo-5.2
117 + gnome-extra/polkit-gnome
118 + net-misc/wget
119 + sys-apps/accountsservice[introspection]
120 + sys-power/upower[introspection]
121 + >=x11-libs/xapp-2.2.8[introspection]
122 + x11-misc/xdg-utils
123 + x11-themes/adwaita-icon-theme
124 + x11-themes/gnome-themes-standard
125 +
126 + nls? (
127 + >=gnome-extra/cinnamon-translations-5.2
128 + )
129 +"
130 +BDEPEND="
131 + >=dev-util/intltool-0.40
132 + >=sys-devel/gettext-0.17
133 + virtual/pkgconfig
134 +
135 + gtk-doc? ( dev-util/gtk-doc )
136 +"
137 +
138 +PATCHES=(
139 + # Fix backgrounds path as cinnamon doesn't provide them
140 + # https://github.com/linuxmint/Cinnamon/issues/3575
141 + "${FILESDIR}"/${PN}-3.8.0-gnome-background-compatibility.patch
142 +
143 + # Use wheel group instead of sudo (from Fedora/Arch)
144 + # https://github.com/linuxmint/Cinnamon/issues/3576
145 + "${FILESDIR}"/${PN}-3.6.6-wheel-sudo.patch
146 +
147 + # Make evolution-data-server integration optional
148 + "${FILESDIR}"/${PN}-5.2.7-optional-eds.patch
149 +)
150 +
151 +src_prepare() {
152 + xdg_src_prepare
153 +
154 + # Add polkit agent to required components
155 + # https://github.com/linuxmint/Cinnamon/issues/3579
156 + sed -i "s/'REQUIRED', '/&polkit-cinnamon-authentication-agent-1;/" meson.build || die
157 +
158 + # shebang fixing craziness
159 + local p
160 + for p in $(grep -rl '#!.*python3' || die); do
161 + python_fix_shebang "${p}"
162 + done
163 +}
164 +
165 +src_configure() {
166 + local emesonargs=(
167 + $(meson_use eds build_calendar_server)
168 + $(meson_use gstreamer build_recorder)
169 + $(meson_use gtk-doc docs)
170 + -Ddisable_networkmanager=$(usex networkmanager false true)
171 + -Dpy3modules_dir="$(python_get_sitedir)"
172 + )
173 + meson_src_configure
174 +}
175 +
176 +src_install() {
177 + meson_src_install
178 +
179 + python_optimize "${D}$(python_get_sitedir)"
180 + python_optimize "${ED}"/usr/share/cinnamon/
181 +
182 + # Required for gnome-shell on hardened/PaX, bug #398941
183 + pax-mark mr "${ED}"/usr/bin/cinnamon
184 +
185 + # Doesn't exist on Gentoo, causing this to be a dead symlink
186 + rm "${ED}/etc/xdg/menus/cinnamon-applications-merged" || die
187 +
188 + # Ensure authentication-agent is started, bug #523958
189 + # https://github.com/linuxmint/Cinnamon/issues/3579
190 + insinto /etc/xdg/autostart/
191 + doins "${FILESDIR}"/polkit-cinnamon-authentication-agent-1.desktop
192 +}
193 +
194 +pkg_postinst() {
195 + xdg_pkg_postinst
196 + gnome2_schemas_update
197 +
198 + if use gstreamer; then
199 + if ! has_version 'media-libs/gst-plugins-good:1.0' || \
200 + ! has_version 'media-plugins/gst-plugins-vpx:1.0'; then
201 + ewarn "To make use of Cinnamon's built-in screen recording utility,"
202 + ewarn "you need to either install media-libs/gst-plugins-good:1.0"
203 + ewarn "and media-plugins/gst-plugins-vpx:1.0, or use dconf-editor to change"
204 + ewarn "org.cinnamon.recorder/pipeline to what you want to use."
205 + fi
206 + else
207 + ewarn "Cinnamon's built-in screen recording utility is not installed"
208 + ewarn "because gstreamer support is disabled."
209 + fi
210 +}
211 +
212 +pkg_postrm() {
213 + xdg_pkg_postinst
214 + gnome2_schemas_update
215 +}
216
217 diff --git a/gnome-extra/cinnamon/files/cinnamon-5.2.7-optional-eds.patch b/gnome-extra/cinnamon/files/cinnamon-5.2.7-optional-eds.patch
218 new file mode 100644
219 index 000000000000..c0646359552b
220 --- /dev/null
221 +++ b/gnome-extra/cinnamon/files/cinnamon-5.2.7-optional-eds.patch
222 @@ -0,0 +1,85 @@
223 +diff --git a/files/usr/share/cinnamon/applets/calendar@××××××××.org/eventView.js b/files/usr/share/cinnamon/applets/calendar@××××××××.org/eventView.js
224 +index 1d1035c60..ebfd5a3a4 100644
225 +--- a/files/usr/share/cinnamon/applets/calendar@××××××××.org/eventView.js
226 ++++ b/files/usr/share/cinnamon/applets/calendar@××××××××.org/eventView.js
227 +@@ -301,7 +301,7 @@ class EventsManager {
228 + }
229 +
230 + start_events() {
231 +- if (this._calendar_server == null) {
232 ++ if (this._calendar_server == null && Cinnamon.CalendarServerProxy) {
233 + Cinnamon.CalendarServerProxy.new_for_bus(
234 + Gio.BusType.SESSION,
235 + // Gio.DBusProxyFlags.NONE,
236 +diff --git a/meson.build b/meson.build
237 +index 2c1baf47d..aba5d5a30 100644
238 +--- a/meson.build
239 ++++ b/meson.build
240 +@@ -179,6 +179,9 @@ install_subdir(
241 + strip_directory: true,
242 + )
243 +
244 +-subdir('calendar-server')
245 ++
246 ++if get_option('build_calendar_server')
247 ++ subdir('calendar-server')
248 ++endif
249 + subdir('python3')
250 + subdir('install-scripts')
251 +diff --git a/meson_options.txt b/meson_options.txt
252 +index 82422246b..752f7904e 100644
253 +--- a/meson_options.txt
254 ++++ b/meson_options.txt
255 +@@ -13,6 +13,11 @@ option('build_recorder',
256 + value: true,
257 + description: 'Build the cinnamon recorder into source'
258 + )
259 ++option('build_calendar_server',
260 ++ type: 'boolean',
261 ++ value: true,
262 ++ description: 'Build the cinnamon EDS calendar server'
263 ++)
264 + option('disable_networkmanager',
265 + type: 'boolean',
266 + value: false,
267 +diff --git a/src/meson.build b/src/meson.build
268 +index 7999c0a67..1b22aa279 100644
269 +--- a/src/meson.build
270 ++++ b/src/meson.build
271 +@@ -3,12 +3,6 @@ subdir('hotplug-sniffer')
272 +
273 + include_src = include_directories('.')
274 +
275 +-calendar_generated = gnome.gdbus_codegen('cinnamon-calendar',
276 +- sources: 'org.cinnamon.CalendarServer.xml',
277 +- interface_prefix: 'org.cinnamon.',
278 +- namespace: 'Cinnamon'
279 +-)
280 +-
281 + cinnamon_headers = [
282 + 'cinnamon-app.h',
283 + 'cinnamon-app-system.h',
284 +@@ -59,10 +53,21 @@ cinnamon_sources = [
285 + 'cinnamon-window-tracker.c',
286 + 'cinnamon-wm.c',
287 + 'cinnamon-xfixes-cursor.c',
288 +- cinnamon_headers,
289 +- calendar_generated
290 ++ cinnamon_headers
291 + ]
292 +
293 ++if get_option('build_calendar_server')
294 ++ calendar_generated = gnome.gdbus_codegen('cinnamon-calendar',
295 ++ sources: 'org.cinnamon.CalendarServer.xml',
296 ++ interface_prefix: 'org.cinnamon.',
297 ++ namespace: 'Cinnamon'
298 ++ )
299 ++
300 ++ cinnamon_sources += [
301 ++ calendar_generated
302 ++ ]
303 ++endif
304 ++
305 + cinnamon_enum_types = gnome.mkenums_simple(
306 + 'cinnamon-enum-types',
307 + sources: cinnamon_headers,