1 |
commit: 56b055845d1c14d8e8171cefe8453fc521dc534a |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 1 01:24:15 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 1 01:28:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56b05584 |
7 |
|
8 |
sys-power/upower: Drop old versions |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
sys-power/upower/Manifest | 4 - |
13 |
...18-meson-Allow-unittest-inspector-to-fail.patch | 31 ------ |
14 |
....99.12-fix-power_now-energy_rate-readings.patch | 43 -------- |
15 |
...eson-Don-t-search-for-gtk-doc-if-disabled.patch | 60 ----------- |
16 |
sys-power/upower/upower-0.99.12-r1.ebuild | 100 ------------------ |
17 |
sys-power/upower/upower-0.99.17.ebuild | 117 --------------------- |
18 |
sys-power/upower/upower-0.99.18.ebuild | 117 --------------------- |
19 |
sys-power/upower/upower-0.99.19.ebuild | 117 --------------------- |
20 |
8 files changed, 589 deletions(-) |
21 |
|
22 |
diff --git a/sys-power/upower/Manifest b/sys-power/upower/Manifest |
23 |
index 1d7d74184043..1f9e6dd964b8 100644 |
24 |
--- a/sys-power/upower/Manifest |
25 |
+++ b/sys-power/upower/Manifest |
26 |
@@ -1,5 +1 @@ |
27 |
-DIST upower-0.99.12.tar.xz 423640 BLAKE2B 4c5c6357f0a2f8d721ebae9736912b1871a898c7ce65708626f9a9465cde87036ba6ab8050d97f5b9074d92e2700d8ed1e71b67f43cd6305eb4e89336f1b628f SHA512 9858a0e5f65271522cc5f36b0cd8722a5fb3effba37dbc5b22f08606701d4242ee54329d07460768004a24dc42705a84140ac6d9691afb7f09584b2e61fe3413 |
28 |
-DIST upower-v0.99.17.tar.bz2 139108 BLAKE2B de48a8058752f3e2bcefe83fe049ae9181517276f6d2930c402089291d935ecbdc6f7759d811467c537801c422f5d32a02366f3e3d57bea9e73e311b13df046a SHA512 fcb2f344e82f04af85eee3a4ef42a4d119f7b55fd4e1c6bc2633845135bf524957b54c849bf6501d89cfbd285a7e1fbeecb8e846aa108e2b36d1550347150c04 |
29 |
-DIST upower-v0.99.18.tar.bz2 141140 BLAKE2B 2e6acfaf58f6e0031326c269ad58bfcdac84a25f952ef3169e6ee85889696c5c83d10aaf67b8244a2378150fd591ddbd3101d21d1e7534e5d7f2f69ee070a174 SHA512 f33a2ca35209d69fa7ddf614c6a390973c998c6473448acb00ca86114f7bfc05beb8f904010ed7b5a440209fe503e759682459893fdc9690c4b79d516e7f9de1 |
30 |
-DIST upower-v0.99.19.tar.bz2 141661 BLAKE2B 4c117927d17f118cd06165160b407190ab86fff6bc194204038fd334dc879726c1f83fa23c89c2574cf8de6211ce6a884cc103f8292618818b1bc60e5ba8f1e8 SHA512 1462a64bc642bd6c5c235742f5a8fa9e3440846d90061889b568fc0a91f7b24d56d1f5a3d33bff8d6d35f78aa8bc8c15f9c4a51a2cb40f1ee3b2a822ad60ca33 |
31 |
DIST upower-v0.99.20.tar.bz2 126098 BLAKE2B 670a2ad746c5cf8b2aca332f1f8c36fc96cd82b3ad8a7a5337dd3edce60cd73b1a83e807ec3f257d5216b3b4873f1bcf6cc9c434c195f75680e891c653f44fe1 SHA512 50e5b03f1319da3869b0caba4fbe78c8eabf1df6f783f1463b06394bee58bae42ad411780faa503965c5fdb983d723c0b5ae0731fae4220997a17875f4850b1e |
32 |
|
33 |
diff --git a/sys-power/upower/files/0.99.18-meson-Allow-unittest-inspector-to-fail.patch b/sys-power/upower/files/0.99.18-meson-Allow-unittest-inspector-to-fail.patch |
34 |
deleted file mode 100644 |
35 |
index feafa87e9705..000000000000 |
36 |
--- a/sys-power/upower/files/0.99.18-meson-Allow-unittest-inspector-to-fail.patch |
37 |
+++ /dev/null |
38 |
@@ -1,31 +0,0 @@ |
39 |
-Bug: https://bugs.gentoo.org/848525 |
40 |
- |
41 |
-From aa646fa0ca3e164b09949c546796ec50433b748d Mon Sep 17 00:00:00 2001 |
42 |
-From: Benjamin Berg <bberg@××××××.com> |
43 |
-Date: Tue, 17 May 2022 16:02:49 +0200 |
44 |
-Subject: [PATCH] meson: Allow unittest inspector to fail |
45 |
- |
46 |
-It is only used to make the test output nicer, and it is completely fine |
47 |
-to fail. |
48 |
- |
49 |
-Closes: #187 |
50 |
---- |
51 |
- src/meson.build | 2 +- |
52 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
53 |
- |
54 |
-diff --git a/src/meson.build b/src/meson.build |
55 |
-index b49d5f0..2e1edd1 100644 |
56 |
---- a/src/meson.build |
57 |
-+++ b/src/meson.build |
58 |
-@@ -124,7 +124,7 @@ if os_backend == 'linux' and gobject_introspection.found() |
59 |
- |
60 |
- python3 = find_program('python3') |
61 |
- unittest_inspector = find_program('linux/unittest_inspector.py') |
62 |
-- r = run_command(unittest_inspector, files('linux/integration-test.py'), check: true) |
63 |
-+ r = run_command(unittest_inspector, files('linux/integration-test.py'), check: false) |
64 |
- unit_tests = r.stdout().strip().split('\n') |
65 |
- |
66 |
- foreach ut: unit_tests |
67 |
--- |
68 |
-2.35.1 |
69 |
- |
70 |
|
71 |
diff --git a/sys-power/upower/files/upower-0.99.12-fix-power_now-energy_rate-readings.patch b/sys-power/upower/files/upower-0.99.12-fix-power_now-energy_rate-readings.patch |
72 |
deleted file mode 100644 |
73 |
index c3dd864a6b1d..000000000000 |
74 |
--- a/sys-power/upower/files/upower-0.99.12-fix-power_now-energy_rate-readings.patch |
75 |
+++ /dev/null |
76 |
@@ -1,43 +0,0 @@ |
77 |
-From 2949136b152e94aa3b57da5130bcb9022724debe Mon Sep 17 00:00:00 2001 |
78 |
-From: Philipp Zabel <p.zabel@×××××××××××.de> |
79 |
-Date: Thu, 17 Jun 2021 18:14:53 +0200 |
80 |
-Subject: [PATCH] linux: Fix < 0.01 W energy-rate readings from power_now sysfs |
81 |
- property |
82 |
- |
83 |
-Currently, if a power supplies' power_now sysfs file reports discharge |
84 |
-rates < 0.01 W, the code will try to calculate the discharge rate from |
85 |
-the legacy sysfs files. On new kernels where those don't exist, this |
86 |
-produces wrong results. |
87 |
- |
88 |
-For example, on a dual-battery Thinkpad T450s, while the external |
89 |
-battery is discharging, the internal battery reports power_now = 0, |
90 |
-but the corresponding upower energy-rate field incorrectly reads |
91 |
-about 2.3 W. |
92 |
- |
93 |
-This patch fixes the issue by falling back to the legacy code only if |
94 |
-the legacy current_now sysfs file exists. |
95 |
- |
96 |
-Closes: #7, #44 |
97 |
---- |
98 |
- src/linux/up-device-supply.c | 5 +++-- |
99 |
- 1 file changed, 3 insertions(+), 2 deletions(-) |
100 |
- |
101 |
-diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c |
102 |
-index 3ebbd88..4236ce4 100644 |
103 |
---- a/src/linux/up-device-supply.c |
104 |
-+++ b/src/linux/up-device-supply.c |
105 |
-@@ -682,8 +682,9 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply, |
106 |
- state = up_device_supply_get_state (native); |
107 |
- |
108 |
- /* this is the new value in uW */ |
109 |
-- energy_rate = fabs (g_udev_device_get_sysfs_attr_as_double_uncached (native, "power_now") / 1000000.0); |
110 |
-- if (energy_rate < 0.01) { |
111 |
-+ if (g_udev_device_has_sysfs_attr (native, "power_now")) { |
112 |
-+ energy_rate = fabs (g_udev_device_get_sysfs_attr_as_double_uncached (native, "power_now") / 1000000.0); |
113 |
-+ } else { |
114 |
- gdouble charge_full; |
115 |
- |
116 |
- /* convert charge to energy */ |
117 |
--- |
118 |
-GitLab |
119 |
- |
120 |
|
121 |
diff --git a/sys-power/upower/files/upower-0.99.17-meson-Don-t-search-for-gtk-doc-if-disabled.patch b/sys-power/upower/files/upower-0.99.17-meson-Don-t-search-for-gtk-doc-if-disabled.patch |
122 |
deleted file mode 100644 |
123 |
index ead41d2e64c8..000000000000 |
124 |
--- a/sys-power/upower/files/upower-0.99.17-meson-Don-t-search-for-gtk-doc-if-disabled.patch |
125 |
+++ /dev/null |
126 |
@@ -1,60 +0,0 @@ |
127 |
-https://gitlab.freedesktop.org/upower/upower/-/merge_requests/123 |
128 |
- |
129 |
-From 1003d5c2a69e6c28dcf68adf10181b5180b5defa Mon Sep 17 00:00:00 2001 |
130 |
-From: Matt Turner <mattst88@×××××.com> |
131 |
-Date: Sun, 20 Mar 2022 15:32:55 -0700 |
132 |
-Subject: [PATCH] meson: Don't search for gtk-doc if disabled |
133 |
- |
134 |
---- |
135 |
- doc/meson.build | 38 ++++++++++++++++++++------------------ |
136 |
- 1 file changed, 20 insertions(+), 18 deletions(-) |
137 |
- |
138 |
-diff --git a/doc/meson.build b/doc/meson.build |
139 |
-index dc93a16..5fc253c 100644 |
140 |
---- a/doc/meson.build |
141 |
-+++ b/doc/meson.build |
142 |
-@@ -27,21 +27,23 @@ version_xml = configure_file( |
143 |
- input: 'version.xml.in', |
144 |
- configuration: cdata) |
145 |
- |
146 |
--gnome.gtkdoc('UPower', |
147 |
-- main_xml: 'upower-docs.xml', |
148 |
-- src_dir: meson.source_root() / 'libupower-glib', |
149 |
-- dependencies: [ libupower_glib_dep ], |
150 |
-- scan_args: ['--rebuild-types', '--rebuild-sections'], |
151 |
-- content_files: [ |
152 |
-- version_xml, |
153 |
-- ifaces_refs, |
154 |
-- 'man/UPower.xml', |
155 |
-- 'man/upowerd.xml', |
156 |
-- 'man/upower.xml', |
157 |
-- '../COPYING', |
158 |
-- ], |
159 |
-- ignore_headers: [ |
160 |
-- 'config.h', |
161 |
-- ], |
162 |
-- install: get_option('gtk-doc') |
163 |
--) |
164 |
-+if get_option('gtk-doc') |
165 |
-+ gnome.gtkdoc('UPower', |
166 |
-+ main_xml: 'upower-docs.xml', |
167 |
-+ src_dir: meson.source_root() / 'libupower-glib', |
168 |
-+ dependencies: [ libupower_glib_dep ], |
169 |
-+ scan_args: ['--rebuild-types', '--rebuild-sections'], |
170 |
-+ content_files: [ |
171 |
-+ version_xml, |
172 |
-+ ifaces_refs, |
173 |
-+ 'man/UPower.xml', |
174 |
-+ 'man/upowerd.xml', |
175 |
-+ 'man/upower.xml', |
176 |
-+ '../COPYING', |
177 |
-+ ], |
178 |
-+ ignore_headers: [ |
179 |
-+ 'config.h', |
180 |
-+ ], |
181 |
-+ install: true |
182 |
-+ ) |
183 |
-+endif |
184 |
--- |
185 |
-2.34.1 |
186 |
- |
187 |
|
188 |
diff --git a/sys-power/upower/upower-0.99.12-r1.ebuild b/sys-power/upower/upower-0.99.12-r1.ebuild |
189 |
deleted file mode 100644 |
190 |
index d894dcb5bdf8..000000000000 |
191 |
--- a/sys-power/upower/upower-0.99.12-r1.ebuild |
192 |
+++ /dev/null |
193 |
@@ -1,100 +0,0 @@ |
194 |
-# Copyright 1999-2022 Gentoo Authors |
195 |
-# Distributed under the terms of the GNU General Public License v2 |
196 |
- |
197 |
-EAPI=8 |
198 |
- |
199 |
-inherit systemd xdg-utils |
200 |
- |
201 |
-DESCRIPTION="D-Bus abstraction for enumerating power devices, querying history and statistics" |
202 |
-HOMEPAGE="https://upower.freedesktop.org/" |
203 |
-COMMIT="244f5966c58773bbd3b4c507c549560f" |
204 |
-SRC_URI="https://gitlab.freedesktop.org/upower/upower/uploads/${COMMIT}/${P}.tar.xz" |
205 |
-# No tarball released at the usual location |
206 |
-#SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz" |
207 |
- |
208 |
-LICENSE="GPL-2" |
209 |
-SLOT="0/3" # based on SONAME of libupower-glib.so |
210 |
-KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~mips ppc ppc64 ~riscv sparc x86" |
211 |
- |
212 |
-# gtk-doc files are not available as prebuilt in the tarball |
213 |
-IUSE="doc +introspection ios selinux" |
214 |
- |
215 |
-DEPEND=" |
216 |
- >=dev-libs/glib-2.38:2 |
217 |
- sys-apps/dbus:= |
218 |
- introspection? ( dev-libs/gobject-introspection:= ) |
219 |
- kernel_linux? ( |
220 |
- >=dev-libs/libgudev-236:= |
221 |
- virtual/udev |
222 |
- ios? ( |
223 |
- >=app-pda/libimobiledevice-1:= |
224 |
- >=app-pda/libplist-2:= |
225 |
- ) |
226 |
- ) |
227 |
-" |
228 |
-RDEPEND="${DEPEND} |
229 |
- selinux? ( sec-policy/selinux-devicekit ) |
230 |
-" |
231 |
-BDEPEND=" |
232 |
- app-text/docbook-xsl-stylesheets |
233 |
- dev-libs/libxslt |
234 |
- >=sys-devel/gettext-0.19.8 |
235 |
- virtual/pkgconfig |
236 |
- doc? ( dev-util/gtk-doc ) |
237 |
-" |
238 |
- |
239 |
-QA_MULTILIB_PATHS="usr/lib/${PN}/.*" |
240 |
- |
241 |
-DOCS=( AUTHORS HACKING NEWS README ) |
242 |
- |
243 |
-PATCHES=( "${FILESDIR}/${P}-fix-power_now-energy_rate-readings.patch" ) # bug 796896 |
244 |
- |
245 |
-src_prepare() { |
246 |
- default |
247 |
- xdg_environment_reset |
248 |
- sed -i -e '/DISABLE_DEPRECATED/d' configure || die |
249 |
-} |
250 |
- |
251 |
-src_configure() { |
252 |
- local backend |
253 |
- |
254 |
- if use kernel_linux ; then |
255 |
- backend=linux |
256 |
- else |
257 |
- backend=dummy |
258 |
- fi |
259 |
- |
260 |
- local myeconfargs=( |
261 |
- --disable-tests |
262 |
- --enable-man-pages |
263 |
- --libexecdir="${EPREFIX}"/usr/lib/${PN} |
264 |
- --localstatedir="${EPREFIX}"/var |
265 |
- --with-backend=${backend} |
266 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
267 |
- --with-systemdutildir="$(systemd_get_utildir)" |
268 |
- $(use_enable doc gtk-doc) |
269 |
- $(use_enable introspection) |
270 |
- $(use_with ios idevice) |
271 |
- ) |
272 |
- econf "${myeconfargs[@]}" |
273 |
-} |
274 |
- |
275 |
-src_install() { |
276 |
- default |
277 |
- find "${ED}" -type f -name '*.la' -delete || die |
278 |
- keepdir /var/lib/upower #383091 |
279 |
-} |
280 |
- |
281 |
-pkg_postinst() { |
282 |
- if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 0.99.12; then |
283 |
- elog "Support for Logitech Unifying Receiver battery state readout was" |
284 |
- elog "removed in version 0.99.12, these devices have been directly" |
285 |
- elog "supported by the Linux kernel since version >=3.2." |
286 |
- elog |
287 |
- elog "Support for CSR devices battery state was removed from udev rules" |
288 |
- elog "in version 0.99.12. This concerns the following Logitech products" |
289 |
- elog "from the mid 2000s:" |
290 |
- elog "Mouse/Dual/Keyboard+Mouse Receiver, Freedom Optical, Elite Duo," |
291 |
- elog "MX700/MX1000, Optical TrackMan, Click! Mouse, Presenter." |
292 |
- fi |
293 |
-} |
294 |
|
295 |
diff --git a/sys-power/upower/upower-0.99.17.ebuild b/sys-power/upower/upower-0.99.17.ebuild |
296 |
deleted file mode 100644 |
297 |
index eaa60751fe3f..000000000000 |
298 |
--- a/sys-power/upower/upower-0.99.17.ebuild |
299 |
+++ /dev/null |
300 |
@@ -1,117 +0,0 @@ |
301 |
-# Copyright 1999-2022 Gentoo Authors |
302 |
-# Distributed under the terms of the GNU General Public License v2 |
303 |
- |
304 |
-EAPI=8 |
305 |
- |
306 |
-PYTHON_COMPAT=( python3_{8..10} ) |
307 |
-inherit meson python-any-r1 systemd udev xdg-utils |
308 |
- |
309 |
-DESCRIPTION="D-Bus abstraction for enumerating power devices, querying history and statistics" |
310 |
-HOMEPAGE="https://upower.freedesktop.org/" |
311 |
-SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2" |
312 |
- |
313 |
-LICENSE="GPL-2" |
314 |
-SLOT="0/3" # based on SONAME of libupower-glib.so |
315 |
-KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~mips ppc ppc64 ~riscv sparc x86" |
316 |
- |
317 |
-# gtk-doc files are not available as prebuilt in the tarball |
318 |
-IUSE="doc +introspection ios selinux test" |
319 |
-RESTRICT="!test? ( test )" |
320 |
- |
321 |
-DEPEND=" |
322 |
- >=dev-libs/glib-2.56:2 |
323 |
- sys-apps/dbus:= |
324 |
- introspection? ( dev-libs/gobject-introspection:= ) |
325 |
- kernel_linux? ( |
326 |
- >=dev-libs/libgudev-236:= |
327 |
- virtual/udev |
328 |
- ios? ( |
329 |
- >=app-pda/libimobiledevice-1:= |
330 |
- >=app-pda/libplist-2:= |
331 |
- ) |
332 |
- ) |
333 |
-" |
334 |
-RDEPEND="${DEPEND} |
335 |
- selinux? ( sec-policy/selinux-devicekit ) |
336 |
-" |
337 |
-BDEPEND=" |
338 |
- app-text/docbook-xsl-stylesheets |
339 |
- dev-libs/libxslt |
340 |
- dev-util/gdbus-codegen |
341 |
- >=sys-devel/gettext-0.19.8 |
342 |
- virtual/pkgconfig |
343 |
- doc? ( dev-util/gtk-doc ) |
344 |
- test? ( |
345 |
- $(python_gen_any_dep ' |
346 |
- dev-python/dbus-python[${PYTHON_USEDEP}] |
347 |
- dev-python/python-dbusmock[${PYTHON_USEDEP}] |
348 |
- ') |
349 |
- dev-util/umockdev |
350 |
- ) |
351 |
-" |
352 |
- |
353 |
-S="${WORKDIR}/${PN}-v${PV}" |
354 |
- |
355 |
-QA_MULTILIB_PATHS="usr/lib/${PN}/.*" |
356 |
- |
357 |
-PATCHES=( |
358 |
- "${FILESDIR}"/${P}-meson-Don-t-search-for-gtk-doc-if-disabled.patch |
359 |
-) |
360 |
- |
361 |
-python_check_deps() { |
362 |
- python_has_version -b "dev-python/dbus-python[${PYTHON_USEDEP}]" && |
363 |
- python_has_version -b "dev-python/python-dbusmock[${PYTHON_USEDEP}]" |
364 |
-} |
365 |
- |
366 |
-pkg_setup() { |
367 |
- use test && python-any-r1_pkg_setup |
368 |
-} |
369 |
- |
370 |
-src_prepare() { |
371 |
- default |
372 |
- xdg_environment_reset |
373 |
-} |
374 |
- |
375 |
-src_configure() { |
376 |
- local backend |
377 |
- |
378 |
- if use kernel_linux ; then |
379 |
- backend=linux |
380 |
- else |
381 |
- backend=dummy |
382 |
- fi |
383 |
- |
384 |
- local emesonargs=( |
385 |
- --localstatedir "${EPREFIX}"/var |
386 |
- |
387 |
- -Dman=true |
388 |
- $(meson_use doc gtk-doc) |
389 |
- $(meson_feature introspection) |
390 |
- -Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d" |
391 |
- -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)" |
392 |
- -Dos_backend="${backend}" |
393 |
- $(meson_feature ios idevice) |
394 |
- ) |
395 |
- meson_src_configure |
396 |
-} |
397 |
- |
398 |
-src_install() { |
399 |
- meson_src_install |
400 |
- keepdir /var/lib/upower #383091 |
401 |
-} |
402 |
- |
403 |
-pkg_postinst() { |
404 |
- udev_reload |
405 |
- |
406 |
- if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 0.99.12; then |
407 |
- elog "Support for Logitech Unifying Receiver battery state readout was" |
408 |
- elog "removed in version 0.99.12, these devices have been directly" |
409 |
- elog "supported by the Linux kernel since version >=3.2." |
410 |
- elog |
411 |
- elog "Support for CSR devices battery state was removed from udev rules" |
412 |
- elog "in version 0.99.12. This concerns the following Logitech products" |
413 |
- elog "from the mid 2000s:" |
414 |
- elog "Mouse/Dual/Keyboard+Mouse Receiver, Freedom Optical, Elite Duo," |
415 |
- elog "MX700/MX1000, Optical TrackMan, Click! Mouse, Presenter." |
416 |
- fi |
417 |
-} |
418 |
|
419 |
diff --git a/sys-power/upower/upower-0.99.18.ebuild b/sys-power/upower/upower-0.99.18.ebuild |
420 |
deleted file mode 100644 |
421 |
index 760dcd025ded..000000000000 |
422 |
--- a/sys-power/upower/upower-0.99.18.ebuild |
423 |
+++ /dev/null |
424 |
@@ -1,117 +0,0 @@ |
425 |
-# Copyright 1999-2022 Gentoo Authors |
426 |
-# Distributed under the terms of the GNU General Public License v2 |
427 |
- |
428 |
-EAPI=8 |
429 |
- |
430 |
-PYTHON_COMPAT=( python3_{8..11} ) |
431 |
-inherit meson python-any-r1 systemd udev xdg-utils |
432 |
- |
433 |
-DESCRIPTION="D-Bus abstraction for enumerating power devices, querying history and statistics" |
434 |
-HOMEPAGE="https://upower.freedesktop.org/" |
435 |
-SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2" |
436 |
- |
437 |
-LICENSE="GPL-2" |
438 |
-SLOT="0/3" # based on SONAME of libupower-glib.so |
439 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" |
440 |
- |
441 |
-# gtk-doc files are not available as prebuilt in the tarball |
442 |
-IUSE="doc +introspection ios selinux test" |
443 |
-RESTRICT="!test? ( test )" |
444 |
- |
445 |
-DEPEND=" |
446 |
- >=dev-libs/glib-2.58:2 |
447 |
- sys-apps/dbus:= |
448 |
- introspection? ( dev-libs/gobject-introspection:= ) |
449 |
- kernel_linux? ( |
450 |
- >=dev-libs/libgudev-236:= |
451 |
- virtual/udev |
452 |
- ios? ( |
453 |
- >=app-pda/libimobiledevice-1:= |
454 |
- >=app-pda/libplist-2:= |
455 |
- ) |
456 |
- ) |
457 |
-" |
458 |
-RDEPEND="${DEPEND} |
459 |
- selinux? ( sec-policy/selinux-devicekit ) |
460 |
-" |
461 |
-BDEPEND=" |
462 |
- app-text/docbook-xsl-stylesheets |
463 |
- dev-libs/libxslt |
464 |
- dev-util/gdbus-codegen |
465 |
- >=sys-devel/gettext-0.19.8 |
466 |
- virtual/pkgconfig |
467 |
- doc? ( dev-util/gtk-doc ) |
468 |
- test? ( |
469 |
- $(python_gen_any_dep ' |
470 |
- dev-python/dbus-python[${PYTHON_USEDEP}] |
471 |
- dev-python/python-dbusmock[${PYTHON_USEDEP}] |
472 |
- ') |
473 |
- dev-util/umockdev |
474 |
- ) |
475 |
-" |
476 |
- |
477 |
-S="${WORKDIR}/${PN}-v${PV}" |
478 |
- |
479 |
-QA_MULTILIB_PATHS="usr/lib/${PN}/.*" |
480 |
- |
481 |
-PATCHES=( |
482 |
- "${FILESDIR}"/${PV}-meson-Allow-unittest-inspector-to-fail.patch |
483 |
-) |
484 |
- |
485 |
-python_check_deps() { |
486 |
- python_has_version -b "dev-python/dbus-python[${PYTHON_USEDEP}]" && |
487 |
- python_has_version -b "dev-python/python-dbusmock[${PYTHON_USEDEP}]" |
488 |
-} |
489 |
- |
490 |
-pkg_setup() { |
491 |
- use test && python-any-r1_pkg_setup |
492 |
-} |
493 |
- |
494 |
-src_prepare() { |
495 |
- default |
496 |
- xdg_environment_reset |
497 |
-} |
498 |
- |
499 |
-src_configure() { |
500 |
- local backend |
501 |
- |
502 |
- if use kernel_linux ; then |
503 |
- backend=linux |
504 |
- else |
505 |
- backend=dummy |
506 |
- fi |
507 |
- |
508 |
- local emesonargs=( |
509 |
- --localstatedir "${EPREFIX}"/var |
510 |
- |
511 |
- -Dman=true |
512 |
- $(meson_use doc gtk-doc) |
513 |
- $(meson_feature introspection) |
514 |
- -Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d" |
515 |
- -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)" |
516 |
- -Dos_backend="${backend}" |
517 |
- $(meson_feature ios idevice) |
518 |
- ) |
519 |
- meson_src_configure |
520 |
-} |
521 |
- |
522 |
-src_install() { |
523 |
- meson_src_install |
524 |
- keepdir /var/lib/upower #383091 |
525 |
-} |
526 |
- |
527 |
-pkg_postinst() { |
528 |
- udev_reload |
529 |
- |
530 |
- if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 0.99.12; then |
531 |
- elog "Support for Logitech Unifying Receiver battery state readout was" |
532 |
- elog "removed in version 0.99.12, these devices have been directly" |
533 |
- elog "supported by the Linux kernel since version >=3.2." |
534 |
- elog |
535 |
- elog "Support for CSR devices battery state was removed from udev rules" |
536 |
- elog "in version 0.99.12. This concerns the following Logitech products" |
537 |
- elog "from the mid 2000s:" |
538 |
- elog "Mouse/Dual/Keyboard+Mouse Receiver, Freedom Optical, Elite Duo," |
539 |
- elog "MX700/MX1000, Optical TrackMan, Click! Mouse, Presenter." |
540 |
- fi |
541 |
-} |
542 |
|
543 |
diff --git a/sys-power/upower/upower-0.99.19.ebuild b/sys-power/upower/upower-0.99.19.ebuild |
544 |
deleted file mode 100644 |
545 |
index 5554b4d5e0a6..000000000000 |
546 |
--- a/sys-power/upower/upower-0.99.19.ebuild |
547 |
+++ /dev/null |
548 |
@@ -1,117 +0,0 @@ |
549 |
-# Copyright 1999-2022 Gentoo Authors |
550 |
-# Distributed under the terms of the GNU General Public License v2 |
551 |
- |
552 |
-EAPI=8 |
553 |
- |
554 |
-PYTHON_COMPAT=( python3_{8..11} ) |
555 |
-inherit meson python-any-r1 systemd udev xdg-utils |
556 |
- |
557 |
-DESCRIPTION="D-Bus abstraction for enumerating power devices, querying history and statistics" |
558 |
-HOMEPAGE="https://upower.freedesktop.org/" |
559 |
-SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2" |
560 |
- |
561 |
-LICENSE="GPL-2" |
562 |
-SLOT="0/3" # based on SONAME of libupower-glib.so |
563 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" |
564 |
- |
565 |
-# gtk-doc files are not available as prebuilt in the tarball |
566 |
-IUSE="doc +introspection ios selinux test" |
567 |
-RESTRICT="!test? ( test )" |
568 |
- |
569 |
-DEPEND=" |
570 |
- >=dev-libs/glib-2.58:2 |
571 |
- sys-apps/dbus:= |
572 |
- introspection? ( dev-libs/gobject-introspection:= ) |
573 |
- kernel_linux? ( |
574 |
- >=dev-libs/libgudev-236:= |
575 |
- virtual/udev |
576 |
- ios? ( |
577 |
- >=app-pda/libimobiledevice-1:= |
578 |
- >=app-pda/libplist-2:= |
579 |
- ) |
580 |
- ) |
581 |
-" |
582 |
-RDEPEND="${DEPEND} |
583 |
- selinux? ( sec-policy/selinux-devicekit ) |
584 |
-" |
585 |
-BDEPEND=" |
586 |
- app-text/docbook-xsl-stylesheets |
587 |
- dev-libs/libxslt |
588 |
- dev-util/gdbus-codegen |
589 |
- >=sys-devel/gettext-0.19.8 |
590 |
- virtual/pkgconfig |
591 |
- doc? ( dev-util/gtk-doc ) |
592 |
- test? ( |
593 |
- $(python_gen_any_dep ' |
594 |
- dev-python/dbus-python[${PYTHON_USEDEP}] |
595 |
- dev-python/python-dbusmock[${PYTHON_USEDEP}] |
596 |
- ') |
597 |
- dev-util/umockdev |
598 |
- ) |
599 |
-" |
600 |
- |
601 |
-S="${WORKDIR}/${PN}-v${PV}" |
602 |
- |
603 |
-QA_MULTILIB_PATHS="usr/lib/${PN}/.*" |
604 |
- |
605 |
-python_check_deps() { |
606 |
- python_has_version -b "dev-python/dbus-python[${PYTHON_USEDEP}]" && |
607 |
- python_has_version -b "dev-python/python-dbusmock[${PYTHON_USEDEP}]" |
608 |
-} |
609 |
- |
610 |
-pkg_setup() { |
611 |
- use test && python-any-r1_pkg_setup |
612 |
-} |
613 |
- |
614 |
-src_prepare() { |
615 |
- default |
616 |
- xdg_environment_reset |
617 |
-} |
618 |
- |
619 |
-src_configure() { |
620 |
- local backend |
621 |
- |
622 |
- if use kernel_linux ; then |
623 |
- backend=linux |
624 |
- else |
625 |
- backend=dummy |
626 |
- fi |
627 |
- |
628 |
- local emesonargs=( |
629 |
- --localstatedir "${EPREFIX}"/var |
630 |
- |
631 |
- -Dman=true |
632 |
- $(meson_use doc gtk-doc) |
633 |
- $(meson_feature introspection) |
634 |
- -Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d" |
635 |
- -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)" |
636 |
- -Dos_backend="${backend}" |
637 |
- $(meson_feature ios idevice) |
638 |
- ) |
639 |
- meson_src_configure |
640 |
-} |
641 |
- |
642 |
-src_install() { |
643 |
- meson_src_install |
644 |
- keepdir /var/lib/upower #383091 |
645 |
-} |
646 |
- |
647 |
-pkg_postinst() { |
648 |
- udev_reload |
649 |
- |
650 |
- if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 0.99.12; then |
651 |
- elog "Support for Logitech Unifying Receiver battery state readout was" |
652 |
- elog "removed in version 0.99.12, these devices have been directly" |
653 |
- elog "supported by the Linux kernel since version >=3.2." |
654 |
- elog |
655 |
- elog "Support for CSR devices battery state was removed from udev rules" |
656 |
- elog "in version 0.99.12. This concerns the following Logitech products" |
657 |
- elog "from the mid 2000s:" |
658 |
- elog "Mouse/Dual/Keyboard+Mouse Receiver, Freedom Optical, Elite Duo," |
659 |
- elog "MX700/MX1000, Optical TrackMan, Click! Mouse, Presenter." |
660 |
- fi |
661 |
-} |
662 |
- |
663 |
-pkg_postrm() { |
664 |
- udev_reload |
665 |
-} |