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-screensaver/files/, gnome-extra/cinnamon-screensaver/
Date: Sat, 12 Jun 2021 03:55:39
Message-Id: 1623470116.510b996e577f94f71f2f615422a60ef98fbabb26.sam@gentoo
1 commit: 510b996e577f94f71f2f615422a60ef98fbabb26
2 Author: Matthew S. Turnbull <sparky <AT> bluefang-logic <DOT> com>
3 AuthorDate: Fri Jun 11 16:43:27 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 12 03:55:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=510b996e
7
8 gnome-extra/cinnamon-screensaver: drop old
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: Matthew S. Turnbull <sparky <AT> bluefang-logic.com>
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 gnome-extra/cinnamon-screensaver/Manifest | 1 -
15 .../cinnamon-screensaver-4.6.0.ebuild | 78 ----------------------
16 .../cinnamon-screensaver-4.6.0-python-build.patch | 77 ---------------------
17 .../cinnamon-screensaver-4.6.0-xinerama.patch | 49 --------------
18 4 files changed, 205 deletions(-)
19
20 diff --git a/gnome-extra/cinnamon-screensaver/Manifest b/gnome-extra/cinnamon-screensaver/Manifest
21 index 52ebb3b94a4..8023d478cd2 100644
22 --- a/gnome-extra/cinnamon-screensaver/Manifest
23 +++ b/gnome-extra/cinnamon-screensaver/Manifest
24 @@ -1,3 +1,2 @@
25 -DIST cinnamon-screensaver-4.6.0.tar.gz 141043 BLAKE2B ba9f1e02fb7567d269daa4eccdb39d2c73dd6ac6bd3a3a4e00e1bcec685b48394fc9247d5006f908091291748e013ae65cf7718a972ef67ed7fd11a226789d6d SHA512 c83a057ff12a22445a155d4f91a45638d922c9b2180a7655f1e34bfd8ddcd31ed901b5b038236fa0e06c6f7986547c34ee8ab61cd216b5bc75f1c202b545c28f
26 DIST cinnamon-screensaver-4.8.1.tar.gz 141996 BLAKE2B 73a61e28210efc58a205357abd7b1ca5efce85c542a14ba0de1688ca3c6c86cc81cf02b7eee7d7a13d015d43b6084a0e5a5a0f417a3be77771ff969381c24726 SHA512 5f165cddf5cd3f079192179f2308e015d7d70ce52f5214a56f8fc4318fdc6d6fc2b522b1c8eca31b4799074e58bd93bdce282d9774d1a552616c9ae1a0b46cae
27 DIST cinnamon-screensaver-5.0.2.tar.gz 153825 BLAKE2B cb09de296deed91b2669c008d1d266ae3a77ed3eb894d19fd1586043a568c9c48babc7518f3c0ab4c42384ee8cfd5705e99b9291b0887fc47546ffaa3893a615 SHA512 ac7c6a57307e8ba41c34337b9c0bb57efa7ab49fcb5cc6aa8eb81cd839de3c17c852e4677c35eac022638fe50966871c245510319b8fa64ed48ba56ed818e681
28
29 diff --git a/gnome-extra/cinnamon-screensaver/cinnamon-screensaver-4.6.0.ebuild b/gnome-extra/cinnamon-screensaver/cinnamon-screensaver-4.6.0.ebuild
30 deleted file mode 100644
31 index e25d02acbe8..00000000000
32 --- a/gnome-extra/cinnamon-screensaver/cinnamon-screensaver-4.6.0.ebuild
33 +++ /dev/null
34 @@ -1,78 +0,0 @@
35 -# Copyright 1999-2021 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=7
39 -PYTHON_COMPAT=( python3_{7,8} )
40 -
41 -inherit meson python-single-r1 xdg
42 -
43 -DESCRIPTION="Screensaver for Cinnamon"
44 -HOMEPAGE="https://projects.linuxmint.com/cinnamon/"
45 -SRC_URI="https://github.com/linuxmint/cinnamon-screensaver/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 -
47 -LICENSE="GPL-2+"
48 -SLOT="0"
49 -IUSE="systemd xinerama"
50 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
51 -KEYWORDS="amd64 ~arm64 x86"
52 -
53 -COMMON_DEPEND="
54 - >=dev-libs/glib-2.37.3:2[dbus]
55 - >=x11-libs/gtk+-3.22:3[introspection]
56 - >=gnome-extra/cinnamon-desktop-4.6:0=
57 - >=dev-libs/dbus-glib-0.78
58 -
59 - sys-apps/dbus
60 - sys-libs/pam
61 - x11-libs/libX11
62 - x11-libs/libXext
63 - x11-libs/libXrandr
64 - x11-themes/adwaita-icon-theme
65 -
66 - ${PYTHON_DEPS}
67 -
68 - xinerama? ( x11-libs/libXinerama )
69 -"
70 -RDEPEND="${COMMON_DEPEND}
71 - >=app-accessibility/caribou-0.3
72 - sys-apps/accountsservice[introspection]
73 - $(python_gen_cond_dep '
74 - dev-python/pygobject:3[${PYTHON_USEDEP}]
75 - dev-python/setproctitle[${PYTHON_USEDEP}]
76 - dev-python/xapp[${PYTHON_USEDEP}]
77 - dev-python/psutil[${PYTHON_USEDEP}]
78 - ')
79 - systemd? ( >=sys-apps/systemd-31 )
80 - !systemd? ( sys-auth/elogind )
81 -"
82 -DEPEND="${COMMON_DEPEND}
83 - x11-base/xorg-proto
84 -"
85 -BDEPEND="
86 - dev-util/gdbus-codegen
87 - >=dev-util/intltool-0.40
88 - sys-devel/gettext
89 - virtual/pkgconfig
90 -"
91 -
92 -PATCHES=(
93 - "${FILESDIR}"/${PN}-4.6.0-python-build.patch
94 - "${FILESDIR}"/${PN}-4.6.0-xinerama.patch
95 -)
96 -
97 -src_prepare() {
98 - default
99 - python_fix_shebang install-scripts src
100 -}
101 -
102 -src_configure() {
103 - local emesonargs=(
104 - $(meson_use xinerama)
105 - )
106 - meson_src_configure
107 -}
108 -
109 -src_install() {
110 - meson_src_install
111 - python_optimize "${ED}"/usr/share/cinnamon-screensaver/
112 -}
113
114 diff --git a/gnome-extra/cinnamon-screensaver/files/cinnamon-screensaver-4.6.0-python-build.patch b/gnome-extra/cinnamon-screensaver/files/cinnamon-screensaver-4.6.0-python-build.patch
115 deleted file mode 100644
116 index 1e43396257f..00000000000
117 --- a/gnome-extra/cinnamon-screensaver/files/cinnamon-screensaver-4.6.0-python-build.patch
118 +++ /dev/null
119 @@ -1,77 +0,0 @@
120 -From f838b2ab03af0285043d980feba9d52d96d66164 Mon Sep 17 00:00:00 2001
121 -From: Michael Webster <miketwebster@×××××.com>
122 -Date: Fri, 15 May 2020 08:34:40 -0400
123 -Subject: [PATCH] Build: Only generate python bytecode during builds with no
124 - temporary install folder. Package managers should handle this otherwise.
125 -
126 -This eliminates a lot of warnings during the packaging portion of
127 -the deb build.
128 ----
129 - install-scripts/meson.build | 16 ++++++++++++++++
130 - install-scripts/meson_compile_python.py | 10 ++++++++++
131 - meson.build | 1 +
132 - src/meson.build | 2 --
133 - 4 files changed, 27 insertions(+), 2 deletions(-)
134 - create mode 100644 install-scripts/meson.build
135 - create mode 100644 install-scripts/meson_compile_python.py
136 -
137 -diff --git a/install-scripts/meson.build b/install-scripts/meson.build
138 -new file mode 100644
139 -index 0000000..667d669
140 ---- /dev/null
141 -+++ b/install-scripts/meson.build
142 -@@ -0,0 +1,16 @@
143 -+# These scripts run as post-installation scripts.
144 -+
145 -+# They're designed to do nothing if DESTDIR is set, which happens
146 -+# during debian builds for instance - there's a fake install target
147 -+# so running these would be pointless.
148 -+
149 -+# When using deb packaging, these aren't needed, as these operations
150 -+# are run automatically by the package manager.
151 -+
152 -+# They're really only necessary in straight builds where 'ninja install'
153 -+# will be run directly, to install the program onto the system.
154 -+
155 -+
156 -+# Generate python bytecode
157 -+meson.add_install_script('meson_compile_python.py')
158 -+
159 -diff --git a/install-scripts/meson_compile_python.py b/install-scripts/meson_compile_python.py
160 -new file mode 100644
161 -index 0000000..9ec0f4d
162 ---- /dev/null
163 -+++ b/install-scripts/meson_compile_python.py
164 -@@ -0,0 +1,10 @@
165 -+#!/usr/bin/python3
166 -+
167 -+import os
168 -+import subprocess
169 -+
170 -+pythondir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'cinnamon-screensaver')
171 -+
172 -+if not os.environ.get('DESTDIR'):
173 -+ print('Generating python bytecode...')
174 -+ subprocess.call(['sh', '-c', 'python3 -m compileall "%s"' % pythondir])
175 -diff --git a/meson.build b/meson.build
176 -index c508770..d7dcd31 100644
177 ---- a/meson.build
178 -+++ b/meson.build
179 -@@ -123,6 +123,7 @@ conf_h = configure_file(
180 -
181 - inc = include_directories('.')
182 -
183 -+subdir('install-scripts')
184 - subdir('libcscreensaver')
185 - subdir('data')
186 - subdir('src')
187 -diff --git a/src/meson.build b/src/meson.build
188 -index 7e0978e..f04fda0 100644
189 ---- a/src/meson.build
190 -+++ b/src/meson.build
191 -@@ -64,5 +64,3 @@ foreach script : app_scripts
192 - meson.add_install_script('sh', '-c',
193 - 'ln -sf "@0@" "$DESTDIR/@1@"'.format(join_paths(pkgdatadir, script[0]), join_paths(bindir, script[1])))
194 - endforeach
195 --
196 --meson.add_install_script('sh', '-c', 'python3 -m compileall "$DESTDIR/@0@"'.format(pkgdatadir) )
197
198 diff --git a/gnome-extra/cinnamon-screensaver/files/cinnamon-screensaver-4.6.0-xinerama.patch b/gnome-extra/cinnamon-screensaver/files/cinnamon-screensaver-4.6.0-xinerama.patch
199 deleted file mode 100644
200 index e3240a01001..00000000000
201 --- a/gnome-extra/cinnamon-screensaver/files/cinnamon-screensaver-4.6.0-xinerama.patch
202 +++ /dev/null
203 @@ -1,49 +0,0 @@
204 -From 13575ae3f332e33a1952a803f2392d6d70df2028 Mon Sep 17 00:00:00 2001
205 -From: Sparky Bluefang <sparky@××××××××××××××.com>
206 -Date: Wed, 2 Sep 2020 17:59:45 -0400
207 -Subject: [PATCH] Fix meson syntax error when xinerama support is disabled.
208 -
209 -Fixes #346
210 ----
211 - libcscreensaver/meson.build | 7 ++++++-
212 - meson.build | 3 ++-
213 - 2 files changed, 8 insertions(+), 2 deletions(-)
214 -
215 -diff --git a/libcscreensaver/meson.build b/libcscreensaver/meson.build
216 -index 1800c46..c2c3757 100644
217 ---- a/libcscreensaver/meson.build
218 -+++ b/libcscreensaver/meson.build
219 -@@ -145,13 +145,18 @@ gir_sources = [
220 - dbus_built
221 - ]
222 -
223 -+libcscreensaver_deps = [gobject, gtk, gdk, x11, xrandr, xext, glib, gio, gthread, pam, m]
224 -+if use_xinerama
225 -+ libcscreensaver_deps += xinerama
226 -+endif
227 -+
228 - libcscreensaver = library(
229 - 'cscreensaver',
230 - cscreensaver_sources + gir_sources,
231 - version: '0.0.0',
232 - include_directories: inc,
233 - cpp_args: '-DG_LOG_DOMAIN="CScreensaver"',
234 -- dependencies: [gobject, gtk, gdk, x11, xinerama, xrandr, xext, glib, gio, gthread, pam, m],
235 -+ dependencies: libcscreensaver_deps,
236 - install: true
237 - )
238 -
239 -diff --git a/meson.build b/meson.build
240 -index b15c3fb..2f9a9a5 100644
241 ---- a/meson.build
242 -+++ b/meson.build
243 -@@ -61,7 +61,8 @@ foreach sym : [
244 - endif
245 - endforeach
246 -
247 --if get_option('xinerama')
248 -+use_xinerama = get_option('xinerama')
249 -+if use_xinerama
250 - if host_machine.system() == 'solaris'
251 - xinerama = cc.find_library('Xext')
252 - xinerama_h = cc.has_header('X11/extensions/xinerama.h')