diff options
author | Sebastian Pipping <sping@gentoo.org> | 2010-05-28 23:33:03 +0000 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2010-05-28 23:33:03 +0000 |
commit | 763fbdc4ea12450f3b1bccae487d62274d00eb38 (patch) | |
tree | 263d54b15c4ed8ce37ef6744f856eff4c9753d96 /sys-power/powertop | |
parent | Add strigi dep, bug 306139 (diff) | |
download | gentoo-2-763fbdc4ea12450f3b1bccae487d62274d00eb38.tar.gz gentoo-2-763fbdc4ea12450f3b1bccae487d62274d00eb38.tar.bz2 gentoo-2-763fbdc4ea12450f3b1bccae487d62274d00eb38.zip |
Add live ebuild (fixes bug #319011)
(Portage version: 2.2_rc62/cvs/Linux i686)
Diffstat (limited to 'sys-power/powertop')
-rw-r--r-- | sys-power/powertop/ChangeLog | 7 | ||||
-rw-r--r-- | sys-power/powertop/powertop-9999.ebuild | 42 |
2 files changed, 48 insertions, 1 deletions
diff --git a/sys-power/powertop/ChangeLog b/sys-power/powertop/ChangeLog index ff17ef7ee31c..8f44e94580b0 100644 --- a/sys-power/powertop/ChangeLog +++ b/sys-power/powertop/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-power/powertop # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/ChangeLog,v 1.32 2010/04/05 17:02:18 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/ChangeLog,v 1.33 2010/05/28 23:33:03 sping Exp $ + +*powertop-9999 (28 May 2010) + + 28 May 2010; Sebastian Pipping <sping@gentoo.org> +powertop-9999.ebuild: + Add live ebuild, permission by bangert, fixes bug #319011 05 Apr 2010; Raúl Porcel <armin76@gentoo.org> powertop-1.11.ebuild: sparc stable wrt #302349 diff --git a/sys-power/powertop/powertop-9999.ebuild b/sys-power/powertop/powertop-9999.ebuild new file mode 100644 index 000000000000..19b36b7f0096 --- /dev/null +++ b/sys-power/powertop/powertop-9999.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/powertop-9999.ebuild,v 1.1 2010/05/28 23:33:03 sping Exp $ + +EAPI=3 + +inherit git toolchain-funcs eutils + +DESCRIPTION="tool that helps you find what software is using the most power" +HOMEPAGE="http://www.lesswatts.org/projects/powertop/" +SRC_URI="" +EGIT_REPO_URI="git://git.moblin.org/powertop" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="unicode" + +DEPEND="sys-libs/ncurses[unicode?] + sys-devel/gettext" +RDEPEND="${DEPEND}" + +src_prepare() { + use unicode || sed -i 's:-lncursesw:-lncurses:' Makefile +} + +src_configure() { + tc-export CC +} + +src_install() { + emake install DESTDIR="${ED}" || die + dodoc Changelog README + gunzip "${ED}"/usr/share/man/man1/powertop.1.gz +} + +pkg_postinst() { + echo + einfo "For PowerTOP to work best, use a Linux kernel with the" + einfo "tickless idle (NO_HZ) feature enabled (version 2.6.21 or later)" + echo +} |