summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-05-15 11:29:22 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-05-15 11:29:22 +0000
commitc81d6e79876dd44e42d97d6c84640bd996f068e9 (patch)
treeb25dba7640efbff11ade54cb646e8ccbef5b6268 /sys-power
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-c81d6e79876dd44e42d97d6c84640bd996f068e9.tar.gz
gentoo-2-c81d6e79876dd44e42d97d6c84640bd996f068e9.tar.bz2
gentoo-2-c81d6e79876dd44e42d97d6c84640bd996f068e9.zip
Version bump wrt #319761 (with patch reverting upstream commit to restore resume and suspend functionality by Priit Laes).
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/upower/ChangeLog9
-rw-r--r--sys-power/upower/files/upower-0.9.4-enumerate.patch29
-rw-r--r--sys-power/upower/upower-0.9.4.ebuild82
3 files changed, 119 insertions, 1 deletions
diff --git a/sys-power/upower/ChangeLog b/sys-power/upower/ChangeLog
index b5af0a7af4ff..6f88cd1c946e 100644
--- a/sys-power/upower/ChangeLog
+++ b/sys-power/upower/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-power/upower
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/upower/ChangeLog,v 1.5 2010/05/11 08:35:49 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/upower/ChangeLog,v 1.6 2010/05/15 11:29:22 ssuominen Exp $
+
+*upower-0.9.4 (15 May 2010)
+
+ 15 May 2010; Samuli Suominen <ssuominen@gentoo.org> +upower-0.9.4.ebuild,
+ +files/upower-0.9.4-enumerate.patch:
+ Version bump wrt #319761 (with patch reverting upstream commit to restore
+ resume and suspend functionality by Priit Laes).
*upower-0.9.3-r1 (11 May 2010)
diff --git a/sys-power/upower/files/upower-0.9.4-enumerate.patch b/sys-power/upower/files/upower-0.9.4-enumerate.patch
new file mode 100644
index 000000000000..9494fb8527b0
--- /dev/null
+++ b/sys-power/upower/files/upower-0.9.4-enumerate.patch
@@ -0,0 +1,29 @@
+From 9ba7ef8e0a137e9e574c4fc3f4cde6a8370ebf7c Mon Sep 17 00:00:00 2001
+From: Priit Laes <plaes@plaes.org>
+Date: Sat, 15 May 2010 00:19:34 +0300
+Subject: [PATCH] Revert "Ensure we enumerate devices before we start monitoring them"
+
+This reverts commit bcc0c2ced07a778a41a06a0e52be37b1bbbba551.
+---
+ tools/up-tool.c | 5 -----
+ 1 files changed, 0 insertions(+), 5 deletions(-)
+
+diff --git a/tools/up-tool.c b/tools/up-tool.c
+index d698c7c..a691744 100644
+--- a/tools/up-tool.c
++++ b/tools/up-tool.c
+@@ -331,11 +331,6 @@ main (int argc, char **argv)
+ }
+
+ if (opt_monitor || opt_monitor_detail) {
+- ret = up_client_enumerate_devices_sync (client, NULL, &error);
+- if (!ret) {
+- egg_warning ("failed to enumerate: %s", error->message);
+- goto out;
+- }
+ if (!up_tool_do_monitor (client))
+ goto out;
+ retval = EXIT_SUCCESS;
+--
+1.7.1
+
diff --git a/sys-power/upower/upower-0.9.4.ebuild b/sys-power/upower/upower-0.9.4.ebuild
new file mode 100644
index 000000000000..6669a4c6a8d5
--- /dev/null
+++ b/sys-power/upower/upower-0.9.4.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/upower/upower-0.9.4.ebuild,v 1.1 2010/05/15 11:29:22 ssuominen Exp $
+
+EAPI=3
+inherit eutils linux-info
+
+DESCRIPTION="D-Bus abstraction for enumerating power devices and querying history and statistics"
+HOMEPAGE="http://upower.freedesktop.org/"
+SRC_URI="http://upower.freedesktop.org/releases/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE="debug doc nls introspection kernel_FreeBSD kernel_linux test"
+
+COMMON_DEPEND=">=dev-libs/glib-2.21.5:2
+ >=sys-apps/dbus-1
+ >=dev-libs/dbus-glib-0.76
+ >=sys-auth/polkit-0.91
+ introspection? ( dev-libs/gobject-introspection )
+ kernel_linux? ( >=sys-fs/udev-151[extras]
+ virtual/libusb:0 )
+ !sys-apps/devicekit-power"
+RDEPEND="${COMMON_DEPEND}
+ kernel_linux? ( >=sys-power/pm-utils-1.3.0-r2 )"
+DEPEND="${COMMON_DEPEND}
+ dev-util/pkgconfig
+ dev-libs/libxslt
+ app-text/docbook-xsl-stylesheets
+ doc? ( dev-util/gtk-doc
+ app-text/docbook-xml-dtd:4.1.2 )
+ nls? ( >=dev-util/intltool-0.40.0 )"
+
+pkg_setup() {
+ if use kernel_linux; then
+ if use amd64 || use x86; then
+ CONFIG_CHECK="~ACPI_SYSFS_POWER"
+ linux-info_pkg_setup
+ fi
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-enumerate.patch
+
+ sed -i \
+ -e '/DISABLE_DEPRECATED/d' \
+ configure || die
+}
+
+src_configure() {
+ local backend
+
+ if use kernel_linux; then
+ backend=linux
+ elif use kernel_FreeBSD; then
+ backend=freebsd
+ else
+ backend=dummy
+ fi
+
+ econf \
+ --localstatedir="${EPREFIX}/var" \
+ $(use_enable introspection) \
+ --disable-dependency-tracking \
+ --disable-static \
+ $(use_enable debug verbose-mode) \
+ --enable-man-pages \
+ $(use_enable doc gtk-doc) \
+ $(use_enable test tests) \
+ $(use_enable nls) \
+ --with-html-dir="${EPREFIX}/usr/share/doc/${PF}/html" \
+ --with-backend=${backend}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS HACKING NEWS README
+
+ find "${ED}" -name '*.la' -delete
+}