1 |
commit: 84cc5276796ac5ebe1074b6f2473869fe9fb7218 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 26 18:10:24 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 26 18:12:05 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84cc5276 |
7 |
|
8 |
sys-power/upower: Raise minimum dev-libs/libgudev version to 236 |
9 |
|
10 |
Thanks-to: Maxim Britov <maxbritov <AT> ya.ru> |
11 |
Closes: https://bugs.gentoo.org/802552 |
12 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
sys-power/upower/upower-0.99.12-r1.ebuild | 102 ++++++++++++++++++++++++++++++ |
16 |
1 file changed, 102 insertions(+) |
17 |
|
18 |
diff --git a/sys-power/upower/upower-0.99.12-r1.ebuild b/sys-power/upower/upower-0.99.12-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..d94d23a3e00 |
21 |
--- /dev/null |
22 |
+++ b/sys-power/upower/upower-0.99.12-r1.ebuild |
23 |
@@ -0,0 +1,102 @@ |
24 |
+# Copyright 1999-2021 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=8 |
28 |
+ |
29 |
+inherit systemd xdg-utils |
30 |
+ |
31 |
+DESCRIPTION="D-Bus abstraction for enumerating power devices, querying history and statistics" |
32 |
+HOMEPAGE="https://upower.freedesktop.org/" |
33 |
+COMMIT="244f5966c58773bbd3b4c507c549560f" |
34 |
+SRC_URI="https://gitlab.freedesktop.org/upower/upower/uploads/${COMMIT}/${P}.tar.xz" |
35 |
+# No tarball released at the usual location |
36 |
+#SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz" |
37 |
+ |
38 |
+LICENSE="GPL-2" |
39 |
+SLOT="0/3" # based on SONAME of libupower-glib.so |
40 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" |
41 |
+ |
42 |
+# gtk-doc files are not available as prebuilt in the tarball |
43 |
+IUSE="doc +introspection ios kernel_FreeBSD kernel_linux selinux" |
44 |
+ |
45 |
+DEPEND=" |
46 |
+ >=dev-libs/glib-2.38:2 |
47 |
+ sys-apps/dbus:= |
48 |
+ introspection? ( dev-libs/gobject-introspection:= ) |
49 |
+ kernel_linux? ( |
50 |
+ >=dev-libs/libgudev-236:= |
51 |
+ virtual/udev |
52 |
+ ios? ( |
53 |
+ >=app-pda/libimobiledevice-1:= |
54 |
+ >=app-pda/libplist-2:= |
55 |
+ ) |
56 |
+ ) |
57 |
+" |
58 |
+RDEPEND="${DEPEND} |
59 |
+ selinux? ( sec-policy/selinux-devicekit ) |
60 |
+" |
61 |
+BDEPEND=" |
62 |
+ app-text/docbook-xsl-stylesheets |
63 |
+ dev-libs/libxslt |
64 |
+ >=sys-devel/gettext-0.19.8 |
65 |
+ virtual/pkgconfig |
66 |
+ doc? ( dev-util/gtk-doc ) |
67 |
+" |
68 |
+ |
69 |
+QA_MULTILIB_PATHS="usr/lib/${PN}/.*" |
70 |
+ |
71 |
+DOCS=( AUTHORS HACKING NEWS README ) |
72 |
+ |
73 |
+PATCHES=( "${FILESDIR}/${P}-fix-power_now-energy_rate-readings.patch" ) # bug 796896 |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ default |
77 |
+ xdg_environment_reset |
78 |
+ sed -i -e '/DISABLE_DEPRECATED/d' configure || die |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ local backend |
83 |
+ |
84 |
+ if use kernel_linux ; then |
85 |
+ backend=linux |
86 |
+ elif use kernel_FreeBSD ; then |
87 |
+ backend=freebsd |
88 |
+ else |
89 |
+ backend=dummy |
90 |
+ fi |
91 |
+ |
92 |
+ local myeconfargs=( |
93 |
+ --disable-tests |
94 |
+ --enable-man-pages |
95 |
+ --libexecdir="${EPREFIX}"/usr/lib/${PN} |
96 |
+ --localstatedir="${EPREFIX}"/var |
97 |
+ --with-backend=${backend} |
98 |
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
99 |
+ --with-systemdutildir="$(systemd_get_utildir)" |
100 |
+ $(use_enable doc gtk-doc) |
101 |
+ $(use_enable introspection) |
102 |
+ $(use_with ios idevice) |
103 |
+ ) |
104 |
+ econf "${myeconfargs[@]}" |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ default |
109 |
+ find "${ED}" -type f -name '*.la' -delete || die |
110 |
+ keepdir /var/lib/upower #383091 |
111 |
+} |
112 |
+ |
113 |
+pkg_postinst() { |
114 |
+ if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 0.99.12; then |
115 |
+ elog "Support for Logitech Unifying Receiver battery state readout was" |
116 |
+ elog "removed in version 0.99.12, these devices have been directly" |
117 |
+ elog "supported by the Linux kernel since version >=3.2." |
118 |
+ elog |
119 |
+ elog "Support for CSR devices battery state was removed from udev rules" |
120 |
+ elog "in version 0.99.12. This concerns the following Logitech products" |
121 |
+ elog "from the mid 2000s:" |
122 |
+ elog "Mouse/Dual/Keyboard+Mouse Receiver, Freedom Optical, Elite Duo," |
123 |
+ elog "MX700/MX1000, Optical TrackMan, Click! Mouse, Presenter." |
124 |
+ fi |
125 |
+} |