[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/, sys-power/powertop/files/

2018-06-18 Thread Mike Frysinger
commit: b58dab88294efd16e05c66a751d606235b103dbf
Author: Zentaro Kavanagh  chromium  org>
AuthorDate: Thu Jun 14 20:40:54 2018 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Mon Jun 18 14:54:21 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b58dab88

sys-power/powertop: Support ncurses with tinfo

- Patches the configure.ac to fix bug getting libs from pkg-config
- Previous code matched only when both ncursesw and ncurses existed
- Used wrong variable when concatenating to LIBS
- Concatenating to LIBS was redundant anyway since it is done in
  makefile.am
- Upstream patch sent to powertop mailing list [1]

Url: https://lists.01.org/pipermail/powertop/2018-June/002021.html [1]

 .../files/powertop-2.8-ncurses_tinfo.patch | 41 ++
 sys-power/powertop/powertop-2.8.ebuild | 11 +++---
 sys-power/powertop/powertop-2.9.ebuild |  8 +++--
 3 files changed, 52 insertions(+), 8 deletions(-)

diff --git a/sys-power/powertop/files/powertop-2.8-ncurses_tinfo.patch 
b/sys-power/powertop/files/powertop-2.8-ncurses_tinfo.patch
new file mode 100644
index 000..97769fb6728
--- /dev/null
+++ b/sys-power/powertop/files/powertop-2.8-ncurses_tinfo.patch
@@ -0,0 +1,41 @@
+From e1295099f8b42670718ba875cb6749a90042293f Mon Sep 17 00:00:00 2001
+From: Zentaro Kavanagh 
+Date: Thu, 14 Jun 2018 13:13:37 -0700
+Subject: [PATCH] Fix configure to support ncurses w/ tinfo
+
+- The existing code checked for both ncursesw and ncurses and if
+  both were not found, NCURSES_LIBS was not set correctly.
+- Removed redundant concatenation to $LIBS since the makefile.am
+  already maps NCURSES_LIBS into LIBS.
+- Patch sent upstream to powertop mailing list [1]
+
+[1] - https://lists.01.org/pipermail/powertop/2018-June/002021.html
+---
+ configure.ac | 11 +++
+ 1 file changed, 7 insertions(+), 4 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index d6a15e1..c6ee50a 100644
+--- a/configure.ac
 b/configure.ac
+@@ -110,10 +110,13 @@ AC_CHECK_FUNCS([ \
+ 
+ AC_SEARCH_LIBS([clock_gettime], [rt])
+ 
+-PKG_CHECK_MODULES([NCURSES], [ncursesw ncurses], [LIBS="$LIBS 
$ncurses_LIBS"], [
+-  AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], [
+-  AC_MSG_ERROR([ncurses is required but was not found])
+-  ], [])
++PKG_CHECK_MODULES([ncursesw], [ncursesw],
++  [NCURSES_CFLAGS="$ncursesw_CFLAGS"; NCURSES_LIBS="$ncursesw_LIBS"], [
++  PKG_CHECK_MODULES([NCURSES], [ncurses], [], [
++  AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], [
++  AC_MSG_ERROR([ncurses is required but was not found])
++  ])
++  ])
+ ])
+ 
+ has_libpci=0
+-- 
+2.18.0.rc1.242.g61856ae69a-goog
+

diff --git a/sys-power/powertop/powertop-2.8.ebuild 
b/sys-power/powertop/powertop-2.8.ebuild
index e0975e47ca8..2ec905b8419 100644
--- a/sys-power/powertop/powertop-2.8.ebuild
+++ b/sys-power/powertop/powertop-2.8.ebuild
@@ -3,7 +3,7 @@
 
 EAPI="5"
 
-inherit eutils linux-info
+inherit eutils linux-info autotools
 SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz;
 KEYWORDS="amd64 arm ppc sparc x86 ~amd64-linux ~x86-linux"
 
@@ -91,11 +91,10 @@ pkg_setup() {
 }
 
 src_prepare() {
-   if [[ ${PV} == "" ]] ; then
-   eautoreconf
-   else
-   default
-   fi
+   epatch "${FILESDIR}"/${P}-ncurses_tinfo.patch
+
+   # Call eautoreconf since ncurses patch touches configure.ac.
+   eautoreconf
 }
 
 src_configure() {

diff --git a/sys-power/powertop/powertop-2.9.ebuild 
b/sys-power/powertop/powertop-2.9.ebuild
index cf837648689..d9536ebd1e0 100644
--- a/sys-power/powertop/powertop-2.9.ebuild
+++ b/sys-power/powertop/powertop-2.9.ebuild
@@ -3,7 +3,7 @@
 
 EAPI="6"
 
-inherit eutils linux-info
+inherit eutils linux-info autotools
 if [[ ${PV} == "" ]] ; then
EGIT_REPO_URI="https://github.com/fenrus75/powertop.git;
inherit git-r3 autotools
@@ -40,6 +40,7 @@ RDEPEND="
 
 PATCHES=(
"${FILESDIR}"/${P}-libc++.patch
+   "${FILESDIR}"/${PN}-2.8-ncurses_tinfo.patch
 )
 
 pkg_setup() {
@@ -105,8 +106,11 @@ src_prepare() {
if [[ ${PV} == "" ]] ; then
chmod +x scripts/version || die "Failed to make 
'scripts/version' executable"
scripts/version || die "Failed to extract version information"
-   eautoreconf
fi
+
+   # Call eautoreconf since ncurses patch touches configure.ac.
+   $(which aclocal) --install -Im4 2>/dev/null #599114
+   eautoreconf
 }
 
 src_configure() {



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2018-06-04 Thread Mart Raudsepp
commit: 7f5198e060a8e56f22f96692605ea86e231b4721
Author: Alex Bennée  linaro  org>
AuthorDate: Fri May 18 09:25:24 2018 +
Commit: Mart Raudsepp  gentoo  org>
CommitDate: Mon Jun  4 18:57:09 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f5198e0

sys-power/powertop: add ~arm64 keyword

 sys-power/powertop/powertop-2.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-power/powertop/powertop-2.9.ebuild 
b/sys-power/powertop/powertop-2.9.ebuild
index a6209f4b950..cf837648689 100644
--- a/sys-power/powertop/powertop-2.9.ebuild
+++ b/sys-power/powertop/powertop-2.9.ebuild
@@ -11,7 +11,7 @@ if [[ ${PV} == "" ]] ; then
 else
MY_P="${PN}-v${PV}"

SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${MY_P}.tar.gz;
-   KEYWORDS="amd64 arm ppc sparc x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="amd64 arm ~arm64 ppc sparc x86 ~amd64-linux ~x86-linux"
S="${WORKDIR}/${MY_P}"
 fi
 



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2018-05-26 Thread Mikle Kolyada
commit: adabfe2142b9ff12af9daaca3a2251c4801a1c5b
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sat May 26 07:53:37 2018 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sat May 26 07:53:37 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adabfe21

sys-power/powertop: ppc stable wrt bug #651612

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-power/powertop/powertop-2.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-power/powertop/powertop-2.9.ebuild 
b/sys-power/powertop/powertop-2.9.ebuild
index 4435eff8355..a6209f4b950 100644
--- a/sys-power/powertop/powertop-2.9.ebuild
+++ b/sys-power/powertop/powertop-2.9.ebuild
@@ -11,7 +11,7 @@ if [[ ${PV} == "" ]] ; then
 else
MY_P="${PN}-v${PV}"

SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${MY_P}.tar.gz;
-   KEYWORDS="amd64 arm ~ppc sparc x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="amd64 arm ppc sparc x86 ~amd64-linux ~x86-linux"
S="${WORKDIR}/${MY_P}"
 fi
 



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2018-04-21 Thread Mikle Kolyada
commit: 9e2e600941349005d34b90cdc32d1b4007c06e15
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sat Apr 21 11:55:47 2018 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sat Apr 21 11:55:47 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e2e6009

sys-power/powertop: arm stable wrt bug #651612

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-power/powertop/powertop-2.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-power/powertop/powertop-2.9.ebuild 
b/sys-power/powertop/powertop-2.9.ebuild
index 74ac81bb587..4435eff8355 100644
--- a/sys-power/powertop/powertop-2.9.ebuild
+++ b/sys-power/powertop/powertop-2.9.ebuild
@@ -11,7 +11,7 @@ if [[ ${PV} == "" ]] ; then
 else
MY_P="${PN}-v${PV}"

SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${MY_P}.tar.gz;
-   KEYWORDS="amd64 ~arm ~ppc sparc x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="amd64 arm ~ppc sparc x86 ~amd64-linux ~x86-linux"
S="${WORKDIR}/${MY_P}"
 fi
 



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2018-04-16 Thread Sergei Trofimovich
commit: e89db8026e8f0e7050a6f6512372c640fca97e45
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Mon Apr 16 16:44:40 2018 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon Apr 16 18:35:28 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e89db802

sys-power/powertop: stable 2.9 for sparc

Bug: https://bugs.gentoo.org/651612
Package-Manager: Portage-2.3.24, Repoman-2.3.6
RepoMan-Options: --include-arches="sparc"

 sys-power/powertop/powertop-2.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-power/powertop/powertop-2.9.ebuild 
b/sys-power/powertop/powertop-2.9.ebuild
index f78a9b404c0..74ac81bb587 100644
--- a/sys-power/powertop/powertop-2.9.ebuild
+++ b/sys-power/powertop/powertop-2.9.ebuild
@@ -11,7 +11,7 @@ if [[ ${PV} == "" ]] ; then
 else
MY_P="${PN}-v${PV}"

SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${MY_P}.tar.gz;
-   KEYWORDS="amd64 ~arm ~ppc ~sparc x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="amd64 ~arm ~ppc sparc x86 ~amd64-linux ~x86-linux"
S="${WORKDIR}/${MY_P}"
 fi
 



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2018-04-15 Thread Thomas Deutschmann
commit: 18fadfe0350241a75aca9082458783cc87eb6504
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Sun Apr 15 18:55:42 2018 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Sun Apr 15 18:57:54 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18fadfe0

sys-power/powertop: x86 stable (bug #651612)

Package-Manager: Portage-2.3.28, Repoman-2.3.9

 sys-power/powertop/powertop-2.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-power/powertop/powertop-2.9.ebuild 
b/sys-power/powertop/powertop-2.9.ebuild
index 1ca9db17e9c..f78a9b404c0 100644
--- a/sys-power/powertop/powertop-2.9.ebuild
+++ b/sys-power/powertop/powertop-2.9.ebuild
@@ -11,7 +11,7 @@ if [[ ${PV} == "" ]] ; then
 else
MY_P="${PN}-v${PV}"

SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${MY_P}.tar.gz;
-   KEYWORDS="amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="amd64 ~arm ~ppc ~sparc x86 ~amd64-linux ~x86-linux"
S="${WORKDIR}/${MY_P}"
 fi
 



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2018-04-14 Thread Aaron Bauman
commit: b5b27aa64c909cbd5ffb2d2e5bed35fc7750d1b6
Author: Aaron Bauman  gentoo  org>
AuthorDate: Sat Apr 14 17:44:48 2018 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Sat Apr 14 17:46:19 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5b27aa6

sys-power/powertop: amd64 stable

Bug: https://bugs.gentoo.org/651612
Package-Manager: Portage-2.3.28, Repoman-2.3.9

 sys-power/powertop/powertop-2.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-power/powertop/powertop-2.9.ebuild 
b/sys-power/powertop/powertop-2.9.ebuild
index a46c1a302cb..1ca9db17e9c 100644
--- a/sys-power/powertop/powertop-2.9.ebuild
+++ b/sys-power/powertop/powertop-2.9.ebuild
@@ -11,7 +11,7 @@ if [[ ${PV} == "" ]] ; then
 else
MY_P="${PN}-v${PV}"

SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${MY_P}.tar.gz;
-   KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
S="${WORKDIR}/${MY_P}"
 fi
 



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/, sys-power/powertop/files/

2018-01-24 Thread Mike Frysinger
commit: 56d45d2e211908e6a4055c67d798c2a90395e77d
Author: Mike Frysinger  chromium  org>
AuthorDate: Wed Jan 24 23:34:54 2018 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Wed Jan 24 23:34:54 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56d45d2e

sys-power/powertop: version bump to 2.9 #637342

 sys-power/powertop/Manifest|  1 +
 sys-power/powertop/files/powertop-2.9-libc++.patch | 44 ++
 .../{powertop-.ebuild => powertop-2.9.ebuild}  | 10 -
 sys-power/powertop/powertop-.ebuild|  6 ++-
 4 files changed, 57 insertions(+), 4 deletions(-)

diff --git a/sys-power/powertop/Manifest b/sys-power/powertop/Manifest
index 25ec6b5378f..c0cd2b6155f 100644
--- a/sys-power/powertop/Manifest
+++ b/sys-power/powertop/Manifest
@@ -1 +1,2 @@
 DIST powertop-2.8.tar.gz 67 BLAKE2B 
4259f462d36fe0cbb157859d6e1d3e1face67f7232fe8d4112d77f844b545f49e9cf486e21bcbc34f64ffb0c891c1864141784dde14e3a96647d6535641a840a
 SHA512 
253d0e15f0972cf8639735c510f4884d49a0da76c31dd2f39603e2297e6c6f0b9fa283c7b3cb04a431c91f8296275c0adaecc4c3e9ea132c0c31064f7f432c80
+DIST powertop-v2.9.tar.gz 718763 BLAKE2B 
bb6ce789614397b02f0e9f1cb71585cb456c1428cc43e9fe1c4b3bc9f96171fede4c587410e78e58ad8d0b0f772549a93f454bcd1b521e6dd3c809a85dc3cf30
 SHA512 
783af538c44e3fae7215a5b4247eb32a72e02150b3f297e6b9777a450823dd30aca014601892c0e80937a366eed95b42b622c68161d53e905ad4fbcb574b26f5

diff --git a/sys-power/powertop/files/powertop-2.9-libc++.patch 
b/sys-power/powertop/files/powertop-2.9-libc++.patch
new file mode 100644
index 000..d378280f3c6
--- /dev/null
+++ b/sys-power/powertop/files/powertop-2.9-libc++.patch
@@ -0,0 +1,44 @@
+https://github.com/fenrus75/powertop/commit/b9c431aad6cc5383c9571007469eee8e64ec85a6
+
+From b9c431aad6cc5383c9571007469eee8e64ec85a6 Mon Sep 17 00:00:00 2001
+From: Manoj Gupta 
+Date: Sat, 4 Nov 2017 13:44:04 -0700
+Subject: [PATCH] Fix powertop build with libc++.
+
+ header is not automatically included with libc++.
+Add it explicitly to make powertop build with libc++.
+
+This fixes the following errors:
+devices/gpu_rapl_device.cpp:35:14: error: use of undeclared identifier
+'time'; did you mean 'tie'?
+last_time = time(NULL);
+^~~~
+devices/gpu_rapl_device.cpp:45:14: error:use of undeclared identifier
+'time'; did you mean 'tie'?
+last_time = time(NULL);
+^~~~
+
+parameters/learn.cpp:161:10: error: use of undeclared identifier
+'time'; did you mean 'tie'?
+start =time(NULL);
+^~~~
+---
+ src/lib.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/lib.h b/src/lib.h
+index b64bb0f5433f..6d85eb6e4b40 100644
+--- a/src/lib.h
 b/src/lib.h
+@@ -54,7 +54,7 @@ extern const char *kernel_function(uint64_t address);
+ 
+ 
+ 
+-
++#include 
+ #include 
+ using namespace std;
+ 
+-- 
+2.15.1
+

diff --git a/sys-power/powertop/powertop-.ebuild 
b/sys-power/powertop/powertop-2.9.ebuild
similarity index 94%
copy from sys-power/powertop/powertop-.ebuild
copy to sys-power/powertop/powertop-2.9.ebuild
index 923a9055543..a46c1a302cb 100644
--- a/sys-power/powertop/powertop-.ebuild
+++ b/sys-power/powertop/powertop-2.9.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -9,8 +9,10 @@ if [[ ${PV} == "" ]] ; then
inherit git-r3 autotools
SRC_URI=""
 else
-   SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz;
+   MY_P="${PN}-v${PV}"
+   
SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${MY_P}.tar.gz;
KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
+   S="${WORKDIR}/${MY_P}"
 fi
 
 DESCRIPTION="tool that helps you find what software is using the most power"
@@ -36,6 +38,10 @@ RDEPEND="
virtual/libintl
 "
 
+PATCHES=(
+   "${FILESDIR}"/${P}-libc++.patch
+)
+
 pkg_setup() {
CONFIG_CHECK="
~X86_MSR

diff --git a/sys-power/powertop/powertop-.ebuild 
b/sys-power/powertop/powertop-.ebuild
index 923a9055543..62872e31be8 100644
--- a/sys-power/powertop/powertop-.ebuild
+++ b/sys-power/powertop/powertop-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -9,8 +9,10 @@ if [[ ${PV} == "" ]] ; then
inherit git-r3 autotools
SRC_URI=""
 else
-   SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz;
+   MY_P="${PN}-v${PV}"
+   
SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${MY_P}.tar.gz;
KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
+   S="${WORKDIR}/${MY_P}"
 fi
 
 DESCRIPTION="tool that helps you find what software is 

[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2018-01-24 Thread Mike Frysinger
commit: 5356a6ae47841e901c95add5adee87dd49f2ba74
Author: Mike Frysinger  gentoo  org>
AuthorDate: Wed Jan 24 23:24:37 2018 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Wed Jan 24 23:25:26 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5356a6ae

sys-power/powertop: only check TIMER_STATS on https://bugs.gentoo.org/629908

 sys-power/powertop/powertop-2.8.ebuild  | 9 ++---
 sys-power/powertop/powertop-.ebuild | 9 ++---
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/sys-power/powertop/powertop-2.8.ebuild 
b/sys-power/powertop/powertop-2.8.ebuild
index ab67bbf8ed9..e0975e47ca8 100644
--- a/sys-power/powertop/powertop-2.8.ebuild
+++ b/sys-power/powertop/powertop-2.8.ebuild
@@ -45,7 +45,6 @@ pkg_setup() {
~CPU_FREQ_GOV_ONDEMAND
~FTRACE
~BLK_DEV_IO_TRACE
-   ~TIMER_STATS
~TRACING
"
ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost 
certainly need it"
@@ -58,8 +57,7 @@ pkg_setup() {
ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the 
kernel for full powertop function"
ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be 
enabled in the kernel for full powertop function"
ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable 
BLK_DEV_IO_TRACE"
-   ERROR_KERNEL_BLK_DEV_IO_TRACE="BLK_DEV_IO_TRACE needs to be turned on 
to enable TIMER_STATS, TRACING and EVENT_POWER_TRACING_DEPRECATED"
-   ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel 
for full powertop function"
+   ERROR_KERNEL_BLK_DEV_IO_TRACE="BLK_DEV_IO_TRACE needs to be turned on 
to enable other config options"
ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full 
powertop function"
linux-info_pkg_setup
if linux_config_exists; then
@@ -84,6 +82,11 @@ pkg_setup() {
ERROR_KERNEL_PM="PM should be enabled in the kernel for 
full powertop function"
check_extra_config
fi
+   if kernel_is -lt 4 11; then
+   CONFIG_CHECK="~TIMER_STATS"
+   ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled 
in the kernel for full powertop function"
+   check_extra_config
+   fi
fi
 }
 

diff --git a/sys-power/powertop/powertop-.ebuild 
b/sys-power/powertop/powertop-.ebuild
index 8d4d40d26b9..923a9055543 100644
--- a/sys-power/powertop/powertop-.ebuild
+++ b/sys-power/powertop/powertop-.ebuild
@@ -49,7 +49,6 @@ pkg_setup() {
~CPU_FREQ_GOV_ONDEMAND
~FTRACE
~BLK_DEV_IO_TRACE
-   ~TIMER_STATS
~TRACING
"
ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost 
certainly need it"
@@ -62,8 +61,7 @@ pkg_setup() {
ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the 
kernel for full powertop function"
ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be 
enabled in the kernel for full powertop function"
ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable 
BLK_DEV_IO_TRACE"
-   ERROR_KERNEL_BLK_DEV_IO_TRACE="BLK_DEV_IO_TRACE needs to be turned on 
to enable TIMER_STATS, TRACING and EVENT_POWER_TRACING_DEPRECATED"
-   ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel 
for full powertop function"
+   ERROR_KERNEL_BLK_DEV_IO_TRACE="BLK_DEV_IO_TRACE needs to be turned on 
to enable other config options"
ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full 
powertop function"
linux-info_pkg_setup
if linux_config_exists; then
@@ -88,6 +86,11 @@ pkg_setup() {
ERROR_KERNEL_PM="PM should be enabled in the kernel for 
full powertop function"
check_extra_config
fi
+   if kernel_is -lt 4 11; then
+   CONFIG_CHECK="~TIMER_STATS"
+   ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled 
in the kernel for full powertop function"
+   check_extra_config
+   fi
fi
 }
 



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/files/

2017-12-11 Thread Michael Weber
commit: d8bd45c4b449e49f6582153f721a208308b0ee1d
Author: Michael Weber  gentoo  org>
AuthorDate: Mon Dec 11 10:36:16 2017 +
Commit: Michael Weber  gentoo  org>
CommitDate: Mon Dec 11 10:36:27 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8bd45c4

sys-power/powertop: Remove unreferenced patch from FILESDIR.

Closes: https://github.com/gentoo/gentoo/pull/6475
Package-Manager: Portage-2.3.17, Repoman-2.3.6

 sys-power/powertop/files/powertop-2.4-tinfo.patch | 11 ---
 1 file changed, 11 deletions(-)

diff --git a/sys-power/powertop/files/powertop-2.4-tinfo.patch 
b/sys-power/powertop/files/powertop-2.4-tinfo.patch
deleted file mode 100644
index b965d8e06a5..000
--- a/sys-power/powertop/files/powertop-2.4-tinfo.patch
+++ /dev/null
@@ -1,11 +0,0 @@
 a/configure.ac
-+++ b/configure.ac
-@@ -46,7 +46,7 @@
- AC_FUNC_STRTOD
- AC_CHECK_FUNCS([fdatasync getpagesize gettimeofday memmove memset mkdir 
munmap pow realpath regcomp select setlocale socket sqrt strcasecmp strchr 
strdup strerror strncasecmp strstr strtoul strtoull])
- 
--AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], AC_MSG_ERROR([ncurses is 
required but was not found]), [])
-+PKG_CHECK_MODULES(ncurses, ncurses, [LIBS="$LIBS $ncurses_LIBS"], 
AC_MSG_ERROR([ncurses is required but was not found]))
- 
- has_libpci=0
- PKG_CHECK_MODULES([PCIUTILS], [libpci],[has_libpci=1],[



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2017-12-04 Thread Richard Farina
commit: bf72c9fcc4e4c988901106dab6bc6e6e048a348c
Author: Zero_Chaos  gentoo  org>
AuthorDate: Mon Dec  4 15:14:05 2017 +
Commit: Richard Farina  gentoo  org>
CommitDate: Mon Dec  4 15:15:58 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf72c9fc

sys-power/powertop: drop old 2.6

Package-Manager: Portage-2.3.16, Repoman-2.3.6

 sys-power/powertop/Manifest|   1 -
 sys-power/powertop/powertop-2.6.ebuild | 106 -
 2 files changed, 107 deletions(-)

diff --git a/sys-power/powertop/Manifest b/sys-power/powertop/Manifest
index 65494a6cea1..25ec6b5378f 100644
--- a/sys-power/powertop/Manifest
+++ b/sys-power/powertop/Manifest
@@ -1,2 +1 @@
-DIST powertop-2.6.tar.gz 3024009 SHA256 
3024c2b13c8f32cdac0b0ea9359eb5668dc9bd11776cf063481daa878533d1ee SHA512 
7c44b9c49f74d0f415d0332b60629940e05cf1c9170a9a7b98427da630c25c0cc9c8ece49e059ec8c665847ff03fa8a341e0cf8f7ca792d889f2c52a39ddbb62
 WHIRLPOOL 
eaa6e05d2fdb3050eb3a37f39fb5d760a8d3d91461b8c6f0ae825138080a0dd8a532e490a71246d62d2e340e3820b402d761a1331a6e7b6bc23db116c98cf0d9
 DIST powertop-2.8.tar.gz 67 BLAKE2B 
4259f462d36fe0cbb157859d6e1d3e1face67f7232fe8d4112d77f844b545f49e9cf486e21bcbc34f64ffb0c891c1864141784dde14e3a96647d6535641a840a
 SHA512 
253d0e15f0972cf8639735c510f4884d49a0da76c31dd2f39603e2297e6c6f0b9fa283c7b3cb04a431c91f8296275c0adaecc4c3e9ea132c0c31064f7f432c80

diff --git a/sys-power/powertop/powertop-2.6.ebuild 
b/sys-power/powertop/powertop-2.6.ebuild
deleted file mode 100644
index 05849a56292..000
--- a/sys-power/powertop/powertop-2.6.ebuild
+++ /dev/null
@@ -1,106 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit eutils linux-info autotools
-if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="https://github.com/fenrus75/powertop.git;
-   inherit git-2 autotools
-   SRC_URI=""
-else
-   SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz;
-   KEYWORDS="amd64 arm ppc sparc x86 ~amd64-linux ~x86-linux"
-fi
-
-DESCRIPTION="tool that helps you find what software is using the most power"
-HOMEPAGE="https://01.org/powertop/;
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="unicode X"
-
-COMMON_DEPEND="
-   dev-libs/libnl:3
-   sys-apps/pciutils
-   sys-libs/ncurses:*[unicode?]
-"
-
-DEPEND="${COMMON_DEPEND}
-   virtual/pkgconfig
-   sys-devel/gettext
-"
-RDEPEND="
-   ${COMMON_DEPEND}
-   X? ( x11-apps/xset )
-   virtual/libintl
-"
-
-DOCS=( TODO README )
-
-S="${WORKDIR}/${PN}"
-
-pkg_setup() {
-   CONFIG_CHECK="
-   ~X86_MSR
-   ~DEBUG_FS
-   ~PERF_EVENTS
-   ~TRACEPOINTS
-   ~NO_HZ
-   ~HIGH_RES_TIMERS
-   ~HPET_TIMER
-   ~CPU_FREQ_STAT
-   ~CPU_FREQ_GOV_ONDEMAND
-   ~FTRACE
-   ~BLK_DEV_IO_TRACE
-   ~TIMER_STATS
-   ~TRACING
-   "
-   ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost 
certainly need it"
-   ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you 
almost certainly need it"
-   ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel 
for full powertop function"
-   ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel 
for full powertop function"
-   ERROR_KERNEL_NO_HZ="NO_HZ should be enabled in the kernel for full 
powertop function"
-   ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the 
kernel for full powertop function"
-   ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for 
full powertop function"
-   ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the 
kernel for full powertop function"
-   ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be 
enabled in the kernel for full powertop function"
-   ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable 
BLK_DEV_IO_TRACE"
-   ERROR_KERNEL_BLK_DEV_IO_TRACE="BLK_DEV_IO_TRACE needs to be turned on 
to enable TIMER_STATS, TRACING and EVENT_POWER_TRACING_DEPRECATED"
-   ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel 
for full powertop function"
-   ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full 
powertop function"
-   linux-info_pkg_setup
-   if linux_config_exists; then
-   if kernel_is -lt 3 7 0; then
-   if linux_chkconfig_present SND_HDA_INTEL; then
-   CONFIG_CHECK="~SND_HDA_POWER_SAVE"
-   
ERROR_KERNEL_SND_HDA_POWER_SAVE="SND_HDA_POWER_SAVE should be enabled in the 
kernel for full powertop function"
-   check_extra_config
-   fi
-   fi
-   if kernel_is -lt 3 9 0; then
-   

[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2017-12-04 Thread Richard Farina
commit: 3ce99f9ba8ace8b032fa5246f30bba09bfeab483
Author: Zero_Chaos  gentoo  org>
AuthorDate: Mon Dec  4 15:15:29 2017 +
Commit: Richard Farina  gentoo  org>
CommitDate: Mon Dec  4 15:16:00 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ce99f9b

sys-power/powertop: remove warning from dead code

Package-Manager: Portage-2.3.16, Repoman-2.3.6

 sys-power/powertop/powertop-2.8.ebuild | 10 ++
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/sys-power/powertop/powertop-2.8.ebuild 
b/sys-power/powertop/powertop-2.8.ebuild
index d3d8039ade6..ab67bbf8ed9 100644
--- a/sys-power/powertop/powertop-2.8.ebuild
+++ b/sys-power/powertop/powertop-2.8.ebuild
@@ -4,14 +4,8 @@
 EAPI="5"
 
 inherit eutils linux-info
-if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="https://github.com/fenrus75/powertop.git;
-   inherit git-2 autotools
-   SRC_URI=""
-else
-   SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz;
-   KEYWORDS="amd64 arm ppc sparc x86 ~amd64-linux ~x86-linux"
-fi
+SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz;
+KEYWORDS="amd64 arm ppc sparc x86 ~amd64-linux ~x86-linux"
 
 DESCRIPTION="tool that helps you find what software is using the most power"
 HOMEPAGE="https://01.org/powertop/;



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2017-12-04 Thread Richard Farina
commit: d33bfed43ddf700a7668f4abcd77e2649a92b6d2
Author: Zero_Chaos  gentoo  org>
AuthorDate: Mon Dec  4 15:13:07 2017 +
Commit: Richard Farina  gentoo  org>
CommitDate: Mon Dec  4 15:15:56 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d33bfed4

sys-power/powertop: drop old and unused 1.x

Package-Manager: Portage-2.3.16, Repoman-2.3.6

 sys-power/powertop/Manifest |  3 +--
 sys-power/powertop/powertop-1.13.ebuild | 43 -
 2 files changed, 1 insertion(+), 45 deletions(-)

diff --git a/sys-power/powertop/Manifest b/sys-power/powertop/Manifest
index 80fbb4f41e2..65494a6cea1 100644
--- a/sys-power/powertop/Manifest
+++ b/sys-power/powertop/Manifest
@@ -1,3 +1,2 @@
-DIST powertop-1.13.tar.gz 104675 SHA256 
2bc866089496877dd26d2d316ad5763ab8ecb5e28aefba44bc5d355dcdc58d98 SHA512 
0c22a903da64798d987492336d57260372e03eab067ad94cf30b7640e9ee05e759a2fe9fa48fbdc35404cd2782b6b29d705e11e68452653b08f7f9df1a52be44
 WHIRLPOOL 
5ba44b84f49609f67c32563f75e20f6576c21a93fcb1ca99ebfe064475397602aa0f0fb9575e05b5a0290983791e7cf6ebae0139b39158b962e4b51027a6f5aa
 DIST powertop-2.6.tar.gz 3024009 SHA256 
3024c2b13c8f32cdac0b0ea9359eb5668dc9bd11776cf063481daa878533d1ee SHA512 
7c44b9c49f74d0f415d0332b60629940e05cf1c9170a9a7b98427da630c25c0cc9c8ece49e059ec8c665847ff03fa8a341e0cf8f7ca792d889f2c52a39ddbb62
 WHIRLPOOL 
eaa6e05d2fdb3050eb3a37f39fb5d760a8d3d91461b8c6f0ae825138080a0dd8a532e490a71246d62d2e340e3820b402d761a1331a6e7b6bc23db116c98cf0d9
-DIST powertop-2.8.tar.gz 67 SHA256 
a87b563f73106babfa3e74dcf92f252938c061e309ace20a361358bbfa579c5a SHA512 
253d0e15f0972cf8639735c510f4884d49a0da76c31dd2f39603e2297e6c6f0b9fa283c7b3cb04a431c91f8296275c0adaecc4c3e9ea132c0c31064f7f432c80
 WHIRLPOOL 
87b859b76395d6b1b380c7459b0d918713e94e8fc4ac40fde8b82f2112dec2df3caffb645b082cedd0bba5c232555de26e81fbe8dd3041875c32c864650ef132
+DIST powertop-2.8.tar.gz 67 BLAKE2B 
4259f462d36fe0cbb157859d6e1d3e1face67f7232fe8d4112d77f844b545f49e9cf486e21bcbc34f64ffb0c891c1864141784dde14e3a96647d6535641a840a
 SHA512 
253d0e15f0972cf8639735c510f4884d49a0da76c31dd2f39603e2297e6c6f0b9fa283c7b3cb04a431c91f8296275c0adaecc4c3e9ea132c0c31064f7f432c80

diff --git a/sys-power/powertop/powertop-1.13.ebuild 
b/sys-power/powertop/powertop-1.13.ebuild
deleted file mode 100644
index 2ed77ddd6c5..000
--- a/sys-power/powertop/powertop-1.13.ebuild
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=3
-
-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 ~amd64-linux ~x86-linux"
-IUSE="unicode"
-
-DEPEND="sys-libs/ncurses[unicode?]
-   sys-devel/gettext"
-RDEPEND="sys-libs/ncurses[unicode?]
-   virtual/libintl
-   sys-apps/pciutils"
-
-src_prepare() {
-   sed -i '/${CFLAGS}/s:$: ${LDFLAGS}:' Makefile
-   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
-}



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2017-07-30 Thread Michał Górny
commit: 0f5699ab6cfef65ec62603c75eeb58f61ea39ba8
Author: David Hicks  hicks  id  au>
AuthorDate: Sat Jul 29 11:04:24 2017 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Jul 30 09:15:51 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f5699ab

sys-power/powertop: use HTTPS for GitHub

Package-Manager: Portage-2.3.6, Repoman-2.3.3

 sys-power/powertop/powertop-2.6.ebuild  | 4 ++--
 sys-power/powertop/powertop-2.8.ebuild  | 2 +-
 sys-power/powertop/powertop-.ebuild | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys-power/powertop/powertop-2.6.ebuild 
b/sys-power/powertop/powertop-2.6.ebuild
index 23edcfe3716..05849a56292 100644
--- a/sys-power/powertop/powertop-2.6.ebuild
+++ b/sys-power/powertop/powertop-2.6.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
 
 inherit eutils linux-info autotools
 if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="git://github.com/fenrus75/powertop.git"
+   EGIT_REPO_URI="https://github.com/fenrus75/powertop.git;
inherit git-2 autotools
SRC_URI=""
 else

diff --git a/sys-power/powertop/powertop-2.8.ebuild 
b/sys-power/powertop/powertop-2.8.ebuild
index d206d473bc1..d3d8039ade6 100644
--- a/sys-power/powertop/powertop-2.8.ebuild
+++ b/sys-power/powertop/powertop-2.8.ebuild
@@ -5,7 +5,7 @@ EAPI="5"
 
 inherit eutils linux-info
 if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="git://github.com/fenrus75/powertop.git"
+   EGIT_REPO_URI="https://github.com/fenrus75/powertop.git;
inherit git-2 autotools
SRC_URI=""
 else

diff --git a/sys-power/powertop/powertop-.ebuild 
b/sys-power/powertop/powertop-.ebuild
index 69c60eb066c..8d4d40d26b9 100644
--- a/sys-power/powertop/powertop-.ebuild
+++ b/sys-power/powertop/powertop-.ebuild
@@ -5,7 +5,7 @@ EAPI="6"
 
 inherit eutils linux-info
 if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="git://github.com/fenrus75/powertop.git"
+   EGIT_REPO_URI="https://github.com/fenrus75/powertop.git;
inherit git-r3 autotools
SRC_URI=""
 else



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2017-06-04 Thread Michał Górny
commit: 67c474ad822b8c40640e65aceb1fe6dfbe6caa1f
Author: Elias Probst  eliasprobst  eu>
AuthorDate: Sun May 14 11:03:35 2017 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Jun  4 15:27:00 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67c474ad

sys-power/powertop: NO_HZ_IDLE replaces deprecated NO_HZ Kernel option

Per docs, NO_HZ_IDLE has replaced old behavior of NO_HZ in 3.10.

Bug: https://bugs.gentoo.org/575418
Closes: https://github.com/gentoo/gentoo/pull/4626
Package-Manager: Portage-2.3.5, Repoman-2.3.2

 sys-power/powertop/powertop-2.8.ebuild  | 4 ++--
 sys-power/powertop/powertop-.ebuild | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sys-power/powertop/powertop-2.8.ebuild 
b/sys-power/powertop/powertop-2.8.ebuild
index 78d95298754..d206d473bc1 100644
--- a/sys-power/powertop/powertop-2.8.ebuild
+++ b/sys-power/powertop/powertop-2.8.ebuild
@@ -44,7 +44,7 @@ pkg_setup() {
~DEBUG_FS
~PERF_EVENTS
~TRACEPOINTS
-   ~NO_HZ
+   ~NO_HZ_IDLE
~HIGH_RES_TIMERS
~HPET_TIMER
~CPU_FREQ_STAT
@@ -58,7 +58,7 @@ pkg_setup() {
ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you 
almost certainly need it"
ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel 
for full powertop function"
ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel 
for full powertop function"
-   ERROR_KERNEL_NO_HZ="NO_HZ should be enabled in the kernel for full 
powertop function"
+   ERROR_KERNEL_NO_HZ_IDLE="NO_HZ_IDLE should be enabled in the kernel for 
full powertop function"
ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the 
kernel for full powertop function"
ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for 
full powertop function"
ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the 
kernel for full powertop function"

diff --git a/sys-power/powertop/powertop-.ebuild 
b/sys-power/powertop/powertop-.ebuild
index 5535e7a1d2e..69c60eb066c 100644
--- a/sys-power/powertop/powertop-.ebuild
+++ b/sys-power/powertop/powertop-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -42,7 +42,7 @@ pkg_setup() {
~DEBUG_FS
~PERF_EVENTS
~TRACEPOINTS
-   ~NO_HZ
+   ~NO_HZ_IDLE
~HIGH_RES_TIMERS
~HPET_TIMER
~CPU_FREQ_STAT
@@ -56,7 +56,7 @@ pkg_setup() {
ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you 
almost certainly need it"
ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel 
for full powertop function"
ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel 
for full powertop function"
-   ERROR_KERNEL_NO_HZ="NO_HZ should be enabled in the kernel for full 
powertop function"
+   ERROR_KERNEL_NO_HZ_IDLE="NO_HZ_IDLE should be enabled in the kernel for 
full powertop function"
ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the 
kernel for full powertop function"
ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for 
full powertop function"
ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the 
kernel for full powertop function"



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2017-04-17 Thread Agostino Sarubbo
commit: 31a833c982f1b80d29e52e7ef0bbc2b6ba7b207b
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Apr 17 07:58:56 2017 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Apr 17 08:02:11 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31a833c9

sys-power/powertop: x86 stable wrt bug #614320

Package-Manager: Portage-2.3.3, Repoman-2.3.1
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 sys-power/powertop/powertop-2.8.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-power/powertop/powertop-2.8.ebuild 
b/sys-power/powertop/powertop-2.8.ebuild
index 8a16c7e1813..6b7cd4d5cc4 100644
--- a/sys-power/powertop/powertop-2.8.ebuild
+++ b/sys-power/powertop/powertop-2.8.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} == "" ]] ; then
SRC_URI=""
 else
SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz;
-   KEYWORDS="amd64 arm ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="amd64 arm ppc ~sparc x86 ~amd64-linux ~x86-linux"
 fi
 
 DESCRIPTION="tool that helps you find what software is using the most power"



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2017-04-05 Thread Agostino Sarubbo
commit: 9d563689044e21364b81eeefd87ef6875fea9724
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Wed Apr  5 12:54:18 2017 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Wed Apr  5 12:54:18 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d563689

sys-power/powertop: amd64 stable wrt bug #614320

Package-Manager: Portage-2.3.3, Repoman-2.3.1
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 sys-power/powertop/powertop-2.8.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-power/powertop/powertop-2.8.ebuild 
b/sys-power/powertop/powertop-2.8.ebuild
index 0fd176bd6f9..8a16c7e1813 100644
--- a/sys-power/powertop/powertop-2.8.ebuild
+++ b/sys-power/powertop/powertop-2.8.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} == "" ]] ; then
SRC_URI=""
 else
SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz;
-   KEYWORDS="~amd64 arm ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="amd64 arm ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
 fi
 
 DESCRIPTION="tool that helps you find what software is using the most power"



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2017-04-03 Thread Michael Weber
commit: 0e2903f2ad84a708e7f20bb17baffc17dd222d9f
Author: Michael Weber  gentoo  org>
AuthorDate: Mon Apr  3 21:26:02 2017 +
Commit: Michael Weber  gentoo  org>
CommitDate: Mon Apr  3 21:26:32 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e2903f2

sys-power/powertop: arm ppc stable (bug 614320).

Package-Manager: Portage-2.3.5, Repoman-2.3.2
RepoMan-Options: --include-arches="arm arm64 ppc ppc64"

 sys-power/powertop/powertop-2.8.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-power/powertop/powertop-2.8.ebuild 
b/sys-power/powertop/powertop-2.8.ebuild
index 117886a9ced..0fd176bd6f9 100644
--- a/sys-power/powertop/powertop-2.8.ebuild
+++ b/sys-power/powertop/powertop-2.8.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -10,7 +10,7 @@ if [[ ${PV} == "" ]] ; then
SRC_URI=""
 else
SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz;
-   KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="~amd64 arm ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
 fi
 
 DESCRIPTION="tool that helps you find what software is using the most power"



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/files/

2017-02-14 Thread David Seifert
commit: efe9c99426cd527b5e9262717be118d2abfaf0dd
Author: Michael Mair-Keimberger (asterix)  gmail 
 com>
AuthorDate: Sun Feb 12 15:56:31 2017 +
Commit: David Seifert  gentoo  org>
CommitDate: Tue Feb 14 21:38:46 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efe9c994

sys-power/powertop: remove unused patches/file

Closes: https://github.com/gentoo/gentoo/pull/3936

 sys-power/powertop/files/csstoh|  18 ---
 .../powertop/files/powertop-1.98-build-cc.patch|  28 
 .../files/powertop-1.98-build-libnl-3.patch|  27 
 sys-power/powertop/files/powertop-1.98-build.patch |  80 ---
 .../powertop/files/powertop-1.98-gcc-4.7.patch | 151 -
 .../powertop-2.2-cpu-add-new-Intel-cpuid.patch |  41 --
 .../files/powertop-2.2-use-package_version.patch   |  26 
 .../powertop/files/powertop-2.7-baytrail-msr.patch |  33 -
 .../powertop/files/powertop-2.7-braswell.patch |  81 ---
 .../powertop/files/powertop-2.7-broadwell.patch|  28 
 .../powertop/files/powertop-2.7-skylake-2.patch|  37 -
 .../powertop/files/powertop-2.7-skylake.patch  |  58 
 12 files changed, 608 deletions(-)

diff --git a/sys-power/powertop/files/csstoh b/sys-power/powertop/files/csstoh
deleted file mode 100644
index 51d1ec1372..00
--- a/sys-power/powertop/files/csstoh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-in=$1
-out=$2
-
-(
-cat < "${out}"

diff --git a/sys-power/powertop/files/powertop-1.98-build-cc.patch 
b/sys-power/powertop/files/powertop-1.98-build-cc.patch
deleted file mode 100644
index 70beb81db3..00
--- a/sys-power/powertop/files/powertop-1.98-build-cc.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From e2a8efc2d349880833215ccbe9ac6cb80cdfe5d0 Mon Sep 17 00:00:00 2001
-From: Mike Frysinger 
-Date: Tue, 23 Aug 2011 18:03:38 -0400
-Subject: [PATCH] allow control over the build compiler
-
-Signed-off-by: Mike Frysinger 

- 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-libnl-3.patch 
b/sys-power/powertop/files/powertop-1.98-build-libnl-3.patch
deleted file mode 100644
index bbe2b1c857..00
--- a/sys-power/powertop/files/powertop-1.98-build-libnl-3.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 21dcbd03507632c987e8c68b3efcf7b4a5d51147 Mon Sep 17 00:00:00 2001
-From: Mike Frysinger 
-Date: Wed, 18 Apr 2012 21:11:22 -0400
-Subject: [PATCH] use right libnl pkg-config name
-
-Signed-off-by: Mike Frysinger 

- Makefile |3 +--
- 1 files changed, 1 insertions(+), 2 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index 94ed2be..8a90b85 100644
 a/Makefile
-+++ b/Makefile
-@@ -39,8 +39,7 @@ endif
- 
- ifeq ($(NL3FOUND),Y)
- CPPFLAGS += -DCONFIG_LIBNL20
--LIBS += -lnl-genl
--NLLIBNAME = libnl-3.0
-+NLLIBNAME = libnl-genl-3.0
- endif
- 
- ifeq ($(NLLIBNAME),)
--- 
-1.7.8.5
-

diff --git a/sys-power/powertop/files/powertop-1.98-build.patch 
b/sys-power/powertop/files/powertop-1.98-build.patch
deleted file mode 100644
index 8f130fdace..00
--- a/sys-power/powertop/files/powertop-1.98-build.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From cafa47147fdc503103cda1e67e736ab95051e44a Mon Sep 17 00:00:00 2001
-From: Mike Frysinger 
-Date: Tue, 23 Aug 2011 18:01:36 -0400
-Subject: [PATCH] use right flag names
-
-CFLAGS for the C compiler, CXXFLAGS for the C++ compiler, and
-CPPFLAGS for preprocessor flags.
-
-Signed-off-by: Mike Frysinger 

- Makefile |   20 
- 1 files changed, 12 insertions(+), 8 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index b0b6cb7..bf9b79a 100644
 a/Makefile
-+++ b/Makefile
-@@ -2,9 +2,13 @@ all: powertop  po/powertop.pot
- 
- VERSION := 1.98
- 
--CFLAGS += -Wall -O2 -g -fno-omit-frame-pointer -fstack-protector -Wshadow 
-Wformat -D_FORTIFY_SOURCE=2
--CPPFLAGS += -Wall -O2 -g -fno-omit-frame-pointer
--CXXFLAGS += -Wall -O2 -g -fno-omit-frame-pointer -fstack-protector -Wshadow 
-Wformat -D_FORTIFY_SOURCE=2
-+WFLAGS = -Wall -Wshadow -Wformat
-+COMMON_FLAGS = -O2 -g -fno-omit-frame-pointer -fstack-protector
-+CFLAGS ?= $(COMMON_FLAGS)
-+CFLAGS += $(WFLAGS)
-+CXXFLAGS ?= $(COMMON_FLAGS)
-+CXXFLAGS += $(WFLAGS)
-+CPPFLAGS += -D_FORTIFY_SOURCE=2
- PKG_CONFIG ?= pkg-config
- 
- OBJS := lib.o main.o display.o html.o devlist.o
-@@ -31,13 +35,13 @@ NLLIBNAME = libnl-1
- endif
- 
- ifeq ($(NL2FOUND),Y)
--CFLAGS += 

[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2016-11-20 Thread Göktürk Yüksek
commit: 0d66aec25c7d49561549007eec73e17bbe1d997b
Author: Elias Probst  eliasprobst  eu>
AuthorDate: Wed Aug 24 10:17:52 2016 +
Commit: Göktürk Yüksek  gentoo  org>
CommitDate: Sun Nov 20 16:53:49 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d66aec2

sys-power/powertop: generate version information for SCM build

Also:
- update header date
- migrate to EAPI=6 and git-r3 eclass

Package-Manager: portage-2.2.28

 sys-power/powertop/powertop-.ebuild | 13 ++---
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/sys-power/powertop/powertop-.ebuild 
b/sys-power/powertop/powertop-.ebuild
index a53eb03..0b5a0ba 100644
--- a/sys-power/powertop/powertop-.ebuild
+++ b/sys-power/powertop/powertop-.ebuild
@@ -1,13 +1,13 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI="5"
+EAPI="6"
 
 inherit eutils linux-info
 if [[ ${PV} == "" ]] ; then
EGIT_REPO_URI="git://github.com/fenrus75/powertop.git"
-   inherit git-2 autotools
+   inherit git-r3 autotools
SRC_URI=""
 else
SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz;
@@ -37,8 +37,6 @@ RDEPEND="
virtual/libintl
 "
 
-DOCS=( TODO README )
-
 pkg_setup() {
CONFIG_CHECK="
~X86_MSR
@@ -95,10 +93,11 @@ pkg_setup() {
 }
 
 src_prepare() {
+   default
if [[ ${PV} == "" ]] ; then
+   chmod +x scripts/version || die "Failed to make 
'scripts/version' executable"
+   scripts/version || die "Failed to extract version information"
eautoreconf
-   else
-   default
fi
 }
 



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2015-12-02 Thread Richard Farina
commit: e04e64a094273ec1768537cdfad71e3ff5631d47
Author: Zero_Chaos  gentoo  org>
AuthorDate: Wed Dec  2 16:42:52 2015 +
Commit: Richard Farina  gentoo  org>
CommitDate: Wed Dec  2 16:50:13 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e04e64a0

sys-power/powertop: version bump for bug #565832 thanks to Joe Konno

Package-Manager: portage-2.2.26

 sys-power/powertop/Manifest|   1 +
 sys-power/powertop/powertop-2.8.ebuild | 100 +
 2 files changed, 101 insertions(+)

diff --git a/sys-power/powertop/Manifest b/sys-power/powertop/Manifest
index 611bb61..7e22056 100644
--- a/sys-power/powertop/Manifest
+++ b/sys-power/powertop/Manifest
@@ -2,3 +2,4 @@ DIST powertop-1.13.tar.gz 104675 SHA256 
2bc866089496877dd26d2d316ad5763ab8ecb5e2
 DIST powertop-2.5.tar.gz 635979 SHA256 
8b2c08a555d79e1c428863470c41cb023971d74ba4801d80a05e35adeec23c0b SHA512 
696629fb6f5d0164da3ec2b259780dc635abc661de859e5e908debd3872c9a82024c0cc2dd8210c4cd1cf5586bf4238e31c3af29266f6a8ed8d90b1d876f04d8
 WHIRLPOOL 
5940b15ea4c5f09809e9a8febc11b1abe680df04469d75889c3a0cc0935a8c9d578d1f7c4ecaf2507cda74d574696a61b3bef21c6e30e9c768c09abf03436bcf
 DIST powertop-2.6.tar.gz 3024009 SHA256 
3024c2b13c8f32cdac0b0ea9359eb5668dc9bd11776cf063481daa878533d1ee SHA512 
7c44b9c49f74d0f415d0332b60629940e05cf1c9170a9a7b98427da630c25c0cc9c8ece49e059ec8c665847ff03fa8a341e0cf8f7ca792d889f2c52a39ddbb62
 WHIRLPOOL 
eaa6e05d2fdb3050eb3a37f39fb5d760a8d3d91461b8c6f0ae825138080a0dd8a532e490a71246d62d2e340e3820b402d761a1331a6e7b6bc23db116c98cf0d9
 DIST powertop-2.7.tar.gz 654329 SHA256 
8d4b1490e2baad4467c0ded3c423db4472dcbf7b2dd8f8f2a928f54047c678ca SHA512 
7a69bee4dd5330d9d5d6da9c47615337cdde27eb1eeb3ffc75297df1a61b5ced9f2ee94684680154e71c0c46fac72e5485cadf7a43e943d8087b1d7b4f33f59d
 WHIRLPOOL 
b2323b3222fa45ff1874cca9f2a3121aebd54d4dd9c89a31f7299fac15e30013ae3103f79759e86368efdba528eb3a2f166359cbe15d97022166abc16e6fddad
+DIST powertop-2.8.tar.gz 67 SHA256 
a87b563f73106babfa3e74dcf92f252938c061e309ace20a361358bbfa579c5a SHA512 
253d0e15f0972cf8639735c510f4884d49a0da76c31dd2f39603e2297e6c6f0b9fa283c7b3cb04a431c91f8296275c0adaecc4c3e9ea132c0c31064f7f432c80
 WHIRLPOOL 
87b859b76395d6b1b380c7459b0d918713e94e8fc4ac40fde8b82f2112dec2df3caffb645b082cedd0bba5c232555de26e81fbe8dd3041875c32c864650ef132

diff --git a/sys-power/powertop/powertop-2.8.ebuild 
b/sys-power/powertop/powertop-2.8.ebuild
new file mode 100644
index 000..b558811
--- /dev/null
+++ b/sys-power/powertop/powertop-2.8.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils linux-info
+if [[ ${PV} == "" ]] ; then
+   EGIT_REPO_URI="git://github.com/fenrus75/powertop.git"
+   inherit git-2 autotools
+   SRC_URI=""
+else
+   SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz;
+   KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
+fi
+
+DESCRIPTION="tool that helps you find what software is using the most power"
+HOMEPAGE="https://01.org/powertop/;
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="nls unicode X"
+
+COMMON_DEPEND="
+   dev-libs/libnl:3
+   sys-apps/pciutils
+   sys-libs/ncurses[unicode?]
+"
+
+DEPEND="${COMMON_DEPEND}
+   virtual/pkgconfig
+   sys-devel/gettext
+"
+RDEPEND="
+   ${COMMON_DEPEND}
+   X? ( x11-apps/xset )
+   virtual/libintl
+"
+
+DOCS=( TODO README )
+
+pkg_setup() {
+   CONFIG_CHECK="
+   ~X86_MSR
+   ~DEBUG_FS
+   ~PERF_EVENTS
+   ~TRACEPOINTS
+   ~NO_HZ
+   ~HIGH_RES_TIMERS
+   ~HPET_TIMER
+   ~CPU_FREQ_STAT
+   ~CPU_FREQ_GOV_ONDEMAND
+   ~FTRACE
+   ~BLK_DEV_IO_TRACE
+   ~TIMER_STATS
+   ~TRACING
+   "
+   ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost 
certainly need it"
+   ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you 
almost certainly need it"
+   ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel 
for full powertop function"
+   ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel 
for full powertop function"
+   ERROR_KERNEL_NO_HZ="NO_HZ should be enabled in the kernel for full 
powertop function"
+   ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the 
kernel for full powertop function"
+   ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for 
full powertop function"
+   ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the 
kernel for full powertop function"
+   ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be 
enabled in the kernel for full powertop function"
+   ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable 

[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2015-12-02 Thread Richard Farina
commit: 9677d2ed8f947fc845bc2c72f6cd56f35d51ab1f
Author: Zero_Chaos  gentoo  org>
AuthorDate: Wed Dec  2 17:00:10 2015 +
Commit: Richard Farina  gentoo  org>
CommitDate: Wed Dec  2 17:00:10 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9677d2ed

sys-power/powertop: merge latest release and live ebuild

Package-Manager: portage-2.2.26

 sys-power/powertop/powertop-2.8.ebuild  | 8 
 sys-power/powertop/powertop-.ebuild | 6 +-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/sys-power/powertop/powertop-2.8.ebuild 
b/sys-power/powertop/powertop-2.8.ebuild
index 91a6287..a53eb03 100644
--- a/sys-power/powertop/powertop-2.8.ebuild
+++ b/sys-power/powertop/powertop-2.8.ebuild
@@ -94,6 +94,14 @@ pkg_setup() {
fi
 }
 
+src_prepare() {
+   if [[ ${PV} == "" ]] ; then
+   eautoreconf
+   else
+   default
+   fi
+}
+
 src_configure() {
export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses)
econf $(use_enable nls)

diff --git a/sys-power/powertop/powertop-.ebuild 
b/sys-power/powertop/powertop-.ebuild
index 53a9e0c..a53eb03 100644
--- a/sys-power/powertop/powertop-.ebuild
+++ b/sys-power/powertop/powertop-.ebuild
@@ -95,7 +95,11 @@ pkg_setup() {
 }
 
 src_prepare() {
-   eautoreconf
+   if [[ ${PV} == "" ]] ; then
+   eautoreconf
+   else
+   default
+   fi
 }
 
 src_configure() {



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2015-12-02 Thread Richard Farina
commit: 3239c3e815bf0e9f318dadc47c25a887ac071961
Author: Zero_Chaos  gentoo  org>
AuthorDate: Wed Dec  2 16:46:10 2015 +
Commit: Richard Farina  gentoo  org>
CommitDate: Wed Dec  2 16:50:17 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3239c3e8

sys-power/powertop: fix live ebuild to match releases

Package-Manager: portage-2.2.26

 sys-power/powertop/powertop-.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys-power/powertop/powertop-.ebuild 
b/sys-power/powertop/powertop-.ebuild
index b3011ff..4a5c472 100644
--- a/sys-power/powertop/powertop-.ebuild
+++ b/sys-power/powertop/powertop-.ebuild
@@ -4,7 +4,7 @@
 
 EAPI="5"
 
-inherit eutils linux-info autotools
+inherit eutils linux-info
 if [[ ${PV} == "" ]] ; then
EGIT_REPO_URI="git://github.com/fenrus75/powertop.git"
inherit git-2 autotools
@@ -19,7 +19,7 @@ HOMEPAGE="https://01.org/powertop/;
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="unicode X"
+IUSE="nls unicode X"
 
 COMMON_DEPEND="
dev-libs/libnl:3
@@ -100,5 +100,5 @@ src_prepare() {
 
 src_configure() {
export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses)
-   default
+   econf $(use_enable nls)
 }



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2015-12-02 Thread Richard Farina
commit: 49fe96b4e40d44cb9b6f3b5a2defafd458f5a3ad
Author: Zero_Chaos  gentoo  org>
AuthorDate: Wed Dec  2 16:49:57 2015 +
Commit: Richard Farina  gentoo  org>
CommitDate: Wed Dec  2 16:50:19 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49fe96b4

sys-power/powertop: fix actual repoman issues

Package-Manager: portage-2.2.26

 sys-power/powertop/powertop-2.6.ebuild  | 2 +-
 sys-power/powertop/powertop-2.8.ebuild  | 2 +-
 sys-power/powertop/powertop-.ebuild | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys-power/powertop/powertop-2.6.ebuild 
b/sys-power/powertop/powertop-2.6.ebuild
index 482be30..1fcc8e1 100644
--- a/sys-power/powertop/powertop-2.6.ebuild
+++ b/sys-power/powertop/powertop-2.6.ebuild
@@ -24,7 +24,7 @@ IUSE="unicode X"
 COMMON_DEPEND="
dev-libs/libnl:3
sys-apps/pciutils
-   sys-libs/ncurses[unicode?]
+   sys-libs/ncurses:*[unicode?]
 "
 
 DEPEND="${COMMON_DEPEND}

diff --git a/sys-power/powertop/powertop-2.8.ebuild 
b/sys-power/powertop/powertop-2.8.ebuild
index b558811..91a6287 100644
--- a/sys-power/powertop/powertop-2.8.ebuild
+++ b/sys-power/powertop/powertop-2.8.ebuild
@@ -24,7 +24,7 @@ IUSE="nls unicode X"
 COMMON_DEPEND="
dev-libs/libnl:3
sys-apps/pciutils
-   sys-libs/ncurses[unicode?]
+   sys-libs/ncurses:=[unicode?]
 "
 
 DEPEND="${COMMON_DEPEND}

diff --git a/sys-power/powertop/powertop-.ebuild 
b/sys-power/powertop/powertop-.ebuild
index 4a5c472..53a9e0c 100644
--- a/sys-power/powertop/powertop-.ebuild
+++ b/sys-power/powertop/powertop-.ebuild
@@ -24,7 +24,7 @@ IUSE="nls unicode X"
 COMMON_DEPEND="
dev-libs/libnl:3
sys-apps/pciutils
-   sys-libs/ncurses[unicode?]
+   sys-libs/ncurses:=[unicode?]
 "
 
 DEPEND="${COMMON_DEPEND}



[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2015-12-02 Thread Richard Farina
commit: d1aa31281f7c20ba0974beea2e4301dc2b6648df
Author: Zero_Chaos  gentoo  org>
AuthorDate: Wed Dec  2 16:44:19 2015 +
Commit: Richard Farina  gentoo  org>
CommitDate: Wed Dec  2 16:50:15 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1aa3128

sys-power/powertop: cleanup old ebuilds

Package-Manager: portage-2.2.26

 sys-power/powertop/Manifest   |   3 -
 sys-power/powertop/powertop-1.13.ebuild   |  44 
 sys-power/powertop/powertop-2.5.ebuild| 110 --
 sys-power/powertop/powertop-2.7-r1.ebuild | 104 
 sys-power/powertop/powertop-2.7-r2.ebuild | 108 -
 sys-power/powertop/powertop-2.7.ebuild| 104 
 6 files changed, 473 deletions(-)

diff --git a/sys-power/powertop/Manifest b/sys-power/powertop/Manifest
index 7e22056..97831b9 100644
--- a/sys-power/powertop/Manifest
+++ b/sys-power/powertop/Manifest
@@ -1,5 +1,2 @@
-DIST powertop-1.13.tar.gz 104675 SHA256 
2bc866089496877dd26d2d316ad5763ab8ecb5e28aefba44bc5d355dcdc58d98 SHA512 
0c22a903da64798d987492336d57260372e03eab067ad94cf30b7640e9ee05e759a2fe9fa48fbdc35404cd2782b6b29d705e11e68452653b08f7f9df1a52be44
 WHIRLPOOL 
5ba44b84f49609f67c32563f75e20f6576c21a93fcb1ca99ebfe064475397602aa0f0fb9575e05b5a0290983791e7cf6ebae0139b39158b962e4b51027a6f5aa
-DIST powertop-2.5.tar.gz 635979 SHA256 
8b2c08a555d79e1c428863470c41cb023971d74ba4801d80a05e35adeec23c0b SHA512 
696629fb6f5d0164da3ec2b259780dc635abc661de859e5e908debd3872c9a82024c0cc2dd8210c4cd1cf5586bf4238e31c3af29266f6a8ed8d90b1d876f04d8
 WHIRLPOOL 
5940b15ea4c5f09809e9a8febc11b1abe680df04469d75889c3a0cc0935a8c9d578d1f7c4ecaf2507cda74d574696a61b3bef21c6e30e9c768c09abf03436bcf
 DIST powertop-2.6.tar.gz 3024009 SHA256 
3024c2b13c8f32cdac0b0ea9359eb5668dc9bd11776cf063481daa878533d1ee SHA512 
7c44b9c49f74d0f415d0332b60629940e05cf1c9170a9a7b98427da630c25c0cc9c8ece49e059ec8c665847ff03fa8a341e0cf8f7ca792d889f2c52a39ddbb62
 WHIRLPOOL 
eaa6e05d2fdb3050eb3a37f39fb5d760a8d3d91461b8c6f0ae825138080a0dd8a532e490a71246d62d2e340e3820b402d761a1331a6e7b6bc23db116c98cf0d9
-DIST powertop-2.7.tar.gz 654329 SHA256 
8d4b1490e2baad4467c0ded3c423db4472dcbf7b2dd8f8f2a928f54047c678ca SHA512 
7a69bee4dd5330d9d5d6da9c47615337cdde27eb1eeb3ffc75297df1a61b5ced9f2ee94684680154e71c0c46fac72e5485cadf7a43e943d8087b1d7b4f33f59d
 WHIRLPOOL 
b2323b3222fa45ff1874cca9f2a3121aebd54d4dd9c89a31f7299fac15e30013ae3103f79759e86368efdba528eb3a2f166359cbe15d97022166abc16e6fddad
 DIST powertop-2.8.tar.gz 67 SHA256 
a87b563f73106babfa3e74dcf92f252938c061e309ace20a361358bbfa579c5a SHA512 
253d0e15f0972cf8639735c510f4884d49a0da76c31dd2f39603e2297e6c6f0b9fa283c7b3cb04a431c91f8296275c0adaecc4c3e9ea132c0c31064f7f432c80
 WHIRLPOOL 
87b859b76395d6b1b380c7459b0d918713e94e8fc4ac40fde8b82f2112dec2df3caffb645b082cedd0bba5c232555de26e81fbe8dd3041875c32c864650ef132

diff --git a/sys-power/powertop/powertop-1.13.ebuild 
b/sys-power/powertop/powertop-1.13.ebuild
deleted file mode 100644
index 359fb83..000
--- a/sys-power/powertop/powertop-1.13.ebuild
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=3
-
-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 ~amd64-linux ~x86-linux"
-IUSE="unicode"
-
-DEPEND="sys-libs/ncurses[unicode?]
-   sys-devel/gettext"
-RDEPEND="sys-libs/ncurses[unicode?]
-   virtual/libintl
-   sys-apps/pciutils"
-
-src_prepare() {
-   sed -i '/${CFLAGS}/s:$: ${LDFLAGS}:' Makefile
-   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
-}

diff --git a/sys-power/powertop/powertop-2.5.ebuild 
b/sys-power/powertop/powertop-2.5.ebuild
deleted file mode 100644
index 238ac02..000
--- a/sys-power/powertop/powertop-2.5.ebuild
+++ /dev/null
@@ -1,110 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-
-inherit eutils linux-info autotools
-if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="git://github.com/fenrus75/powertop.git"
-   inherit git-2 autotools
-   SRC_URI=""
-else
-   
SRC_URI="https://01.org/powertop/sites/default/files/downloads/${P}.tar.gz;
-   KEYWORDS="amd64 arm ppc sparc x86 

[gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/

2015-12-02 Thread Richard Farina
commit: 643b6d5fc25c5e9ff767ceb6770677f3189fccd6
Author: Zero_Chaos  gentoo  org>
AuthorDate: Wed Dec  2 17:50:55 2015 +
Commit: Richard Farina  gentoo  org>
CommitDate: Wed Dec  2 17:51:12 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=643b6d5f

sys-power/powertop: readd removed version due to fatrace-0.4 needing it

Package-Manager: portage-2.2.26
RepoMan-Options: --force

 sys-power/powertop/Manifest |  1 +
 sys-power/powertop/powertop-1.13.ebuild | 44 +
 2 files changed, 45 insertions(+)

diff --git a/sys-power/powertop/Manifest b/sys-power/powertop/Manifest
index 97831b9..80fbb4f 100644
--- a/sys-power/powertop/Manifest
+++ b/sys-power/powertop/Manifest
@@ -1,2 +1,3 @@
+DIST powertop-1.13.tar.gz 104675 SHA256 
2bc866089496877dd26d2d316ad5763ab8ecb5e28aefba44bc5d355dcdc58d98 SHA512 
0c22a903da64798d987492336d57260372e03eab067ad94cf30b7640e9ee05e759a2fe9fa48fbdc35404cd2782b6b29d705e11e68452653b08f7f9df1a52be44
 WHIRLPOOL 
5ba44b84f49609f67c32563f75e20f6576c21a93fcb1ca99ebfe064475397602aa0f0fb9575e05b5a0290983791e7cf6ebae0139b39158b962e4b51027a6f5aa
 DIST powertop-2.6.tar.gz 3024009 SHA256 
3024c2b13c8f32cdac0b0ea9359eb5668dc9bd11776cf063481daa878533d1ee SHA512 
7c44b9c49f74d0f415d0332b60629940e05cf1c9170a9a7b98427da630c25c0cc9c8ece49e059ec8c665847ff03fa8a341e0cf8f7ca792d889f2c52a39ddbb62
 WHIRLPOOL 
eaa6e05d2fdb3050eb3a37f39fb5d760a8d3d91461b8c6f0ae825138080a0dd8a532e490a71246d62d2e340e3820b402d761a1331a6e7b6bc23db116c98cf0d9
 DIST powertop-2.8.tar.gz 67 SHA256 
a87b563f73106babfa3e74dcf92f252938c061e309ace20a361358bbfa579c5a SHA512 
253d0e15f0972cf8639735c510f4884d49a0da76c31dd2f39603e2297e6c6f0b9fa283c7b3cb04a431c91f8296275c0adaecc4c3e9ea132c0c31064f7f432c80
 WHIRLPOOL 
87b859b76395d6b1b380c7459b0d918713e94e8fc4ac40fde8b82f2112dec2df3caffb645b082cedd0bba5c232555de26e81fbe8dd3041875c32c864650ef132

diff --git a/sys-power/powertop/powertop-1.13.ebuild 
b/sys-power/powertop/powertop-1.13.ebuild
new file mode 100644
index 000..c9fcee0
--- /dev/null
+++ b/sys-power/powertop/powertop-1.13.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+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 ~amd64-linux ~x86-linux"
+IUSE="unicode"
+
+DEPEND="sys-libs/ncurses[unicode?]
+   sys-devel/gettext"
+RDEPEND="sys-libs/ncurses[unicode?]
+   virtual/libintl
+   sys-apps/pciutils"
+
+src_prepare() {
+   sed -i '/${CFLAGS}/s:$: ${LDFLAGS}:' Makefile
+   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
+}