From 1b95cbb5b8eeb8b396698e04a9a888e4149a0157 Mon Sep 17 00:00:00 2001 From: Olivier CrĂȘte Date: Sun, 1 Mar 2009 19:12:11 +0000 Subject: Version bump, bug #254678 (Portage version: 2.1.6.7/cvs/Linux i686) --- sys-power/powertop/ChangeLog | 9 ++++++-- sys-power/powertop/powertop-1.11.ebuild | 41 +++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 sys-power/powertop/powertop-1.11.ebuild (limited to 'sys-power/powertop') diff --git a/sys-power/powertop/ChangeLog b/sys-power/powertop/ChangeLog index d9849979ac56..6b03009f3f33 100644 --- a/sys-power/powertop/ChangeLog +++ b/sys-power/powertop/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-power/powertop -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/ChangeLog,v 1.23 2008/08/31 22:21:07 loki_val Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/ChangeLog,v 1.24 2009/03/01 19:12:11 tester Exp $ + +*powertop-1.11 (01 Mar 2009) + + 01 Mar 2009; Olivier CrĂȘte +powertop-1.11.ebuild: + Version bump, bug #254678 *powertop-1.10 (31 Aug 2008) diff --git a/sys-power/powertop/powertop-1.11.ebuild b/sys-power/powertop/powertop-1.11.ebuild new file mode 100644 index 000000000000..7a35f35a95d8 --- /dev/null +++ b/sys-power/powertop/powertop-1.11.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/powertop-1.11.ebuild,v 1.1 2009/03/01 19:12:11 tester Exp $ + +inherit 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="http://www.lesswatts.org/projects/powertop/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" +IUSE="unicode" + +DEPEND="sys-libs/ncurses" + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i '/${CFLAGS}/s:$: ${LDFLAGS}:' Makefile + use unicode || sed -i 's:-lncursesw:-lncurses:' Makefile +} + +src_compile() { + tc-export CC + emake || die +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc Changelog README + gunzip "${D}"/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 +} -- cgit v1.2.3-65-gdbad