1 |
commit: 4c88cf66e05e9e9b185fcb9c7d3e6e39be12a6c2 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 28 17:44:27 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 28 17:44:27 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c88cf66 |
7 |
|
8 |
sys-power/upower: Bump to version 0.99.9 |
9 |
|
10 |
Package-Manager: Portage-2.3.53, Repoman-2.3.12 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-power/upower/Manifest | 1 + |
14 |
sys-power/upower/upower-0.99.9.ebuild | 91 +++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 92 insertions(+) |
16 |
|
17 |
diff --git a/sys-power/upower/Manifest b/sys-power/upower/Manifest |
18 |
index ddb098c2a2d..cc2e9525678 100644 |
19 |
--- a/sys-power/upower/Manifest |
20 |
+++ b/sys-power/upower/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST upower-0.99.8.tar.xz 448664 BLAKE2B e101e7d1b2aede77c1ed2da1fd23b87a95ccac8d901bd8d1f8bebcd5de7052a66f1840cf578a48453538e166aae56ef4bc6d3a2b85f7ba148ecac5cc0a486809 SHA512 dfd2960cae382195dfc7a703a02af298d9de55bc626cde2a1f97e7983842191ba9d99eb2044190214e792539e7d6c9d8e00b5aed17e5e86b04544e9ab90278b1 |
23 |
+DIST upower-0.99.9.tar.xz 448408 BLAKE2B 5fa2436f33c94cffb736d8e3fad433acf58954cf06ccd403a0361214be5afc45d79ea279f3c5c48dcd58b92ccaf995777c95987d1749fd8c8c8958317e439570 SHA512 45eb587b0e5ffcce88bad8c56bc5efa30559748913016a55d58313280f5159378e5fbb4a9842c3a6409257bb97822d235f96b03704268b8471455c93eb05fe2f |
24 |
|
25 |
diff --git a/sys-power/upower/upower-0.99.9.ebuild b/sys-power/upower/upower-0.99.9.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..8219ae1eaea |
28 |
--- /dev/null |
29 |
+++ b/sys-power/upower/upower-0.99.9.ebuild |
30 |
@@ -0,0 +1,91 @@ |
31 |
+# Copyright 1999-2018 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+inherit systemd xdg-utils |
36 |
+ |
37 |
+DESCRIPTION="D-Bus abstraction for enumerating power devices, querying history and statistics" |
38 |
+HOMEPAGE="https://upower.freedesktop.org/" |
39 |
+ |
40 |
+# No tarball released, use the same commit as Fedora |
41 |
+#SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz" |
42 |
+COMMIT="2282c7c0e53fb31816b824c9d1f547e8" |
43 |
+SRC_URI="https://gitlab.freedesktop.org/upower/upower/uploads/${COMMIT}/${P}.tar.xz" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0/3" # based on SONAME of libupower-glib.so |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
48 |
+ |
49 |
+# gtk-doc files are not available as prebuilt in the tarball |
50 |
+IUSE="doc +introspection ios kernel_FreeBSD kernel_linux selinux" |
51 |
+ |
52 |
+COMMON_DEPS=" |
53 |
+ >=dev-libs/dbus-glib-0.100 |
54 |
+ >=dev-libs/glib-2.34:2 |
55 |
+ sys-apps/dbus:= |
56 |
+ introspection? ( dev-libs/gobject-introspection:= ) |
57 |
+ kernel_linux? ( |
58 |
+ virtual/libusb:1 |
59 |
+ virtual/libgudev:= |
60 |
+ virtual/udev |
61 |
+ ios? ( |
62 |
+ >=app-pda/libimobiledevice-1:= |
63 |
+ >=app-pda/libplist-1:= |
64 |
+ ) |
65 |
+ ) |
66 |
+" |
67 |
+RDEPEND=" |
68 |
+ ${COMMON_DEPS} |
69 |
+ selinux? ( sec-policy/selinux-devicekit ) |
70 |
+" |
71 |
+DEPEND="${COMMON_DEPS} |
72 |
+ doc? ( dev-util/gtk-doc ) |
73 |
+ dev-libs/libxslt |
74 |
+ app-text/docbook-xsl-stylesheets |
75 |
+ dev-util/intltool |
76 |
+ >=sys-devel/gettext-0.17 |
77 |
+ virtual/pkgconfig |
78 |
+" |
79 |
+ |
80 |
+QA_MULTILIB_PATHS="usr/lib/${PN}/.*" |
81 |
+ |
82 |
+DOCS=( AUTHORS HACKING NEWS README ) |
83 |
+ |
84 |
+src_prepare() { |
85 |
+ default |
86 |
+ xdg_environment_reset |
87 |
+ sed -i -e '/DISABLE_DEPRECATED/d' configure || die |
88 |
+} |
89 |
+ |
90 |
+src_configure() { |
91 |
+ local backend |
92 |
+ |
93 |
+ if use kernel_linux ; then |
94 |
+ backend=linux |
95 |
+ elif use kernel_FreeBSD ; then |
96 |
+ backend=freebsd |
97 |
+ else |
98 |
+ backend=dummy |
99 |
+ fi |
100 |
+ |
101 |
+ local myeconfargs=( |
102 |
+ --disable-static |
103 |
+ --disable-tests |
104 |
+ --enable-man-pages |
105 |
+ --libexecdir="${EPREFIX}"/usr/lib/${PN} |
106 |
+ --localstatedir="${EPREFIX}"/var |
107 |
+ --with-backend=${backend} |
108 |
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
109 |
+ --with-systemdutildir="$(systemd_get_utildir)" |
110 |
+ $(use_enable doc gtk-doc) |
111 |
+ $(use_enable introspection) |
112 |
+ $(use_with ios idevice) |
113 |
+ ) |
114 |
+ econf "${myeconfargs[@]}" |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ default |
119 |
+ find "${ED}" -name '*.la' -delete || die |
120 |
+ keepdir /var/lib/upower #383091 |
121 |
+} |