Gentoo Archives: gentoo-commits

From: Richard Farina <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/
Date: Wed, 02 Dec 2015 17:00:30
Message-Id: 1449075013.e04e64a094273ec1768537cdfad71e3ff5631d47.zerochaos@gentoo
1 commit: e04e64a094273ec1768537cdfad71e3ff5631d47
2 Author: Zero_Chaos <zerochaos <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 2 16:42:52 2015 +0000
4 Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 2 16:50:13 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e04e64a0
7
8 sys-power/powertop: version bump for bug #565832 thanks to Joe Konno
9
10 Package-Manager: portage-2.2.26
11
12 sys-power/powertop/Manifest | 1 +
13 sys-power/powertop/powertop-2.8.ebuild | 100 +++++++++++++++++++++++++++++++++
14 2 files changed, 101 insertions(+)
15
16 diff --git a/sys-power/powertop/Manifest b/sys-power/powertop/Manifest
17 index 611bb61..7e22056 100644
18 --- a/sys-power/powertop/Manifest
19 +++ b/sys-power/powertop/Manifest
20 @@ -2,3 +2,4 @@ DIST powertop-1.13.tar.gz 104675 SHA256 2bc866089496877dd26d2d316ad5763ab8ecb5e2
21 DIST powertop-2.5.tar.gz 635979 SHA256 8b2c08a555d79e1c428863470c41cb023971d74ba4801d80a05e35adeec23c0b SHA512 696629fb6f5d0164da3ec2b259780dc635abc661de859e5e908debd3872c9a82024c0cc2dd8210c4cd1cf5586bf4238e31c3af29266f6a8ed8d90b1d876f04d8 WHIRLPOOL 5940b15ea4c5f09809e9a8febc11b1abe680df04469d75889c3a0cc0935a8c9d578d1f7c4ecaf2507cda74d574696a61b3bef21c6e30e9c768c09abf03436bcf
22 DIST powertop-2.6.tar.gz 3024009 SHA256 3024c2b13c8f32cdac0b0ea9359eb5668dc9bd11776cf063481daa878533d1ee SHA512 7c44b9c49f74d0f415d0332b60629940e05cf1c9170a9a7b98427da630c25c0cc9c8ece49e059ec8c665847ff03fa8a341e0cf8f7ca792d889f2c52a39ddbb62 WHIRLPOOL eaa6e05d2fdb3050eb3a37f39fb5d760a8d3d91461b8c6f0ae825138080a0dd8a532e490a71246d62d2e340e3820b402d761a1331a6e7b6bc23db116c98cf0d9
23 DIST powertop-2.7.tar.gz 654329 SHA256 8d4b1490e2baad4467c0ded3c423db4472dcbf7b2dd8f8f2a928f54047c678ca SHA512 7a69bee4dd5330d9d5d6da9c47615337cdde27eb1eeb3ffc75297df1a61b5ced9f2ee94684680154e71c0c46fac72e5485cadf7a43e943d8087b1d7b4f33f59d WHIRLPOOL b2323b3222fa45ff1874cca9f2a3121aebd54d4dd9c89a31f7299fac15e30013ae3103f79759e86368efdba528eb3a2f166359cbe15d97022166abc16e6fddad
24 +DIST powertop-2.8.tar.gz 670000 SHA256 a87b563f73106babfa3e74dcf92f252938c061e309ace20a361358bbfa579c5a SHA512 253d0e15f0972cf8639735c510f4884d49a0da76c31dd2f39603e2297e6c6f0b9fa283c7b3cb04a431c91f8296275c0adaecc4c3e9ea132c0c31064f7f432c80 WHIRLPOOL 87b859b76395d6b1b380c7459b0d918713e94e8fc4ac40fde8b82f2112dec2df3caffb645b082cedd0bba5c232555de26e81fbe8dd3041875c32c864650ef132
25
26 diff --git a/sys-power/powertop/powertop-2.8.ebuild b/sys-power/powertop/powertop-2.8.ebuild
27 new file mode 100644
28 index 0000000..b558811
29 --- /dev/null
30 +++ b/sys-power/powertop/powertop-2.8.ebuild
31 @@ -0,0 +1,100 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI="5"
37 +
38 +inherit eutils linux-info
39 +if [[ ${PV} == "9999" ]] ; then
40 + EGIT_REPO_URI="git://github.com/fenrus75/powertop.git"
41 + inherit git-2 autotools
42 + SRC_URI=""
43 +else
44 + SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz"
45 + KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
46 +fi
47 +
48 +DESCRIPTION="tool that helps you find what software is using the most power"
49 +HOMEPAGE="https://01.org/powertop/"
50 +
51 +LICENSE="GPL-2"
52 +SLOT="0"
53 +IUSE="nls unicode X"
54 +
55 +COMMON_DEPEND="
56 + dev-libs/libnl:3
57 + sys-apps/pciutils
58 + sys-libs/ncurses[unicode?]
59 +"
60 +
61 +DEPEND="${COMMON_DEPEND}
62 + virtual/pkgconfig
63 + sys-devel/gettext
64 +"
65 +RDEPEND="
66 + ${COMMON_DEPEND}
67 + X? ( x11-apps/xset )
68 + virtual/libintl
69 +"
70 +
71 +DOCS=( TODO README )
72 +
73 +pkg_setup() {
74 + CONFIG_CHECK="
75 + ~X86_MSR
76 + ~DEBUG_FS
77 + ~PERF_EVENTS
78 + ~TRACEPOINTS
79 + ~NO_HZ
80 + ~HIGH_RES_TIMERS
81 + ~HPET_TIMER
82 + ~CPU_FREQ_STAT
83 + ~CPU_FREQ_GOV_ONDEMAND
84 + ~FTRACE
85 + ~BLK_DEV_IO_TRACE
86 + ~TIMER_STATS
87 + ~TRACING
88 + "
89 + ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost certainly need it"
90 + ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you almost certainly need it"
91 + ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel for full powertop function"
92 + ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel for full powertop function"
93 + ERROR_KERNEL_NO_HZ="NO_HZ should be enabled in the kernel for full powertop function"
94 + ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the kernel for full powertop function"
95 + ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for full powertop function"
96 + ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the kernel for full powertop function"
97 + ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be enabled in the kernel for full powertop function"
98 + ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable BLK_DEV_IO_TRACE"
99 + 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"
100 + ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel for full powertop function"
101 + ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full powertop function"
102 + linux-info_pkg_setup
103 + if linux_config_exists; then
104 + if kernel_is -lt 3 7 0; then
105 + if linux_chkconfig_present SND_HDA_INTEL; then
106 + CONFIG_CHECK="~SND_HDA_POWER_SAVE"
107 + ERROR_KERNEL_SND_HDA_POWER_SAVE="SND_HDA_POWER_SAVE should be enabled in the kernel for full powertop function"
108 + check_extra_config
109 + fi
110 + fi
111 + if kernel_is -lt 3 9 0; then
112 + CONFIG_CHECK="~EVENT_POWER_TRACING_DEPRECATED"
113 + ERROR_KERNEL_EVENT_POWER_TRACING_DEPRECATED="EVENT_POWER_TRACING_DEPRECATED should be enabled in the kernel for full powertop function"
114 + check_extra_config
115 + fi
116 + if kernel_is -lt 3 19; then
117 + CONFIG_CHECK="~PM_RUNTIME"
118 + ERROR_KERNEL_PM_RUNTIME="PM_RUNTIME should be enabled in the kernel for full powertop function"
119 + check_extra_config
120 + else
121 + CONFIG_CHECK="~PM"
122 + ERROR_KERNEL_PM="PM should be enabled in the kernel for full powertop function"
123 + check_extra_config
124 + fi
125 + fi
126 +}
127 +
128 +src_configure() {
129 + export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses)
130 + econf $(use_enable nls)
131 +}