summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-08-23 22:14:16 +0000
committerMike Frysinger <vapier@gentoo.org>2011-08-23 22:14:16 +0000
commit37a758fd9e635cc0a89ce033d99b2bded01da576 (patch)
tree493ccfda4a8373400f28c493b4e5756e223d0711 /sys-power
parentAdd dependency on kde-base/kdebase-kioslaves, bug 374399 (diff)
downloadgentoo-2-37a758fd9e635cc0a89ce033d99b2bded01da576.tar.gz
gentoo-2-37a758fd9e635cc0a89ce033d99b2bded01da576.tar.bz2
gentoo-2-37a758fd9e635cc0a89ce033d99b2bded01da576.zip
Version bump and merging of live/release ebuilds.
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/powertop/ChangeLog9
-rw-r--r--sys-power/powertop/files/powertop-1.98-build-cc.patch28
-rw-r--r--sys-power/powertop/files/powertop-1.98-build.patch26
-rw-r--r--sys-power/powertop/powertop-1.98.ebuild64
-rw-r--r--sys-power/powertop/powertop-9999.ebuild30
5 files changed, 144 insertions, 13 deletions
diff --git a/sys-power/powertop/ChangeLog b/sys-power/powertop/ChangeLog
index d0db2ff12231..d0a77f446db4 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.45 2011/05/03 11:34:23 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/ChangeLog,v 1.46 2011/08/23 22:14:16 vapier Exp $
+
+*powertop-1.98 (23 Aug 2011)
+
+ 23 Aug 2011; Mike Frysinger <vapier@gentoo.org> +powertop-1.98.ebuild,
+ +files/powertop-1.98-build.patch, +files/powertop-1.98-build-cc.patch,
+ powertop-9999.ebuild:
+ Version bump and merging of live/release ebuilds.
03 May 2011; Tomáš Chvátal <scarabeus@gentoo.org> powertop-9999.ebuild:
Move to git-2 and use eapi4 features more nicely.
diff --git a/sys-power/powertop/files/powertop-1.98-build-cc.patch b/sys-power/powertop/files/powertop-1.98-build-cc.patch
new file mode 100644
index 000000000000..70beb81db3ba
--- /dev/null
+++ b/sys-power/powertop/files/powertop-1.98-build-cc.patch
@@ -0,0 +1,28 @@
+From e2a8efc2d349880833215ccbe9ac6cb80cdfe5d0 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Tue, 23 Aug 2011 18:03:38 -0400
+Subject: [PATCH] allow control over the build compiler
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ Makefile | 3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index f637bfe..75e6e63 100644
+--- a/Makefile
++++ b/Makefile
+@@ -80,8 +80,9 @@ install: powertop
+ @(cd po/ && env LOCALESDIR=$(LOCALESDIR) DESTDIR=$(DESTDIR) $(MAKE) $@)
+
+
++BUILD_CC ?= gcc
+ csstoh: csstoh.c
+- gcc -o csstoh csstoh.c
++ $(BUILD_CC) -o csstoh csstoh.c
+
+ css.h: csstoh powertop.css
+ ./csstoh powertop.css css.h
+--
+1.7.6
+
diff --git a/sys-power/powertop/files/powertop-1.98-build.patch b/sys-power/powertop/files/powertop-1.98-build.patch
new file mode 100644
index 000000000000..cebb09f4ee3d
--- /dev/null
+++ b/sys-power/powertop/files/powertop-1.98-build.patch
@@ -0,0 +1,26 @@
+From f60a30a247fd1bfdd58de42934937a861e4b927a Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Tue, 23 Aug 2011 18:01:36 -0400
+Subject: [PATCH] use CFLAGS/LDFLAGS when linking
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ Makefile | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index b0b6cb7..f637bfe 100644
+--- a/Makefile
++++ b/Makefile
+@@ -70,7 +70,7 @@ clean:
+ rm -f *.o *~ powertop DEADJOE core.* */*.o */*~ csstoh css.h
+
+ powertop: $(OBJS) $(HEADERS)
+- $(CXX) $(OBJS) $(LIBS) -o powertop
++ $(CXX) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o powertop
+ @(cd po/ && $(MAKE))
+
+ install: powertop
+--
+1.7.6
+
diff --git a/sys-power/powertop/powertop-1.98.ebuild b/sys-power/powertop/powertop-1.98.ebuild
new file mode 100644
index 000000000000..9e7c34dc1b6e
--- /dev/null
+++ b/sys-power/powertop/powertop-1.98.ebuild
@@ -0,0 +1,64 @@
+# 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.98.ebuild,v 1.1 2011/08/23 22:14:16 vapier Exp $
+
+EAPI="4"
+
+inherit eutils toolchain-funcs
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.kernel.org/pub/scm/status/powertop/powertop.git"
+ inherit git-2
+ SRC_URI=""
+else
+ SRC_URI="mirror://kernel/linux/status/${PN}/${P}.tar.bz2"
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+fi
+
+DESCRIPTION="tool that helps you find what software is using the most power"
+HOMEPAGE="http://www.lesswatts.org/projects/powertop/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="unicode"
+
+DEPEND="
+ dev-libs/libnl
+ sys-apps/pciutils
+ sys-devel/gettext
+ sys-libs/ncurses[unicode?]
+ sys-libs/zlib
+"
+RDEPEND="
+ ${DEPEND}
+ net-wireless/bluez
+ x11-apps/xset
+"
+
+DOCS=( TODO README )
+
+src_prepare() {
+ use unicode || sed -i 's:-lncursesw:-lncurses:' Makefile
+ epatch "${FILESDIR}"/${PN}-1.98-build.patch
+ epatch "${FILESDIR}"/${PN}-1.98-build-cc.patch
+ sed -i -r \
+ -e '/FLAGS/s: (-O2|-g|-fno-omit-frame-pointer|-fstack-protector|-D_FORTIFY_SOURCE=2)\>: :g' \
+ -e '/@\$\(CC\)/s:@::' \
+ Makefile || die
+}
+
+src_configure() {
+ tc-export BUILD_CC CC CXX
+ CFLAGS+=" ${CPPFLAGS}" # blah!
+}
+
+src_install() {
+ default
+ keepdir /var/cache/powertop
+}
+
+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 8932a3a594c0..c70e4ee7bf9a 100644
--- a/sys-power/powertop/powertop-9999.ebuild
+++ b/sys-power/powertop/powertop-9999.ebuild
@@ -1,19 +1,24 @@
# 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.6 2011/05/03 11:34:23 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/powertop-9999.ebuild,v 1.7 2011/08/23 22:14:16 vapier Exp $
-EAPI=4
+EAPI="4"
-inherit eutils toolchain-funcs git-2
+inherit eutils toolchain-funcs
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.kernel.org/pub/scm/status/powertop/powertop.git"
+ inherit git-2
+ SRC_URI=""
+else
+ SRC_URI="mirror://kernel/linux/status/${PN}/${P}.tar.bz2"
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+fi
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"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS=""
IUSE="unicode"
DEPEND="
@@ -33,16 +38,17 @@ DOCS=( TODO README )
src_prepare() {
use unicode || sed -i 's:-lncursesw:-lncurses:' Makefile
- # fix ldflags
- sed -i \
- -e '/-o powertop/s:g++:$(CXX) $(CFLAGS) $(LDFLAGS):' \
- -e 's: -O2 -g -fno-omit-frame-pointer -fstack-protector::g' \
- -e 's:gcc:$(CC) $(CFLAGS):' \
+ epatch "${FILESDIR}"/${PN}-1.98-build.patch
+ epatch "${FILESDIR}"/${PN}-1.98-build-cc.patch
+ sed -i -r \
+ -e '/FLAGS/s: (-O2|-g|-fno-omit-frame-pointer|-fstack-protector|-D_FORTIFY_SOURCE=2)\>: :g' \
+ -e '/@\$\(CC\)/s:@::' \
Makefile || die
}
src_configure() {
- tc-export CC CXX
+ tc-export BUILD_CC CC CXX
+ CFLAGS+=" ${CPPFLAGS}" # blah!
}
src_install() {