diff options
-rw-r--r-- | app-laptop/batterymon/ChangeLog | 11 | ||||
-rw-r--r-- | app-laptop/batterymon/Manifest | 15 | ||||
-rw-r--r-- | app-laptop/batterymon/batterymon-1.2.0.ebuild | 59 | ||||
-rw-r--r-- | app-laptop/batterymon/files/batterymon-1.2.0-import.patch | 22 | ||||
-rw-r--r-- | app-laptop/batterymon/metadata.xml | 9 |
5 files changed, 116 insertions, 0 deletions
diff --git a/app-laptop/batterymon/ChangeLog b/app-laptop/batterymon/ChangeLog new file mode 100644 index 000000000000..6185d2e99591 --- /dev/null +++ b/app-laptop/batterymon/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-laptop/batterymon +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/batterymon/ChangeLog,v 1.1 2009/12/12 10:44:25 idl0r Exp $ + +*batterymon-1.2.0 (12 Dec 2009) + + 12 Dec 2009; Christian Ruppert <idl0r@gentoo.org> + +batterymon-1.2.0.ebuild, +files/batterymon-1.2.0-import.patch, + +metadata.xml: + Initial import of app-laptop/batterymon. + diff --git a/app-laptop/batterymon/Manifest b/app-laptop/batterymon/Manifest new file mode 100644 index 000000000000..34c89a1ed60f --- /dev/null +++ b/app-laptop/batterymon/Manifest @@ -0,0 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX batterymon-1.2.0-import.patch 750 RMD160 50b024d530125b2426aac17ef11bf6ae2e83ac96 SHA1 fdc77c83bc32b68c5380eb16573137f7b0551e40 SHA256 a103c31e4d21611c1899ea5018f8cb5c1839f846b84c8080a7e4e4f0c4c0b161 +DIST batterymon-1.2.0.tar.gz 1271283 RMD160 e8516b4936f1f40570a4dda63119e8fe444bb2d1 SHA1 77ac73dfb42d062a3c115695fabdd4809080a7d0 SHA256 aaae3dc19c064e51012157e9544fbf48682f74e9e516af9753e14e180d5fa4c9 +EBUILD batterymon-1.2.0.ebuild 1345 RMD160 f30522975bb538184cadd1cb686877d5ebf79231 SHA1 ee2b8bf71197efab0a29a1fdce0a13379a4987ce SHA256 ef2f9bebcf06d8c881d639d44d051db545abe52ef89e7a396032cb2f3b93de02 +MISC ChangeLog 426 RMD160 a1a900281ed19ee84cbc0fb6230d00839c74f564 SHA1 8368bc0160935ff2fc1abab3cbefbedd163567a6 SHA256 9dff74c7ea90e196fb1210883fceb7eb85124efc732ad9803337dc2c4fc266f6 +MISC metadata.xml 252 RMD160 5de0f0ff08807b9079ad37d250794b51ba685996 SHA1 4faf8cdf0a2ce5d38873962787b5af6bb0332af1 SHA256 aceb801e773da9b3e91dec088d62367685e761e2ab2b4db70f00d3e921050fa2 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEYEARECAAYFAksjdBkACgkQixe2jn+ufTgRwACff6OAJ+r/fKqXHqoL1JEIdTYK +9TYAnjSrnj2mE/vTHmXC/r/v4zZisW3d +=pBvE +-----END PGP SIGNATURE----- diff --git a/app-laptop/batterymon/batterymon-1.2.0.ebuild b/app-laptop/batterymon/batterymon-1.2.0.ebuild new file mode 100644 index 000000000000..b9ea64c93a42 --- /dev/null +++ b/app-laptop/batterymon/batterymon-1.2.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/batterymon/batterymon-1.2.0.ebuild,v 1.1 2009/12/12 10:44:25 idl0r Exp $ + +EAPI="2" +SUPPORT_PYTHON_ABIS="1" + +inherit python eutils + +DESCRIPTION="Simple battery monitor ideal for openbox etc." +HOMEPAGE="http://code.google.com/p/batterymon/" +SRC_URI="http://batterymon.googlecode.com/files/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="libnotify" + +DEPEND="" +RDEPEND="${DEPEND} + dev-python/dbus-python + dev-libs/dbus-glib + dev-python/pygtk:2 + libnotify? ( dev-python/notify-python )" + +S="${WORKDIR}/${PN}" + +src_prepare() { + epatch "${FILESDIR}/${P}-import.patch" +} + +src_install() { + newbin batterymon.py batterymon || die + + insinto $(python_get_sitedir)/${PN} + doins {logger,preferences,settings}.py || die + + # Create missing __init__.py + touch "${D}/$(python_get_sitedir)/${PN}/__init__.py" + + # Upstream forgot an svn dir + rm -rf icons/.svn + + insinto /usr/share/${PN}/ + doins -r icons/ batterymon.rc || die +} + +pkg_postinst() { + python_mod_optimize ${PN} + + einfo + einfo "Your own batterymon.rc will be loaded from ~/.config/${PN}/" + einfo "The default configuration can be found here: '${ROOT}usr/share/${PN}/${PN}.rc'" + einfo +} + +pkg_postrm() { + python_mod_cleanup ${PN} +} diff --git a/app-laptop/batterymon/files/batterymon-1.2.0-import.patch b/app-laptop/batterymon/files/batterymon-1.2.0-import.patch new file mode 100644 index 000000000000..e8bb79d3d252 --- /dev/null +++ b/app-laptop/batterymon/files/batterymon-1.2.0-import.patch @@ -0,0 +1,22 @@ +iff -up batterymon.orig/batterymon.py batterymon/batterymon.py +--- batterymon.orig/batterymon.py 2009-05-01 13:14:37.000000000 +0200 ++++ batterymon/batterymon.py 2009-12-12 11:16:23.307705992 +0100 +@@ -9,9 +9,14 @@ from optparse import OptionParser + import os,sys + + ## code modules +-from preferences import prefs +-from logger import logger_init +-from settings import config ++try: ++ from preferences import prefs ++ from logger import logger_init ++ from settings import config ++except ImportError: ++ from batterymon.preferences import prefs ++ from batterymon.logger import logger_init ++ from batterymon.settings import config + + #{{{ Desktop notifications init + try: +Common subdirectories: batterymon.orig/icons and batterymon/icons diff --git a/app-laptop/batterymon/metadata.xml b/app-laptop/batterymon/metadata.xml new file mode 100644 index 000000000000..edb4e4c04d45 --- /dev/null +++ b/app-laptop/batterymon/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>idl0r@gentoo.org</email> + <name>Christian Ruppert</name> +</maintainer> +</pkgmetadata> |