1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="3.*"
11 inherit python distutils gnome2-utils eutils
13 DESCRIPTION="A upower based battery monitor for the system tray, similar to batterymon"
14 HOMEPAGE="https://code.google.com/p/batti-gtk/"
15 SRC_URI="https://batti-gtk.googlecode.com/files/${P}.tar.gz"
22 RDEPEND="dev-python/pygtk
23 dev-python/dbus-python
24 || ( sys-power/upower sys-power/upower-pm-utils )
25 x11-themes/gnome-icon-theme
26 libnotify? ( x11-libs/libnotify )"
32 has_version ">=sys-power/upower-0.99" && epatch "${FILESDIR}/${P}-upower-0.99.patch"
40 gnome2_icon_cache_update
41 distutils_pkg_postinst
45 gnome2_icon_cache_update