1 |
ssuominen 14/06/23 04:06:07 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: upower-pm-utils-0.9.23-r2.ebuild |
5 |
Log: |
6 |
Import Debian patch to remove last systemd autodetection code to always use sys-power/pm-utils. |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.6 sys-power/upower-pm-utils/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/upower-pm-utils/ChangeLog?rev=1.6&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/upower-pm-utils/ChangeLog?rev=1.6&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/upower-pm-utils/ChangeLog?r1=1.5&r2=1.6 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-power/upower-pm-utils/ChangeLog,v |
20 |
retrieving revision 1.5 |
21 |
retrieving revision 1.6 |
22 |
diff -u -r1.5 -r1.6 |
23 |
--- ChangeLog 5 Jun 2014 03:33:54 -0000 1.5 |
24 |
+++ ChangeLog 23 Jun 2014 04:06:07 -0000 1.6 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for sys-power/upower-pm-utils |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-power/upower-pm-utils/ChangeLog,v 1.5 2014/06/05 03:33:54 ssuominen Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-power/upower-pm-utils/ChangeLog,v 1.6 2014/06/23 04:06:07 ssuominen Exp $ |
30 |
+ |
31 |
+*upower-pm-utils-0.9.23-r2 (23 Jun 2014) |
32 |
+ |
33 |
+ 23 Jun 2014; Samuli Suominen <ssuominen@g.o> |
34 |
+ +files/upower-pm-utils-0.9.23-always_use_pm-utils_backend.patch, |
35 |
+ +upower-pm-utils-0.9.23-r2.ebuild: |
36 |
+ Import Debian patch to remove last systemd autodetection code to always use |
37 |
+ sys-power/pm-utils. |
38 |
|
39 |
05 Jun 2014; Samuli Suominen <ssuominen@g.o> |
40 |
upower-pm-utils-0.9.23-r1.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 sys-power/upower-pm-utils/upower-pm-utils-0.9.23-r2.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/upower-pm-utils/upower-pm-utils-0.9.23-r2.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/upower-pm-utils/upower-pm-utils-0.9.23-r2.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: upower-pm-utils-0.9.23-r2.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2014 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sys-power/upower-pm-utils/upower-pm-utils-0.9.23-r2.ebuild,v 1.1 2014/06/23 04:06:07 ssuominen Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
inherit eutils systemd |
57 |
|
58 |
DESCRIPTION="The upstream upower 0.9 git branch for use with sys-power/pm-utils" |
59 |
HOMEPAGE="http://upower.freedesktop.org/" |
60 |
SRC_URI="http://upower.freedesktop.org/releases/upower-${PV}.tar.xz" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
SLOT="0" |
64 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
65 |
IUSE="+introspection ios kernel_FreeBSD kernel_linux" |
66 |
|
67 |
COMMON_DEPEND=">=dev-libs/dbus-glib-0.100 |
68 |
>=dev-libs/glib-2.22 |
69 |
sys-apps/dbus |
70 |
>=sys-auth/polkit-0.110 |
71 |
introspection? ( dev-libs/gobject-introspection ) |
72 |
kernel_linux? ( |
73 |
virtual/libusb:1 |
74 |
virtual/libgudev:= |
75 |
virtual/udev |
76 |
ios? ( |
77 |
>=app-pda/libimobiledevice-1:= |
78 |
>=app-pda/libplist-1:= |
79 |
) |
80 |
) |
81 |
!sys-power/upower" |
82 |
RDEPEND="${COMMON_DEPEND} |
83 |
kernel_linux? ( >=sys-power/pm-utils-1.4.1-r2 )" |
84 |
DEPEND="${COMMON_DEPEND} |
85 |
dev-libs/libxslt |
86 |
app-text/docbook-xsl-stylesheets |
87 |
dev-util/intltool |
88 |
virtual/pkgconfig" |
89 |
|
90 |
QA_MULTILIB_PATHS="usr/lib/upower/.*" |
91 |
|
92 |
DOCS="AUTHORS HACKING NEWS README" |
93 |
|
94 |
S=${WORKDIR}/upower-${PV} |
95 |
|
96 |
src_prepare() { |
97 |
sed -i -e '/DISABLE_DEPRECATED/d' configure || die |
98 |
|
99 |
# http://bugs.freedesktop.org/show_bug.cgi?id=79565 |
100 |
# http://bugzilla.xfce.org/show_bug.cgi?id=10931 |
101 |
# Same effect as Debian -no_deprecation_define.patch, they patch .h, we patch .pc |
102 |
sed -i -e 's|Cflags: |&-DUPOWER_ENABLE_DEPRECATED |' upower-glib.pc.in || die |
103 |
|
104 |
# From upstream 0.9 git branch: |
105 |
epatch \ |
106 |
"${FILESDIR}"/${P}-create-dir-runtime.patch \ |
107 |
"${FILESDIR}"/${P}-fix-segfault.patch \ |
108 |
"${FILESDIR}"/${P}-clamp_percentage_for_overfull_batt.patch |
109 |
|
110 |
# From Debian: |
111 |
epatch "${FILESDIR}"/${P}-always_use_pm-utils_backend.patch |
112 |
} |
113 |
|
114 |
src_configure() { |
115 |
local backend myconf |
116 |
|
117 |
if use kernel_linux; then |
118 |
backend=linux |
119 |
myconf="--enable-deprecated" |
120 |
elif use kernel_FreeBSD; then |
121 |
backend=freebsd |
122 |
else |
123 |
backend=dummy |
124 |
fi |
125 |
|
126 |
econf \ |
127 |
--libexecdir="${EPREFIX}"/usr/lib/upower \ |
128 |
--localstatedir="${EPREFIX}"/var \ |
129 |
$(use_enable introspection) \ |
130 |
--disable-static \ |
131 |
${myconf} \ |
132 |
--enable-man-pages \ |
133 |
--disable-tests \ |
134 |
--with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
135 |
--with-backend=${backend} \ |
136 |
$(use_with ios idevice) \ |
137 |
"$(systemd_with_utildir)" \ |
138 |
"$(systemd_with_unitdir)" |
139 |
} |
140 |
|
141 |
src_install() { |
142 |
default |
143 |
|
144 |
# http://bugs.gentoo.org/487400 |
145 |
insinto /usr/share/doc/${PF}/html/UPower |
146 |
doins doc/html/* |
147 |
dosym /usr/share/doc/${PF}/html/UPower /usr/share/gtk-doc/html/UPower |
148 |
|
149 |
keepdir /var/lib/upower #383091 |
150 |
prune_libtool_files |
151 |
} |