summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2014-05-31 18:19:55 +0000
committerPacho Ramos <pacho@gentoo.org>2014-05-31 18:19:55 +0000
commit50676ce6e29856eb6a0256bcdffed75895512947 (patch)
tree9494a77aa814b70b73cb59a16f55316159567030 /app-laptop
parentUse patch from ArchLinux to support upower-0.99 (x11-misc/cbatticon is anothe... (diff)
downloadgentoo-2-50676ce6e29856eb6a0256bcdffed75895512947.tar.gz
gentoo-2-50676ce6e29856eb6a0256bcdffed75895512947.tar.bz2
gentoo-2-50676ce6e29856eb6a0256bcdffed75895512947.zip
Revert as ssuominen reported breakage with upower-pm-utils. This is only compatible with old upower then
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'app-laptop')
-rw-r--r--app-laptop/batti/ChangeLog7
-rw-r--r--app-laptop/batti/batti-0.3.8-r1.ebuild6
-rw-r--r--app-laptop/batti/batti-0.3.8-r2.ebuild47
-rw-r--r--app-laptop/batti/files/batti-0.3.8-upower-0.99.patch34
4 files changed, 9 insertions, 85 deletions
diff --git a/app-laptop/batti/ChangeLog b/app-laptop/batti/ChangeLog
index 8e2ef51a4389..1bd876682cd6 100644
--- a/app-laptop/batti/ChangeLog
+++ b/app-laptop/batti/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-laptop/batti
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-laptop/batti/ChangeLog,v 1.19 2014/05/31 18:06:22 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/batti/ChangeLog,v 1.20 2014/05/31 18:19:54 pacho Exp $
+
+ 31 May 2014; Pacho Ramos <pacho@gentoo.org> -batti-0.3.8-r2.ebuild,
+ -files/batti-0.3.8-upower-0.99.patch, batti-0.3.8-r1.ebuild:
+ Revert as ssuominen reported breakage with upower-pm-utils. This is only
+ compatible with old upower then
*batti-0.3.8-r2 (31 May 2014)
diff --git a/app-laptop/batti/batti-0.3.8-r1.ebuild b/app-laptop/batti/batti-0.3.8-r1.ebuild
index 67f6a31cab50..d04ee5442273 100644
--- a/app-laptop/batti/batti-0.3.8-r1.ebuild
+++ b/app-laptop/batti/batti-0.3.8-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-laptop/batti/batti-0.3.8-r1.ebuild,v 1.5 2013/02/09 18:57:10 idl0r Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/batti/batti-0.3.8-r1.ebuild,v 1.6 2014/05/31 18:19:54 pacho Exp $
EAPI=3
@@ -21,7 +21,7 @@ IUSE="libnotify"
RDEPEND="dev-python/pygtk
dev-python/dbus-python
- sys-power/upower
+ || ( <sys-power/upower-0.99 sys-power/upower-pm-utils )
x11-themes/gnome-icon-theme
libnotify? ( x11-libs/libnotify )"
DEPEND=""
diff --git a/app-laptop/batti/batti-0.3.8-r2.ebuild b/app-laptop/batti/batti-0.3.8-r2.ebuild
deleted file mode 100644
index ffb4ee81bf1e..000000000000
--- a/app-laptop/batti/batti-0.3.8-r2.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-laptop/batti/batti-0.3.8-r2.ebuild,v 1.1 2014/05/31 18:06:22 pacho Exp $
-
-EAPI=5
-
-SUPPORT_PYTHON_ABIS="1"
-PYTHON_DEPEND="2"
-RESTRICT_PYTHON_ABIS="3.*"
-
-inherit python distutils gnome2-utils eutils
-
-DESCRIPTION="A upower based battery monitor for the system tray, similar to batterymon"
-HOMEPAGE="http://code.google.com/p/batti-gtk/"
-SRC_URI="http://batti-gtk.googlecode.com/files/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="libnotify"
-
-RDEPEND="dev-python/pygtk
- dev-python/dbus-python
- || ( sys-power/upower:= sys-power/upower-pm-utils )
- x11-themes/gnome-icon-theme
- libnotify? ( x11-libs/libnotify )"
-DEPEND=""
-
-DOCS="AUTHORS"
-
-src_prepare() {
- has_version ">=sys-power/upower-0.99" && epatch "${FILESDIR}/${P}-upower-0.99.patch"
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- gnome2_icon_cache_update
- distutils_pkg_postinst
-}
-
-pkg_postrm() {
- gnome2_icon_cache_update
- distutils_pkg_postrm
-}
diff --git a/app-laptop/batti/files/batti-0.3.8-upower-0.99.patch b/app-laptop/batti/files/batti-0.3.8-upower-0.99.patch
deleted file mode 100644
index 6f313a594c94..000000000000
--- a/app-laptop/batti/files/batti-0.3.8-upower-0.99.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-diff -Naur batti-0.3.8.orig/src/PowerBackend.py batti-0.3.8/src/PowerBackend.py
---- batti-0.3.8.orig/src/PowerBackend.py 2014-04-15 19:30:34.123260000 +0200
-+++ batti-0.3.8/src/PowerBackend.py 2014-04-15 19:32:11.859168509 +0200
-@@ -180,17 +180,6 @@
-
- properties = dbus.Interface(iface, 'org.freedesktop.DBus.Properties')
-
-- if properties.Get(self.dbus_interface, 'CanSuspend'):
-- self.__can_suspend = True
-- else:
-- self.__can_suspend = False
--
-- if properties.Get(self.dbus_interface, 'CanHibernate'):
-- self.__can_hibernate = True
-- else:
-- self.__can_hibernate = False
--
--
- def __get_interface(self):
- dkit_obj = self.__bus.get_object(self.dbus_service, self.dbus_object)
- return dbus.Interface(dkit_obj, self.dbus_interface)
-@@ -201,12 +190,6 @@
- self.__mc_action(widget, event, data)
-
-
-- def can_suspend(self):
-- return self.__can_suspend and self.__get_interface().SuspendAllowed()
--
-- def can_hibernate(self):
-- return self.__can_hibernate and self.__get_interface().HibernateAllowed()
--
- def suspend(self):
- self.__get_interface().Suspend()
-