Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/upower/, sys-power/upower/files/
Date: Fri, 16 Jul 2021 11:27:19
Message-Id: 1626434621.17712222fa4fd3359ca5d542b42c3954ecb5409f.asturm@gentoo
1 commit: 17712222fa4fd3359ca5d542b42c3954ecb5409f
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 16 10:14:47 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 16 11:23:41 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17712222
7
8 sys-power/upower: Drop 0.99.9-r1
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 sys-power/upower/Manifest | 1 -
14 .../files/upower-0.99.9-pending-charge1.patch | 33 --------
15 .../files/upower-0.99.9-pending-charge2.patch | 48 -----------
16 sys-power/upower/upower-0.99.9-r1.ebuild | 98 ----------------------
17 4 files changed, 180 deletions(-)
18
19 diff --git a/sys-power/upower/Manifest b/sys-power/upower/Manifest
20 index 5c19d802df7..5153b69a5b8 100644
21 --- a/sys-power/upower/Manifest
22 +++ b/sys-power/upower/Manifest
23 @@ -1,3 +1,2 @@
24 DIST upower-0.99.11.tar.xz 430128 BLAKE2B 77604d02a69de98e4c7b268d11d189aa42ace2d62b982fda9bc41131ce383ede32953ada31eae0bbfd1121600af5863924d48c636e60a28f505a6998dcac227c SHA512 67219a0beb98c97ac4512e4fe8ba83fc80a1035d1edb5367dda6911da50c672b047051f2f528e8703be29ab47547d92b6c71a7ef695226a1bdb5bc33e6d18803
25 DIST upower-0.99.12.tar.xz 423640 BLAKE2B 4c5c6357f0a2f8d721ebae9736912b1871a898c7ce65708626f9a9465cde87036ba6ab8050d97f5b9074d92e2700d8ed1e71b67f43cd6305eb4e89336f1b628f SHA512 9858a0e5f65271522cc5f36b0cd8722a5fb3effba37dbc5b22f08606701d4242ee54329d07460768004a24dc42705a84140ac6d9691afb7f09584b2e61fe3413
26 -DIST upower-0.99.9.tar.xz 448408 BLAKE2B 5fa2436f33c94cffb736d8e3fad433acf58954cf06ccd403a0361214be5afc45d79ea279f3c5c48dcd58b92ccaf995777c95987d1749fd8c8c8958317e439570 SHA512 45eb587b0e5ffcce88bad8c56bc5efa30559748913016a55d58313280f5159378e5fbb4a9842c3a6409257bb97822d235f96b03704268b8471455c93eb05fe2f
27
28 diff --git a/sys-power/upower/files/upower-0.99.9-pending-charge1.patch b/sys-power/upower/files/upower-0.99.9-pending-charge1.patch
29 deleted file mode 100644
30 index 9ce91c10a66..00000000000
31 --- a/sys-power/upower/files/upower-0.99.9-pending-charge1.patch
32 +++ /dev/null
33 @@ -1,33 +0,0 @@
34 -From a074a5462ab9749ad4aaca52e0202602897660aa Mon Sep 17 00:00:00 2001
35 -From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?= <jprvita@××××××××.com>
36 -Date: Thu, 1 Nov 2018 14:45:28 -0700
37 -Subject: [PATCH] daemon: Make comment more succinct
38 -
39 -This will help make it more clear when adding an extra state on the
40 -following commit. It also makes the language consistent between the
41 -different lines. There are no changes on the meaning of these lines nor
42 -any functional changes on this commit.
43 ----
44 - src/up-daemon.c | 6 +++---
45 - 1 file changed, 3 insertions(+), 3 deletions(-)
46 -
47 -diff --git a/src/up-daemon.c b/src/up-daemon.c
48 -index 1a5dddc..95fff6b 100644
49 ---- a/src/up-daemon.c
50 -+++ b/src/up-daemon.c
51 -@@ -209,9 +209,9 @@ up_daemon_update_display_battery (UpDaemon *daemon)
52 - power_supply == FALSE)
53 - continue;
54 -
55 -- /* If one battery is charging, then the composite is charging
56 -- * If all batteries are discharging, then the composite is discharging
57 -- * If all batteries are fully charged, then they're all fully charged
58 -+ /* If one battery is charging, the composite is charging
59 -+ * If all batteries are discharging, the composite is discharging
60 -+ * If all batteries are fully charged, the composite is fully charged
61 - * Everything else is unknown */
62 - if (state == UP_DEVICE_STATE_CHARGING)
63 - state_total = UP_DEVICE_STATE_CHARGING;
64 ---
65 -2.18.1
66 -
67
68 diff --git a/sys-power/upower/files/upower-0.99.9-pending-charge2.patch b/sys-power/upower/files/upower-0.99.9-pending-charge2.patch
69 deleted file mode 100644
70 index a79ebac7ed1..00000000000
71 --- a/sys-power/upower/files/upower-0.99.9-pending-charge2.patch
72 +++ /dev/null
73 @@ -1,48 +0,0 @@
74 -From a074631c0b1748c8a791c4f0dad99da75805a328 Mon Sep 17 00:00:00 2001
75 -From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?= <jprvita@××××××××.com>
76 -Date: Mon, 15 Oct 2018 17:05:27 -0700
77 -Subject: [PATCH] daemon: Consider pending-charge when calculating the display
78 - state
79 -
80 -Without this change if all batteries in the system are in the
81 -pending-charge state, the display device state is set to unknown, and
82 -its icon to battery-missing-symbolic.
83 -
84 -This change makes the pending-charge state be considered when
85 -calculating the DisplayDevice state, setting it to pending-charge if at
86 -least one battery in the system is pending-charge and no other is
87 -charging or discharging.
88 -
89 -Closes: #81
90 -Closes: #19
91 ----
92 - src/up-daemon.c | 6 +++++-
93 - 1 file changed, 5 insertions(+), 1 deletion(-)
94 -
95 -diff --git a/src/up-daemon.c b/src/up-daemon.c
96 -index 95fff6b..690f379 100644
97 ---- a/src/up-daemon.c
98 -+++ b/src/up-daemon.c
99 -@@ -210,14 +210,18 @@ up_daemon_update_display_battery (UpDaemon *daemon)
100 - continue;
101 -
102 - /* If one battery is charging, the composite is charging
103 -- * If all batteries are discharging, the composite is discharging
104 -+ * If all batteries are discharging or pending-charge, the composite is discharging
105 - * If all batteries are fully charged, the composite is fully charged
106 -+ * If one battery is pending-charge and no other is charging or discharging, then the composite is pending-charge
107 - * Everything else is unknown */
108 - if (state == UP_DEVICE_STATE_CHARGING)
109 - state_total = UP_DEVICE_STATE_CHARGING;
110 - else if (state == UP_DEVICE_STATE_DISCHARGING &&
111 - state_total != UP_DEVICE_STATE_CHARGING)
112 - state_total = UP_DEVICE_STATE_DISCHARGING;
113 -+ else if (state == UP_DEVICE_STATE_PENDING_CHARGE &&
114 -+ (state_total == UP_DEVICE_STATE_UNKNOWN || state_total == UP_DEVICE_STATE_PENDING_CHARGE))
115 -+ state_total = UP_DEVICE_STATE_PENDING_CHARGE;
116 - else if (state == UP_DEVICE_STATE_FULLY_CHARGED &&
117 - state_total == UP_DEVICE_STATE_UNKNOWN)
118 - state_total = UP_DEVICE_STATE_FULLY_CHARGED;
119 ---
120 -2.18.1
121 -
122
123 diff --git a/sys-power/upower/upower-0.99.9-r1.ebuild b/sys-power/upower/upower-0.99.9-r1.ebuild
124 deleted file mode 100644
125 index a67c244bb30..00000000000
126 --- a/sys-power/upower/upower-0.99.9-r1.ebuild
127 +++ /dev/null
128 @@ -1,98 +0,0 @@
129 -# Copyright 1999-2020 Gentoo Authors
130 -# Distributed under the terms of the GNU General Public License v2
131 -
132 -EAPI=7
133 -inherit systemd xdg-utils
134 -
135 -DESCRIPTION="D-Bus abstraction for enumerating power devices, querying history and statistics"
136 -HOMEPAGE="https://upower.freedesktop.org/"
137 -
138 -# No tarball released, use the same commit as Fedora
139 -#SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz"
140 -COMMIT="2282c7c0e53fb31816b824c9d1f547e8"
141 -SRC_URI="https://gitlab.freedesktop.org/upower/upower/uploads/${COMMIT}/${P}.tar.xz"
142 -
143 -LICENSE="GPL-2"
144 -SLOT="0/3" # based on SONAME of libupower-glib.so
145 -KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~mips ppc ppc64 sparc x86"
146 -
147 -# gtk-doc files are not available as prebuilt in the tarball
148 -IUSE="doc +introspection ios kernel_FreeBSD kernel_linux selinux"
149 -
150 -COMMON_DEPS="
151 - >=dev-libs/dbus-glib-0.100
152 - >=dev-libs/glib-2.34:2
153 - sys-apps/dbus:=
154 - introspection? ( dev-libs/gobject-introspection:= )
155 - kernel_linux? (
156 - dev-libs/libgudev:=
157 - virtual/libusb:1
158 - virtual/udev
159 - ios? (
160 - >=app-pda/libimobiledevice-1:=
161 - >=app-pda/libplist-1:=
162 - )
163 - )
164 -"
165 -RDEPEND="
166 - ${COMMON_DEPS}
167 - selinux? ( sec-policy/selinux-devicekit )
168 -"
169 -DEPEND="${COMMON_DEPS}
170 - doc? ( dev-util/gtk-doc )
171 - dev-libs/libxslt
172 - app-text/docbook-xsl-stylesheets
173 - dev-util/intltool
174 - >=sys-devel/gettext-0.17
175 - virtual/pkgconfig
176 -"
177 -
178 -QA_MULTILIB_PATHS="usr/lib/${PN}/.*"
179 -
180 -DOCS=( AUTHORS HACKING NEWS README )
181 -
182 -PATCHES=(
183 - # daemon: Consider pending-charge when calculating the display state
184 - # (from 'master')
185 - "${FILESDIR}/${P}-pending-charge1.patch"
186 - "${FILESDIR}/${P}-pending-charge2.patch"
187 -)
188 -
189 -src_prepare() {
190 - default
191 - xdg_environment_reset
192 - sed -i -e '/DISABLE_DEPRECATED/d' configure || die
193 -}
194 -
195 -src_configure() {
196 - local backend
197 -
198 - if use kernel_linux ; then
199 - backend=linux
200 - elif use kernel_FreeBSD ; then
201 - backend=freebsd
202 - else
203 - backend=dummy
204 - fi
205 -
206 - local myeconfargs=(
207 - --disable-static
208 - --disable-tests
209 - --enable-man-pages
210 - --libexecdir="${EPREFIX}"/usr/lib/${PN}
211 - --localstatedir="${EPREFIX}"/var
212 - --with-backend=${backend}
213 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
214 - --with-systemdutildir="$(systemd_get_utildir)"
215 - $(use_enable doc gtk-doc)
216 - $(use_enable introspection)
217 - $(use_with ios idevice)
218 - )
219 - econf "${myeconfargs[@]}"
220 -}
221 -
222 -src_install() {
223 - default
224 - find "${ED}" -name '*.la' -delete || die
225 - keepdir /var/lib/upower #383091
226 -}