From ff52a17937b9ed9a09523923914e3b1b71333b0e Mon Sep 17 00:00:00 2001 From: Tomas Chvatal Date: Mon, 14 Mar 2011 09:45:03 +0000 Subject: Update live ebuild to reflect reality. Add latest version (prerelease for 2.0) with only amd64 and x86 because it is completely different stuff. Non-maintainer commit. Package-Manager: portage-2.2.0_alpha26/cvs/Linux x86_64 --- sys-power/powertop/ChangeLog | 9 ++++++- sys-power/powertop/Manifest | 6 +++-- sys-power/powertop/powertop-1.97.ebuild | 43 +++++++++++++++++++++++++++++++++ sys-power/powertop/powertop-9999.ebuild | 22 +++++++++-------- 4 files changed, 67 insertions(+), 13 deletions(-) create mode 100644 sys-power/powertop/powertop-1.97.ebuild (limited to 'sys-power') diff --git a/sys-power/powertop/ChangeLog b/sys-power/powertop/ChangeLog index 68373b1d0067..ece5992c406a 100644 --- a/sys-power/powertop/ChangeLog +++ b/sys-power/powertop/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-power/powertop # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/ChangeLog,v 1.40 2011/01/26 10:44:34 bangert Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/ChangeLog,v 1.41 2011/03/14 09:45:03 scarabeus Exp $ + +*powertop-1.97 (14 Mar 2011) + + 14 Mar 2011; Tomáš Chvátal +powertop-1.97.ebuild, + powertop-9999.ebuild: + Update live ebuild to reflect reality. Add latest version with only amd64 and + x86 because it is completely different stuff. Non-maintainer commit. 26 Jan 2011; Thilo Bangert powertop-9999.ebuild: fix git url (#350783) diff --git a/sys-power/powertop/Manifest b/sys-power/powertop/Manifest index 10b3fb7c952e..50f95553c17b 100644 --- a/sys-power/powertop/Manifest +++ b/sys-power/powertop/Manifest @@ -1,7 +1,9 @@ DIST powertop-1.11.tar.gz 73136 RMD160 be05916afbb808ae17f6becbef7d456a753bd652 SHA1 d1d71db9a0854fab51f295a87ec505d89e451de3 SHA256 70e7cc53e5fbade5e447bda9f0ca12f2153bf426e074dbac3a2e97adf46180f2 DIST powertop-1.13.tar.gz 104675 RMD160 e6cf649e387a9a6f8cf036ddfa0f5def50303f76 SHA1 91a6f1ec9ca768c1a04409e154e6909458028d66 SHA256 2bc866089496877dd26d2d316ad5763ab8ecb5e28aefba44bc5d355dcdc58d98 +DIST powertop-1.97.tar.bz2 84657 RMD160 8e9f0db989a42a9a368a45cbf6e9e1985e3fb82a SHA1 0227d5199ef3092915a62aca63aaa1d3ba1a9c12 SHA256 d3dafe1ce4dabeb4edb724616d7b8533ac40ed71fca43e81b007e9fd7011e516 EBUILD powertop-1.11.ebuild 1103 RMD160 352796f0e4974260fe498de282270cb388e211bc SHA1 137f2c60671829387c573203f9813a6f33f50e2a SHA256 5c961061f2e057b2258f55323c0d618006abf9039816d3811064ca0f6fa84911 EBUILD powertop-1.13.ebuild 1121 RMD160 6e9e4a84aaf6b643a4cd83f28516b0e51d36d5e9 SHA1 84deca5fe572d0820751741fb8c5bf8c114e33b4 SHA256 ad10c47049432ef0f9047eee7c5c6db033843f699cd2003c5b087169a296a030 -EBUILD powertop-9999.ebuild 1024 RMD160 a1a61de4008c99ada7c5dd3d3b26868eb54633d3 SHA1 55be0beca4242794653dbce4db8bb47922edca95 SHA256 856394133d10bef416177414c31322e47377d9f184f17c1b32c63aaa90833f39 -MISC ChangeLog 5464 RMD160 1ea395b4181c5e18a87e7b6ec891cc0250f003e4 SHA1 ef12867b497c1fcaad01c7fbb8357afbf5c77725 SHA256 d22f355f794a25688115969e6f10fccb16ac8b0b4952ad1f2b7c68e2a7c5d45e +EBUILD powertop-1.97.ebuild 1138 RMD160 26a371e2468f3d90202f30a92d7a7aa0830045eb SHA1 d3fc33df75ee4c9e19ccba7f8118557bcee7a1db SHA256 3301f27af8a5c6256a8dab289b52db2fd11c9feefcb1aa5fb91de05378dd7acd +EBUILD powertop-9999.ebuild 1130 RMD160 92fc02220c122349703eb057aecb7b2b220d4d2f SHA1 d9c9929dbde7a799a6da883d405d70128d9e7369 SHA256 f39a6b352d1844a32c4b9c79668e1f2dcbe921a01c02b0fd3c1b7c83d33c8d91 +MISC ChangeLog 5750 RMD160 634f71c07246f4327e24b9e7051e40cbee773829 SHA1 139f933099a84b2a7df00919f95a5f790b45157f SHA256 5e6a854c3e8fd05bfc889887a2969672f052cc0bd1ab285f9f28a157b8b437af MISC metadata.xml 161 RMD160 a5e1f234c4886ff31d39f229a0cf30d0bfcea869 SHA1 3876fd42cd9e63a7edb04c5025d53d773aa80bc3 SHA256 838bd208a7f948ea9b4e2b8869464622bc64a2f02468de4c3d7f6c2530e28e89 diff --git a/sys-power/powertop/powertop-1.97.ebuild b/sys-power/powertop/powertop-1.97.ebuild new file mode 100644 index 000000000000..2a1a834c1702 --- /dev/null +++ b/sys-power/powertop/powertop-1.97.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/powertop-1.97.ebuild,v 1.1 2011/03/14 09:45:03 scarabeus Exp $ + +EAPI=4 + +inherit eutils + +DESCRIPTION="tool that helps you find what software is using the most power" +HOMEPAGE="http://www.lesswatts.org/projects/powertop/" +SRC_URI="mirror://kernel/linux/status/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="unicode" + +DEPEND="sys-libs/ncurses[unicode?] + dev-libs/libnl + sys-devel/gettext" +RDEPEND="${DEPEND}" + +src_prepare() { + use unicode || sed -i 's:-lncursesw:-lncurses:' Makefile + # fix ldflags + sed -i \ + -e 's:g++ $(OBJS) $(LIBS) -o powertop:$(CXX) $(LDFLAGS) $(OBJS) $(LIBS) -o powertop:' \ + -e 's:gcc:$(CC):' \ + Makefile || die +} + +src_install() { + emake install DESTDIR="${ED}" + dodoc TODO 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 +} diff --git a/sys-power/powertop/powertop-9999.ebuild b/sys-power/powertop/powertop-9999.ebuild index 48ae5db3e7ba..0bcb6849671b 100644 --- a/sys-power/powertop/powertop-9999.ebuild +++ b/sys-power/powertop/powertop-9999.ebuild @@ -1,15 +1,15 @@ # Copyright 1999-2011 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.2 2011/01/26 10:44:34 bangert Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/powertop-9999.ebuild,v 1.3 2011/03/14 09:45:03 scarabeus Exp $ -EAPI=3 +EAPI=4 -inherit git toolchain-funcs eutils +inherit 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.kernel.org/pub/scm/status/powertop/powertop.git" +SRC_URI="" LICENSE="GPL-2" SLOT="0" @@ -17,20 +17,22 @@ KEYWORDS="" IUSE="unicode" DEPEND="sys-libs/ncurses[unicode?] + dev-libs/libnl sys-devel/gettext" RDEPEND="${DEPEND}" src_prepare() { use unicode || sed -i 's:-lncursesw:-lncurses:' Makefile -} - -src_configure() { - tc-export CC + # fix ldflags + sed -i \ + -e 's:g++ $(OBJS) $(LIBS) -o powertop:$(CXX) $(LDFLAGS) $(OBJS) $(LIBS) -o powertop:' \ + -e 's:gcc:$(CC):' \ + Makefile || die } src_install() { - emake install DESTDIR="${ED}" || die - dodoc Changelog README + emake install DESTDIR="${ED}" + dodoc TODO README gunzip "${ED}"/usr/share/man/man1/powertop.1.gz } -- cgit v1.2.3-65-gdbad