1 |
commit: 93dfe5ba210abb6c363c711847ad1e9c3963f4fc |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 23 14:33:29 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 23 14:33:29 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93dfe5ba |
7 |
|
8 |
sys-power/upower: Version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.11 |
11 |
|
12 |
sys-power/upower/Manifest | 1 + |
13 |
sys-power/upower/upower-0.99.8.ebuild | 91 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 92 insertions(+) |
15 |
|
16 |
diff --git a/sys-power/upower/Manifest b/sys-power/upower/Manifest |
17 |
index 3ab9abf0de4..ec7cb8e4e9d 100644 |
18 |
--- a/sys-power/upower/Manifest |
19 |
+++ b/sys-power/upower/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST upower-0.99.5.tar.xz 432344 BLAKE2B 048471cee61e57ee673e2ba2e2f826ef1770291ca5b7a02adcce11acd78f96a3aa443b5f66abc595ce6578ca59a15a940b0c4924b443babc798fa54f4f629564 SHA512 2fb06bea69455f538146576665e36c5b91eb18b119fa77e29d383fcb2a86ea58650b82e258f157d03c40147ecb12ea545997199580f0e24847ac6ea04d46e5ea |
22 |
DIST upower-0.99.7.tar.xz 447832 BLAKE2B 3342f38552a5eb6abffc6b15803db0e8a24e6a3345fe1007f3a5fa66dd06ddebacf2352a751f7a3adf7ee0fe28797d7a1c5b3ec27cd190aabed17e2c7070a438 SHA512 a1ad200e715284eae815580bba3faad480f7f13401f6ff1a2e7446172796a2413990ce2b553de713ddc530849b2dff1f0ddc12fbd2fd9b55510bbb644d2340a4 |
23 |
+DIST upower-0.99.8.tar.xz 448664 BLAKE2B e101e7d1b2aede77c1ed2da1fd23b87a95ccac8d901bd8d1f8bebcd5de7052a66f1840cf578a48453538e166aae56ef4bc6d3a2b85f7ba148ecac5cc0a486809 SHA512 dfd2960cae382195dfc7a703a02af298d9de55bc626cde2a1f97e7983842191ba9d99eb2044190214e792539e7d6c9d8e00b5aed17e5e86b04544e9ab90278b1 |
24 |
|
25 |
diff --git a/sys-power/upower/upower-0.99.8.ebuild b/sys-power/upower/upower-0.99.8.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..3d7208a88ea |
28 |
--- /dev/null |
29 |
+++ b/sys-power/upower/upower-0.99.8.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=6 |
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="9125ab7ee96fdc4ecc68cfefb50c1cab" |
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 |
+ sed -i -e '/DISABLE_DEPRECATED/d' configure || die |
87 |
+} |
88 |
+ |
89 |
+src_configure() { |
90 |
+ local backend |
91 |
+ |
92 |
+ if use kernel_linux ; then |
93 |
+ backend=linux |
94 |
+ elif use kernel_FreeBSD ; then |
95 |
+ backend=freebsd |
96 |
+ else |
97 |
+ backend=dummy |
98 |
+ fi |
99 |
+ |
100 |
+ local myeconfargs=( |
101 |
+ --disable-static |
102 |
+ --disable-tests |
103 |
+ --enable-man-pages |
104 |
+ --libexecdir="${EPREFIX%/}"/usr/lib/${PN} |
105 |
+ --localstatedir="${EPREFIX%/}"/var |
106 |
+ --with-backend=${backend} |
107 |
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
108 |
+ --with-systemdutildir="$(systemd_get_utildir)" |
109 |
+ $(use_enable doc gtk-doc) |
110 |
+ $(use_enable introspection) |
111 |
+ $(use_with ios idevice) |
112 |
+ ) |
113 |
+ xdg_environment_reset |
114 |
+ econf "${myeconfargs[@]}" |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ default |
119 |
+ find "${D}" -name '*.la' -delete || die |
120 |
+ keepdir /var/lib/upower #383091 |
121 |
+} |