1 |
commit: d1aa31281f7c20ba0974beea2e4301dc2b6648df |
2 |
Author: Zero_Chaos <zerochaos <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 2 16:44:19 2015 +0000 |
4 |
Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 2 16:50:15 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1aa3128 |
7 |
|
8 |
sys-power/powertop: cleanup old ebuilds |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
sys-power/powertop/Manifest | 3 - |
13 |
sys-power/powertop/powertop-1.13.ebuild | 44 ------------ |
14 |
sys-power/powertop/powertop-2.5.ebuild | 110 ------------------------------ |
15 |
sys-power/powertop/powertop-2.7-r1.ebuild | 104 ---------------------------- |
16 |
sys-power/powertop/powertop-2.7-r2.ebuild | 108 ----------------------------- |
17 |
sys-power/powertop/powertop-2.7.ebuild | 104 ---------------------------- |
18 |
6 files changed, 473 deletions(-) |
19 |
|
20 |
diff --git a/sys-power/powertop/Manifest b/sys-power/powertop/Manifest |
21 |
index 7e22056..97831b9 100644 |
22 |
--- a/sys-power/powertop/Manifest |
23 |
+++ b/sys-power/powertop/Manifest |
24 |
@@ -1,5 +1,2 @@ |
25 |
-DIST powertop-1.13.tar.gz 104675 SHA256 2bc866089496877dd26d2d316ad5763ab8ecb5e28aefba44bc5d355dcdc58d98 SHA512 0c22a903da64798d987492336d57260372e03eab067ad94cf30b7640e9ee05e759a2fe9fa48fbdc35404cd2782b6b29d705e11e68452653b08f7f9df1a52be44 WHIRLPOOL 5ba44b84f49609f67c32563f75e20f6576c21a93fcb1ca99ebfe064475397602aa0f0fb9575e05b5a0290983791e7cf6ebae0139b39158b962e4b51027a6f5aa |
26 |
-DIST powertop-2.5.tar.gz 635979 SHA256 8b2c08a555d79e1c428863470c41cb023971d74ba4801d80a05e35adeec23c0b SHA512 696629fb6f5d0164da3ec2b259780dc635abc661de859e5e908debd3872c9a82024c0cc2dd8210c4cd1cf5586bf4238e31c3af29266f6a8ed8d90b1d876f04d8 WHIRLPOOL 5940b15ea4c5f09809e9a8febc11b1abe680df04469d75889c3a0cc0935a8c9d578d1f7c4ecaf2507cda74d574696a61b3bef21c6e30e9c768c09abf03436bcf |
27 |
DIST powertop-2.6.tar.gz 3024009 SHA256 3024c2b13c8f32cdac0b0ea9359eb5668dc9bd11776cf063481daa878533d1ee SHA512 7c44b9c49f74d0f415d0332b60629940e05cf1c9170a9a7b98427da630c25c0cc9c8ece49e059ec8c665847ff03fa8a341e0cf8f7ca792d889f2c52a39ddbb62 WHIRLPOOL eaa6e05d2fdb3050eb3a37f39fb5d760a8d3d91461b8c6f0ae825138080a0dd8a532e490a71246d62d2e340e3820b402d761a1331a6e7b6bc23db116c98cf0d9 |
28 |
-DIST powertop-2.7.tar.gz 654329 SHA256 8d4b1490e2baad4467c0ded3c423db4472dcbf7b2dd8f8f2a928f54047c678ca SHA512 7a69bee4dd5330d9d5d6da9c47615337cdde27eb1eeb3ffc75297df1a61b5ced9f2ee94684680154e71c0c46fac72e5485cadf7a43e943d8087b1d7b4f33f59d WHIRLPOOL b2323b3222fa45ff1874cca9f2a3121aebd54d4dd9c89a31f7299fac15e30013ae3103f79759e86368efdba528eb3a2f166359cbe15d97022166abc16e6fddad |
29 |
DIST powertop-2.8.tar.gz 670000 SHA256 a87b563f73106babfa3e74dcf92f252938c061e309ace20a361358bbfa579c5a SHA512 253d0e15f0972cf8639735c510f4884d49a0da76c31dd2f39603e2297e6c6f0b9fa283c7b3cb04a431c91f8296275c0adaecc4c3e9ea132c0c31064f7f432c80 WHIRLPOOL 87b859b76395d6b1b380c7459b0d918713e94e8fc4ac40fde8b82f2112dec2df3caffb645b082cedd0bba5c232555de26e81fbe8dd3041875c32c864650ef132 |
30 |
|
31 |
diff --git a/sys-power/powertop/powertop-1.13.ebuild b/sys-power/powertop/powertop-1.13.ebuild |
32 |
deleted file mode 100644 |
33 |
index 359fb83..0000000 |
34 |
--- a/sys-power/powertop/powertop-1.13.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,44 +0,0 @@ |
37 |
-# Copyright 1999-2013 Gentoo Foundation |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
-# $Id$ |
40 |
- |
41 |
-EAPI=3 |
42 |
- |
43 |
-inherit toolchain-funcs eutils |
44 |
- |
45 |
-DESCRIPTION="tool that helps you find what software is using the most power" |
46 |
-HOMEPAGE="http://www.lesswatts.org/projects/powertop/" |
47 |
-SRC_URI="http://www.lesswatts.org/projects/powertop/download/${P}.tar.gz" |
48 |
- |
49 |
-LICENSE="GPL-2" |
50 |
-SLOT="0" |
51 |
-KEYWORDS="amd64 arm ppc sparc x86 ~amd64-linux ~x86-linux" |
52 |
-IUSE="unicode" |
53 |
- |
54 |
-DEPEND="sys-libs/ncurses[unicode?] |
55 |
- sys-devel/gettext" |
56 |
-RDEPEND="sys-libs/ncurses[unicode?] |
57 |
- virtual/libintl |
58 |
- sys-apps/pciutils" |
59 |
- |
60 |
-src_prepare() { |
61 |
- sed -i '/${CFLAGS}/s:$: ${LDFLAGS}:' Makefile |
62 |
- use unicode || sed -i 's:-lncursesw:-lncurses:' Makefile |
63 |
-} |
64 |
- |
65 |
-src_configure() { |
66 |
- tc-export CC |
67 |
-} |
68 |
- |
69 |
-src_install() { |
70 |
- emake install DESTDIR="${ED}" || die |
71 |
- dodoc Changelog README |
72 |
- gunzip "${ED}"/usr/share/man/man1/powertop.1.gz |
73 |
-} |
74 |
- |
75 |
-pkg_postinst() { |
76 |
- echo |
77 |
- einfo "For PowerTOP to work best, use a Linux kernel with the" |
78 |
- einfo "tickless idle (NO_HZ) feature enabled (version 2.6.21 or later)" |
79 |
- echo |
80 |
-} |
81 |
|
82 |
diff --git a/sys-power/powertop/powertop-2.5.ebuild b/sys-power/powertop/powertop-2.5.ebuild |
83 |
deleted file mode 100644 |
84 |
index 238ac02..0000000 |
85 |
--- a/sys-power/powertop/powertop-2.5.ebuild |
86 |
+++ /dev/null |
87 |
@@ -1,110 +0,0 @@ |
88 |
-# Copyright 1999-2015 Gentoo Foundation |
89 |
-# Distributed under the terms of the GNU General Public License v2 |
90 |
-# $Id$ |
91 |
- |
92 |
-EAPI="5" |
93 |
- |
94 |
-inherit eutils linux-info autotools |
95 |
-if [[ ${PV} == "9999" ]] ; then |
96 |
- EGIT_REPO_URI="git://github.com/fenrus75/powertop.git" |
97 |
- inherit git-2 autotools |
98 |
- SRC_URI="" |
99 |
-else |
100 |
- SRC_URI="https://01.org/powertop/sites/default/files/downloads/${P}.tar.gz" |
101 |
- KEYWORDS="amd64 arm ppc sparc x86 ~amd64-linux ~x86-linux" |
102 |
-fi |
103 |
- |
104 |
-DESCRIPTION="tool that helps you find what software is using the most power" |
105 |
-HOMEPAGE="https://01.org/powertop/" |
106 |
- |
107 |
-LICENSE="GPL-2" |
108 |
-SLOT="0" |
109 |
-IUSE="unicode X" |
110 |
- |
111 |
-COMMON_DEPEND=" |
112 |
- dev-libs/libnl:3 |
113 |
- sys-apps/pciutils |
114 |
- sys-libs/ncurses[unicode?] |
115 |
-" |
116 |
- |
117 |
-DEPEND="${COMMON_DEPEND} |
118 |
- virtual/pkgconfig |
119 |
- sys-devel/gettext |
120 |
-" |
121 |
-RDEPEND=" |
122 |
- ${COMMON_DEPEND} |
123 |
- X? ( x11-apps/xset ) |
124 |
- virtual/libintl |
125 |
-" |
126 |
- |
127 |
-DOCS=( TODO README ) |
128 |
- |
129 |
-pkg_setup() { |
130 |
- CONFIG_CHECK=" |
131 |
- ~X86_MSR |
132 |
- ~DEBUG_FS |
133 |
- ~PERF_EVENTS |
134 |
- ~TRACEPOINTS |
135 |
- ~NO_HZ |
136 |
- ~HIGH_RES_TIMERS |
137 |
- ~HPET_TIMER |
138 |
- ~CPU_FREQ_STAT |
139 |
- ~CPU_FREQ_GOV_ONDEMAND |
140 |
- ~FTRACE |
141 |
- ~BLK_DEV_IO_TRACE |
142 |
- ~TIMER_STATS |
143 |
- ~TRACING |
144 |
- " |
145 |
- ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost certainly need it" |
146 |
- ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you almost certainly need it" |
147 |
- ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel for full powertop function" |
148 |
- ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel for full powertop function" |
149 |
- ERROR_KERNEL_NO_HZ="NO_HZ should be enabled in the kernel for full powertop function" |
150 |
- ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the kernel for full powertop function" |
151 |
- ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for full powertop function" |
152 |
- ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the kernel for full powertop function" |
153 |
- ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be enabled in the kernel for full powertop function" |
154 |
- ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable BLK_DEV_IO_TRACE" |
155 |
- 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" |
156 |
- ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel for full powertop function" |
157 |
- ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full powertop function" |
158 |
- linux-info_pkg_setup |
159 |
- if linux_config_exists; then |
160 |
- if kernel_is -lt 3 7 0; then |
161 |
- if linux_chkconfig_present SND_HDA_INTEL; then |
162 |
- CONFIG_CHECK="~SND_HDA_POWER_SAVE" |
163 |
- ERROR_KERNEL_SND_HDA_POWER_SAVE="SND_HDA_POWER_SAVE should be enabled in the kernel for full powertop function" |
164 |
- check_extra_config |
165 |
- fi |
166 |
- fi |
167 |
- if kernel_is -lt 3 9 0; then |
168 |
- CONFIG_CHECK="~EVENT_POWER_TRACING_DEPRECATED" |
169 |
- ERROR_KERNEL_EVENT_POWER_TRACING_DEPRECATED="EVENT_POWER_TRACING_DEPRECATED should be enabled in the kernel for full powertop function" |
170 |
- check_extra_config |
171 |
- fi |
172 |
- if kernel_is -lt 3 19; then |
173 |
- CONFIG_CHECK="~PM_RUNTIME" |
174 |
- ERROR_KERNEL_PM_RUNTIME="PM_RUNTIME should be enabled in the kernel for full powertop function" |
175 |
- check_extra_config |
176 |
- else |
177 |
- CONFIG_CHECK="~PM" |
178 |
- ERROR_KERNEL_PM="PM should be enabled in the kernel for full powertop function" |
179 |
- check_extra_config |
180 |
- fi |
181 |
- fi |
182 |
-} |
183 |
- |
184 |
-src_prepare() { |
185 |
- epatch "${FILESDIR}"/powertop-2.4-tinfo.patch |
186 |
- eautoreconf |
187 |
-} |
188 |
- |
189 |
-src_configure() { |
190 |
- export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses) |
191 |
- default |
192 |
-} |
193 |
- |
194 |
-src_install() { |
195 |
- default |
196 |
- keepdir /var/cache/powertop |
197 |
-} |
198 |
|
199 |
diff --git a/sys-power/powertop/powertop-2.7-r1.ebuild b/sys-power/powertop/powertop-2.7-r1.ebuild |
200 |
deleted file mode 100644 |
201 |
index 6171ac4..0000000 |
202 |
--- a/sys-power/powertop/powertop-2.7-r1.ebuild |
203 |
+++ /dev/null |
204 |
@@ -1,104 +0,0 @@ |
205 |
-# Copyright 1999-2015 Gentoo Foundation |
206 |
-# Distributed under the terms of the GNU General Public License v2 |
207 |
-# $Id$ |
208 |
- |
209 |
-EAPI="5" |
210 |
- |
211 |
-inherit eutils linux-info |
212 |
-if [[ ${PV} == "9999" ]] ; then |
213 |
- EGIT_REPO_URI="git://github.com/fenrus75/powertop.git" |
214 |
- inherit git-2 autotools |
215 |
- SRC_URI="" |
216 |
-else |
217 |
- SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz" |
218 |
- KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" |
219 |
-fi |
220 |
- |
221 |
-DESCRIPTION="tool that helps you find what software is using the most power" |
222 |
-HOMEPAGE="https://01.org/powertop/" |
223 |
- |
224 |
-LICENSE="GPL-2" |
225 |
-SLOT="0" |
226 |
-IUSE="nls unicode X" |
227 |
- |
228 |
-COMMON_DEPEND=" |
229 |
- dev-libs/libnl:3 |
230 |
- sys-apps/pciutils |
231 |
- sys-libs/ncurses[unicode?] |
232 |
-" |
233 |
- |
234 |
-DEPEND="${COMMON_DEPEND} |
235 |
- virtual/pkgconfig |
236 |
- sys-devel/gettext |
237 |
-" |
238 |
-RDEPEND=" |
239 |
- ${COMMON_DEPEND} |
240 |
- X? ( x11-apps/xset ) |
241 |
- virtual/libintl |
242 |
-" |
243 |
- |
244 |
-DOCS=( TODO README ) |
245 |
- |
246 |
-pkg_setup() { |
247 |
- CONFIG_CHECK=" |
248 |
- ~X86_MSR |
249 |
- ~DEBUG_FS |
250 |
- ~PERF_EVENTS |
251 |
- ~TRACEPOINTS |
252 |
- ~NO_HZ |
253 |
- ~HIGH_RES_TIMERS |
254 |
- ~HPET_TIMER |
255 |
- ~CPU_FREQ_STAT |
256 |
- ~CPU_FREQ_GOV_ONDEMAND |
257 |
- ~FTRACE |
258 |
- ~BLK_DEV_IO_TRACE |
259 |
- ~TIMER_STATS |
260 |
- ~TRACING |
261 |
- " |
262 |
- ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost certainly need it" |
263 |
- ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you almost certainly need it" |
264 |
- ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel for full powertop function" |
265 |
- ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel for full powertop function" |
266 |
- ERROR_KERNEL_NO_HZ="NO_HZ should be enabled in the kernel for full powertop function" |
267 |
- ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the kernel for full powertop function" |
268 |
- ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for full powertop function" |
269 |
- ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the kernel for full powertop function" |
270 |
- ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be enabled in the kernel for full powertop function" |
271 |
- ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable BLK_DEV_IO_TRACE" |
272 |
- 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" |
273 |
- ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel for full powertop function" |
274 |
- ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full powertop function" |
275 |
- linux-info_pkg_setup |
276 |
- if linux_config_exists; then |
277 |
- if kernel_is -lt 3 7 0; then |
278 |
- if linux_chkconfig_present SND_HDA_INTEL; then |
279 |
- CONFIG_CHECK="~SND_HDA_POWER_SAVE" |
280 |
- ERROR_KERNEL_SND_HDA_POWER_SAVE="SND_HDA_POWER_SAVE should be enabled in the kernel for full powertop function" |
281 |
- check_extra_config |
282 |
- fi |
283 |
- fi |
284 |
- if kernel_is -lt 3 9 0; then |
285 |
- CONFIG_CHECK="~EVENT_POWER_TRACING_DEPRECATED" |
286 |
- ERROR_KERNEL_EVENT_POWER_TRACING_DEPRECATED="EVENT_POWER_TRACING_DEPRECATED should be enabled in the kernel for full powertop function" |
287 |
- check_extra_config |
288 |
- fi |
289 |
- if kernel_is -lt 3 19; then |
290 |
- CONFIG_CHECK="~PM_RUNTIME" |
291 |
- ERROR_KERNEL_PM_RUNTIME="PM_RUNTIME should be enabled in the kernel for full powertop function" |
292 |
- check_extra_config |
293 |
- else |
294 |
- CONFIG_CHECK="~PM" |
295 |
- ERROR_KERNEL_PM="PM should be enabled in the kernel for full powertop function" |
296 |
- check_extra_config |
297 |
- fi |
298 |
- fi |
299 |
-} |
300 |
- |
301 |
-src_prepare() { |
302 |
- epatch "${FILESDIR}"/${P}-baytrail-msr.patch |
303 |
-} |
304 |
- |
305 |
-src_configure() { |
306 |
- export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses) |
307 |
- econf $(use_enable nls) |
308 |
-} |
309 |
|
310 |
diff --git a/sys-power/powertop/powertop-2.7-r2.ebuild b/sys-power/powertop/powertop-2.7-r2.ebuild |
311 |
deleted file mode 100644 |
312 |
index 552caf0..0000000 |
313 |
--- a/sys-power/powertop/powertop-2.7-r2.ebuild |
314 |
+++ /dev/null |
315 |
@@ -1,108 +0,0 @@ |
316 |
-# Copyright 1999-2015 Gentoo Foundation |
317 |
-# Distributed under the terms of the GNU General Public License v2 |
318 |
-# $Id$ |
319 |
- |
320 |
-EAPI="5" |
321 |
- |
322 |
-inherit eutils linux-info |
323 |
-if [[ ${PV} == "9999" ]] ; then |
324 |
- EGIT_REPO_URI="git://github.com/fenrus75/powertop.git" |
325 |
- inherit git-2 autotools |
326 |
- SRC_URI="" |
327 |
-else |
328 |
- SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz" |
329 |
- KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" |
330 |
-fi |
331 |
- |
332 |
-DESCRIPTION="tool that helps you find what software is using the most power" |
333 |
-HOMEPAGE="https://01.org/powertop/" |
334 |
- |
335 |
-LICENSE="GPL-2" |
336 |
-SLOT="0" |
337 |
-IUSE="nls unicode X" |
338 |
- |
339 |
-COMMON_DEPEND=" |
340 |
- dev-libs/libnl:3 |
341 |
- sys-apps/pciutils |
342 |
- sys-libs/ncurses[unicode?] |
343 |
-" |
344 |
- |
345 |
-DEPEND="${COMMON_DEPEND} |
346 |
- virtual/pkgconfig |
347 |
- sys-devel/gettext |
348 |
-" |
349 |
-RDEPEND=" |
350 |
- ${COMMON_DEPEND} |
351 |
- X? ( x11-apps/xset ) |
352 |
- virtual/libintl |
353 |
-" |
354 |
- |
355 |
-DOCS=( TODO README ) |
356 |
- |
357 |
-pkg_setup() { |
358 |
- CONFIG_CHECK=" |
359 |
- ~X86_MSR |
360 |
- ~DEBUG_FS |
361 |
- ~PERF_EVENTS |
362 |
- ~TRACEPOINTS |
363 |
- ~NO_HZ |
364 |
- ~HIGH_RES_TIMERS |
365 |
- ~HPET_TIMER |
366 |
- ~CPU_FREQ_STAT |
367 |
- ~CPU_FREQ_GOV_ONDEMAND |
368 |
- ~FTRACE |
369 |
- ~BLK_DEV_IO_TRACE |
370 |
- ~TIMER_STATS |
371 |
- ~TRACING |
372 |
- " |
373 |
- ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost certainly need it" |
374 |
- ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you almost certainly need it" |
375 |
- ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel for full powertop function" |
376 |
- ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel for full powertop function" |
377 |
- ERROR_KERNEL_NO_HZ="NO_HZ should be enabled in the kernel for full powertop function" |
378 |
- ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the kernel for full powertop function" |
379 |
- ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for full powertop function" |
380 |
- ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the kernel for full powertop function" |
381 |
- ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be enabled in the kernel for full powertop function" |
382 |
- ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable BLK_DEV_IO_TRACE" |
383 |
- 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" |
384 |
- ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel for full powertop function" |
385 |
- ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full powertop function" |
386 |
- linux-info_pkg_setup |
387 |
- if linux_config_exists; then |
388 |
- if kernel_is -lt 3 7 0; then |
389 |
- if linux_chkconfig_present SND_HDA_INTEL; then |
390 |
- CONFIG_CHECK="~SND_HDA_POWER_SAVE" |
391 |
- ERROR_KERNEL_SND_HDA_POWER_SAVE="SND_HDA_POWER_SAVE should be enabled in the kernel for full powertop function" |
392 |
- check_extra_config |
393 |
- fi |
394 |
- fi |
395 |
- if kernel_is -lt 3 9 0; then |
396 |
- CONFIG_CHECK="~EVENT_POWER_TRACING_DEPRECATED" |
397 |
- ERROR_KERNEL_EVENT_POWER_TRACING_DEPRECATED="EVENT_POWER_TRACING_DEPRECATED should be enabled in the kernel for full powertop function" |
398 |
- check_extra_config |
399 |
- fi |
400 |
- if kernel_is -lt 3 19; then |
401 |
- CONFIG_CHECK="~PM_RUNTIME" |
402 |
- ERROR_KERNEL_PM_RUNTIME="PM_RUNTIME should be enabled in the kernel for full powertop function" |
403 |
- check_extra_config |
404 |
- else |
405 |
- CONFIG_CHECK="~PM" |
406 |
- ERROR_KERNEL_PM="PM should be enabled in the kernel for full powertop function" |
407 |
- check_extra_config |
408 |
- fi |
409 |
- fi |
410 |
-} |
411 |
- |
412 |
-src_prepare() { |
413 |
- epatch "${FILESDIR}"/${P}-baytrail-msr.patch |
414 |
- epatch "${FILESDIR}"/${P}-broadwell.patch |
415 |
- epatch "${FILESDIR}"/${P}-braswell.patch |
416 |
- epatch "${FILESDIR}"/${P}-skylake.patch |
417 |
- epatch "${FILESDIR}"/${P}-skylake-2.patch |
418 |
-} |
419 |
- |
420 |
-src_configure() { |
421 |
- export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses) |
422 |
- econf $(use_enable nls) |
423 |
-} |
424 |
|
425 |
diff --git a/sys-power/powertop/powertop-2.7.ebuild b/sys-power/powertop/powertop-2.7.ebuild |
426 |
deleted file mode 100644 |
427 |
index b3011ff..0000000 |
428 |
--- a/sys-power/powertop/powertop-2.7.ebuild |
429 |
+++ /dev/null |
430 |
@@ -1,104 +0,0 @@ |
431 |
-# Copyright 1999-2015 Gentoo Foundation |
432 |
-# Distributed under the terms of the GNU General Public License v2 |
433 |
-# $Id$ |
434 |
- |
435 |
-EAPI="5" |
436 |
- |
437 |
-inherit eutils linux-info autotools |
438 |
-if [[ ${PV} == "9999" ]] ; then |
439 |
- EGIT_REPO_URI="git://github.com/fenrus75/powertop.git" |
440 |
- inherit git-2 autotools |
441 |
- SRC_URI="" |
442 |
-else |
443 |
- SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz" |
444 |
- KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" |
445 |
-fi |
446 |
- |
447 |
-DESCRIPTION="tool that helps you find what software is using the most power" |
448 |
-HOMEPAGE="https://01.org/powertop/" |
449 |
- |
450 |
-LICENSE="GPL-2" |
451 |
-SLOT="0" |
452 |
-IUSE="unicode X" |
453 |
- |
454 |
-COMMON_DEPEND=" |
455 |
- dev-libs/libnl:3 |
456 |
- sys-apps/pciutils |
457 |
- sys-libs/ncurses[unicode?] |
458 |
-" |
459 |
- |
460 |
-DEPEND="${COMMON_DEPEND} |
461 |
- virtual/pkgconfig |
462 |
- sys-devel/gettext |
463 |
-" |
464 |
-RDEPEND=" |
465 |
- ${COMMON_DEPEND} |
466 |
- X? ( x11-apps/xset ) |
467 |
- virtual/libintl |
468 |
-" |
469 |
- |
470 |
-DOCS=( TODO README ) |
471 |
- |
472 |
-pkg_setup() { |
473 |
- CONFIG_CHECK=" |
474 |
- ~X86_MSR |
475 |
- ~DEBUG_FS |
476 |
- ~PERF_EVENTS |
477 |
- ~TRACEPOINTS |
478 |
- ~NO_HZ |
479 |
- ~HIGH_RES_TIMERS |
480 |
- ~HPET_TIMER |
481 |
- ~CPU_FREQ_STAT |
482 |
- ~CPU_FREQ_GOV_ONDEMAND |
483 |
- ~FTRACE |
484 |
- ~BLK_DEV_IO_TRACE |
485 |
- ~TIMER_STATS |
486 |
- ~TRACING |
487 |
- " |
488 |
- ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost certainly need it" |
489 |
- ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you almost certainly need it" |
490 |
- ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel for full powertop function" |
491 |
- ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel for full powertop function" |
492 |
- ERROR_KERNEL_NO_HZ="NO_HZ should be enabled in the kernel for full powertop function" |
493 |
- ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the kernel for full powertop function" |
494 |
- ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for full powertop function" |
495 |
- ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the kernel for full powertop function" |
496 |
- ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be enabled in the kernel for full powertop function" |
497 |
- ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable BLK_DEV_IO_TRACE" |
498 |
- 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" |
499 |
- ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel for full powertop function" |
500 |
- ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full powertop function" |
501 |
- linux-info_pkg_setup |
502 |
- if linux_config_exists; then |
503 |
- if kernel_is -lt 3 7 0; then |
504 |
- if linux_chkconfig_present SND_HDA_INTEL; then |
505 |
- CONFIG_CHECK="~SND_HDA_POWER_SAVE" |
506 |
- ERROR_KERNEL_SND_HDA_POWER_SAVE="SND_HDA_POWER_SAVE should be enabled in the kernel for full powertop function" |
507 |
- check_extra_config |
508 |
- fi |
509 |
- fi |
510 |
- if kernel_is -lt 3 9 0; then |
511 |
- CONFIG_CHECK="~EVENT_POWER_TRACING_DEPRECATED" |
512 |
- ERROR_KERNEL_EVENT_POWER_TRACING_DEPRECATED="EVENT_POWER_TRACING_DEPRECATED should be enabled in the kernel for full powertop function" |
513 |
- check_extra_config |
514 |
- fi |
515 |
- if kernel_is -lt 3 19; then |
516 |
- CONFIG_CHECK="~PM_RUNTIME" |
517 |
- ERROR_KERNEL_PM_RUNTIME="PM_RUNTIME should be enabled in the kernel for full powertop function" |
518 |
- check_extra_config |
519 |
- else |
520 |
- CONFIG_CHECK="~PM" |
521 |
- ERROR_KERNEL_PM="PM should be enabled in the kernel for full powertop function" |
522 |
- check_extra_config |
523 |
- fi |
524 |
- fi |
525 |
-} |
526 |
- |
527 |
-src_prepare() { |
528 |
- eautoreconf |
529 |
-} |
530 |
- |
531 |
-src_configure() { |
532 |
- export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses) |
533 |
- default |
534 |
-} |