summaryrefslogtreecommitdiff
path: root/app-laptop/batti
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-laptop/batti
reinit the tree, so we can have metadata
Diffstat (limited to 'app-laptop/batti')
-rw-r--r--app-laptop/batti/Manifest7
-rw-r--r--app-laptop/batti/batti-0.3.8-r4.ebuild45
-rw-r--r--app-laptop/batti/files/batti-0.3.8-upower-0.99.patch34
-rw-r--r--app-laptop/batti/files/batti-0.3.8-upower-capital.patch32
-rw-r--r--app-laptop/batti/metadata.xml11
5 files changed, 129 insertions, 0 deletions
diff --git a/app-laptop/batti/Manifest b/app-laptop/batti/Manifest
new file mode 100644
index 000000000000..5eb9ea69117d
--- /dev/null
+++ b/app-laptop/batti/Manifest
@@ -0,0 +1,7 @@
+AUX batti-0.3.8-upower-0.99.patch 1248 SHA256 38309062cb0111df2c96c49e0b468a120fd3d145c3960b669f71cc020fbc2e5f SHA512 172036b2d5f63c37d26a9542e9348b469c2df4e1380fa3ff4c13883e3a295963c569230b32a36eba14f70e37f87dfc2fcfe03e98406a335749f2d0234c5d30be WHIRLPOOL 2950fcf9b7ef984c0d1fbeed3ed8cd2db9f0d19af8bf2f2399eda0d791f48fb0d23763856cb4c38631ca7fea28b5e11701889d4bde015630ba5010897f7e933e
+AUX batti-0.3.8-upower-capital.patch 1409 SHA256 bfaab9a945decbce2efa0a516cf373af0349ee2855560323489b263312c22224 SHA512 6b0f0fafe7443338b9af69156476fdbe231054010ec1ac17dada5c9f68c23477f50bc32d450cf7b3af5c2d012d3264aff4a74630ea2543e500c1f5c95534f1b6 WHIRLPOOL 89c621369f05616f0848f7ea725549a89ab2e5d859456ab52cdbdb58b6f9a5eec01a8c8d3919d340851adb2637ec3a97a72939b3e444580a6961d3a5041d9a95
+DIST batti-0.3.8.tar.gz 59783 SHA256 a63f99bc63dad743abef18ac666e11247011cf9136a11286b131467d9f484d1c SHA512 39e0085a13847359eb555eff80c3f3b166775558fba3c76ecb4315786e2ce4307d21dcac5fab38da4ee3cc2035356906eb1354ced56a1f007735029e0484a4de WHIRLPOOL 93f9dcc1b7a42968859eb79db593e0be694b6a31a14152e589cd1866172185a296b67b4e2131923d369ee21b3f36f80f42d8b7eb4aa91edad5d6ef96a5d2038c
+EBUILD batti-0.3.8-r4.ebuild 966 SHA256 698ebf99b6438aec9d5076565128136e1070118bb3f9e1423ec042af0c300129 SHA512 149e6aedf94fd886c93b1b31d4d52098d655d9b6566477de28f9c0d06b5269080caf74939f6cae7cf927d7ada6516b6d06e69ab90d644f27336b74e1ec6e87b5 WHIRLPOOL d01b9afd4aee1437a69cd3fca8c3532cff51eadba9f98e9631b997779556208e4df2d50f9ba9b6e22608c9f18b4b85a4b4a6af00323a30b926a4d7ffd0926278
+MISC ChangeLog 3120 SHA256 ac4d01c74a4bb08f4c52583b3f0423e9de81d0212e895157fa68c23174086265 SHA512 df2545bcbfa5fdeba7a9ae6e3bbbc8fe2a79117181cfa9ecc89cb43fadbcec9fa30d6e52c1c70220b03565389ae7f2d1764e1d2d882d7a543eba19e8a7a34bb1 WHIRLPOOL 2b346211d3e5a3fe422081603c09dd8b459b2ae05f91601225311f8d5686924b4e2c8c4b56c2bcd234fa74aa7356ff4570731dea15b503a49508197c72c7ef7e
+MISC ChangeLog-2015 4155 SHA256 100bc147aaa555ce7b05791ecec74d63f51a0f99ef8ff7ca63e9deb260a16970 SHA512 35cf3c76918bffc9d2479ce6daabc790f2a1e57af63b414b6eeabb0896ce0f95e71ab40a8216d698b525f6bfb5a9f3f9c8c8a032e0ad35f43f30a4ab324d080b WHIRLPOOL 7b12099818e8edfc46a937931f620a43ef9a7b6e6fe14ee01d65c4d32ff2d89238b5b4bb00d3f24240cad0504a0a375bab9429e7281d94847e51cdabcb15af49
+MISC metadata.xml 323 SHA256 9cc9000c687169d57161da084a9005e2699702d1f9445cfaea0746a05879193e SHA512 7b3c4c3895e87916db14eb4d611dea5be29d2d1846ee9ec47f56abba20b31091c834f3d5562a57b4fb828e2866f9c6e64ba9f57d25bcf7a2195bca2f7363c5aa WHIRLPOOL e5ee5a5f4e6cfcf1e5c97af079c2b78e46a96e3468c265ec7874fb55788b731fa4f5564caff92d8a5f1f73a68b817f9a7c6b3d9f323066fbc44a5de036cae362
diff --git a/app-laptop/batti/batti-0.3.8-r4.ebuild b/app-laptop/batti/batti-0.3.8-r4.ebuild
new file mode 100644
index 000000000000..f4824578587d
--- /dev/null
+++ b/app-laptop/batti/batti-0.3.8-r4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 gnome2-utils
+
+DESCRIPTION="A upower based battery monitor for the system tray, similar to batterymon"
+HOMEPAGE="https://code.google.com/p/batti-gtk/"
+SRC_URI="https://batti-gtk.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="libnotify"
+
+RDEPEND="
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ || ( sys-power/upower sys-power/upower-pm-utils )
+ x11-themes/hicolor-icon-theme
+ libnotify? ( x11-libs/libnotify )
+"
+DEPEND=""
+
+src_prepare() {
+ default
+ if has_version ">=sys-power/upower-0.99"; then
+ eapply "${FILESDIR}/${P}-upower-0.99.patch"
+ eapply "${FILESDIR}/${P}-upower-capital.patch"
+ fi
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
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
new file mode 100644
index 000000000000..6f313a594c94
--- /dev/null
+++ b/app-laptop/batti/files/batti-0.3.8-upower-0.99.patch
@@ -0,0 +1,34 @@
+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()
+
diff --git a/app-laptop/batti/files/batti-0.3.8-upower-capital.patch b/app-laptop/batti/files/batti-0.3.8-upower-capital.patch
new file mode 100644
index 000000000000..e7f62761661c
--- /dev/null
+++ b/app-laptop/batti/files/batti-0.3.8-upower-capital.patch
@@ -0,0 +1,32 @@
+From 1e0fe57a93ed3996bad295e20eeda81f6af483af Mon Sep 17 00:00:00 2001
+From: Christian Ruppert <idl0r@gentoo.org>
+Date: Wed, 20 Jul 2016 20:14:32 +0200
+Subject: [PATCH] The type property (in recent UPower at least) needs to have a
+ capital T - "Type"
+
+---
+ src/PowerBackend.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/PowerBackend.py b/src/PowerBackend.py
+index e020b98..56bcb61 100644
+--- a/src/PowerBackend.py
++++ b/src/PowerBackend.py
+@@ -165,7 +165,7 @@ def __init__(self):
+ self.__batteries = {}
+ for dev in devices:
+ (prop_iface, dev_iface) = self.__get_battery(dev)
+- type = prop_iface.Get(self.device_interface, 'type')
++ type = prop_iface.Get(self.device_interface, 'Type')
+ if type == self.bat_type:
+ power_bat = UPowerBattery(prop_iface, dev_iface)
+ self.__batteries[dev] = power_bat
+@@ -228,7 +228,7 @@ def set_right_popup_menu_action(self, action):
+ def __device_added(self, udi):
+ (prop_iface, dev_iface) = self.__get_battery(udi)
+ try:
+- type = prop_iface.Get(self.device_interface, 'type')
++ type = prop_iface.Get(self.device_interface, 'Type')
+ if type == self.bat_type:
+ power_bat = UPowerBattery(prop_iface, dev_iface)
+ power_bat.set_left_popup_menu_action(self.__mc_action)
diff --git a/app-laptop/batti/metadata.xml b/app-laptop/batti/metadata.xml
new file mode 100644
index 000000000000..c26d102ee702
--- /dev/null
+++ b/app-laptop/batti/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>naota@gentoo.org</email>
+ <name>Naohiro Aota</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">batti-gtk</remote-id>
+ </upstream>
+</pkgmetadata>