summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2010-01-15 19:09:20 +0000
committerChristian Ruppert <idl0r@gentoo.org>2010-01-15 19:09:20 +0000
commit6815bb12b09f9f7bafd257a38cae6f9ff6c6f0ec (patch)
tree1d0850dfb78d220c4030b1f79f12daaa72242fe2 /app-laptop
parentRemoved old, and set license to BSD (bug #301123) (diff)
downloadgentoo-2-6815bb12b09f9f7bafd257a38cae6f9ff6c6f0ec.tar.gz
gentoo-2-6815bb12b09f9f7bafd257a38cae6f9ff6c6f0ec.tar.bz2
gentoo-2-6815bb12b09f9f7bafd257a38cae6f9ff6c6f0ec.zip
Fix installation due to eclass changes, bug 301093.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'app-laptop')
-rw-r--r--app-laptop/batterymon/ChangeLog7
-rw-r--r--app-laptop/batterymon/batterymon-1.2.0.ebuild25
2 files changed, 19 insertions, 13 deletions
diff --git a/app-laptop/batterymon/ChangeLog b/app-laptop/batterymon/ChangeLog
index f651dc4df602..f99780ca9336 100644
--- a/app-laptop/batterymon/ChangeLog
+++ b/app-laptop/batterymon/ChangeLog
@@ -1,6 +1,9 @@
# 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.2 2009/12/15 16:50:07 idl0r Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/batterymon/ChangeLog,v 1.3 2010/01/15 19:09:20 idl0r Exp $
+
+ 15 Jan 2010; Christian Ruppert <idl0r@gentoo.org> batterymon-1.2.0.ebuild:
+ Fix installation due to eclass changes, bug 301093.
15 Dec 2009; Christian Ruppert <idl0r@gentoo.org> batterymon-1.2.0.ebuild:
Add sys-apps/hal runtime dependency, bug 296969, thanks to Andre
diff --git a/app-laptop/batterymon/batterymon-1.2.0.ebuild b/app-laptop/batterymon/batterymon-1.2.0.ebuild
index 2f6251c1415e..4d0ffa775aa6 100644
--- a/app-laptop/batterymon/batterymon-1.2.0.ebuild
+++ b/app-laptop/batterymon/batterymon-1.2.0.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 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.2 2009/12/15 16:50:07 idl0r Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/batterymon/batterymon-1.2.0.ebuild,v 1.3 2010/01/15 19:09:20 idl0r Exp $
EAPI="2"
SUPPORT_PYTHON_ABIS="1"
@@ -31,19 +31,22 @@ src_prepare() {
}
src_install() {
- newbin batterymon.py batterymon || die
+ install_batterymon() {
+ newbin batterymon.py batterymon || die
- insinto $(python_get_sitedir)/${PN}
- doins {logger,preferences,settings}.py || die
+ insinto $(python_get_sitedir)/${PN}
+ doins {logger,preferences,settings}.py || die
- # Create missing __init__.py
- touch "${D}/$(python_get_sitedir)/${PN}/__init__.py"
+ # Create missing __init__.py
+ touch "${D}/$(python_get_sitedir)/${PN}/__init__.py"
- # Upstream forgot an svn dir
- rm -rf icons/.svn
+ # Upstream forgot an svn dir
+ rm -rf icons/.svn
- insinto /usr/share/${PN}/
- doins -r icons/ batterymon.rc || die
+ insinto /usr/share/${PN}/
+ doins -r icons/ batterymon.rc || die
+ }
+ python_execute_function install_batterymon
}
pkg_postinst() {