1 |
zerochaos 12/11/23 18:05:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: powertop-2.2-r1.ebuild |
5 |
Removed: powertop-2.2.ebuild |
6 |
Log: |
7 |
fix powertop 2.2 to report proper version tag wrt bug #444466 |
8 |
|
9 |
(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key DD11F94A) |
10 |
|
11 |
Revision Changes Path |
12 |
1.73 sys-power/powertop/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/powertop/ChangeLog?rev=1.73&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/powertop/ChangeLog?rev=1.73&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/powertop/ChangeLog?r1=1.72&r2=1.73 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-power/powertop/ChangeLog,v |
21 |
retrieving revision 1.72 |
22 |
retrieving revision 1.73 |
23 |
diff -u -r1.72 -r1.73 |
24 |
--- ChangeLog 22 Nov 2012 21:22:36 -0000 1.72 |
25 |
+++ ChangeLog 23 Nov 2012 18:05:35 -0000 1.73 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for sys-power/powertop |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/ChangeLog,v 1.72 2012/11/22 21:22:36 zerochaos Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/ChangeLog,v 1.73 2012/11/23 18:05:35 zerochaos Exp $ |
31 |
+ |
32 |
+*powertop-2.2-r1 (23 Nov 2012) |
33 |
+ |
34 |
+ 23 Nov 2012; Rick Farina <zerochaos@g.o> |
35 |
+ +files/powertop-2.2-use-package_version.patch, +powertop-2.2-r1.ebuild, |
36 |
+ -powertop-2.2.ebuild: |
37 |
+ fix powertop 2.2 to report proper version tag wrt bug #444466 |
38 |
|
39 |
22 Nov 2012; Rick Farina <zerochaos@g.o> powertop-2.2.ebuild: |
40 |
fix bug #444370 by switching to EAPI5, there goes my cherry |
41 |
|
42 |
|
43 |
|
44 |
1.1 sys-power/powertop/powertop-2.2-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/powertop/powertop-2.2-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/powertop/powertop-2.2-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: powertop-2.2-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2012 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/powertop-2.2-r1.ebuild,v 1.1 2012/11/23 18:05:35 zerochaos Exp $ |
54 |
|
55 |
EAPI="5" |
56 |
|
57 |
inherit eutils linux-info |
58 |
if [ ${PV} == "9999" ] ; then |
59 |
EGIT_REPO_URI="git://github.com/fenrus75/powertop.git" |
60 |
inherit git-2 autotools |
61 |
SRC_URI="" |
62 |
else |
63 |
SRC_URI="https://01.org/powertop/sites/default/files/downloads/${P}.tar.gz" |
64 |
KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" |
65 |
fi |
66 |
|
67 |
DESCRIPTION="tool that helps you find what software is using the most power" |
68 |
HOMEPAGE="https://01.org/powertop/ http://www.lesswatts.org/projects/powertop/" |
69 |
|
70 |
LICENSE="GPL-2" |
71 |
SLOT="0" |
72 |
IUSE="unicode X" |
73 |
|
74 |
COMMON_DEPEND=" |
75 |
dev-libs/libnl:3 |
76 |
sys-apps/pciutils |
77 |
sys-devel/gettext |
78 |
sys-libs/ncurses[unicode?] |
79 |
" |
80 |
|
81 |
DEPEND="${COMMON_DEPEND} |
82 |
virtual/pkgconfig |
83 |
" |
84 |
RDEPEND=" |
85 |
${COMMON_DEPEND} |
86 |
X? ( x11-apps/xset ) |
87 |
" |
88 |
|
89 |
DOCS=( TODO README ) |
90 |
|
91 |
pkg_setup() { |
92 |
if linux_config_exists; then |
93 |
CONFIG_CHECK=" |
94 |
~X86_MSR |
95 |
~DEBUG_FS |
96 |
~PERF_EVENTS |
97 |
~TRACEPOINTS |
98 |
~NO_HZ |
99 |
~HIGH_RES_TIMERS |
100 |
~HPET_TIMER |
101 |
~CPU_FREQ_STAT |
102 |
~CPU_FREQ_GOV_ONDEMAND |
103 |
~USB_SUSPEND |
104 |
~FTRACE |
105 |
~BLK_DEV_IO_TRACE |
106 |
~TIMER_STATS |
107 |
~EVENT_POWER_TRACING_DEPRECATED |
108 |
~TRACING |
109 |
" |
110 |
if kernel_is -lt 3 7 0; then |
111 |
linux_chkconfig_present SND_HDA_INTEL && CONFIG_CHECK+="~SND_HDA_POWER_SAVE" |
112 |
linux_chkconfig_present SND_HDA_INTEL && ERROR_KERNEL_SND_HDA_POWER_SAVE="SND_HDA_POWER_SAVE should be enabled in the kernel for full powertop function" |
113 |
fi |
114 |
ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost certainly need it" |
115 |
ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you almost certainly need it" |
116 |
ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel for full powertop function" |
117 |
ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel for full powertop function" |
118 |
ERROR_KERNEL_NO_HZ="NO_HZ should be enabled in the kernel for full powertop function" |
119 |
ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the kernel for full powertop function" |
120 |
ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for full powertop function" |
121 |
ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the kernel for full powertop function" |
122 |
ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be enabled in the kernel for full powertop function" |
123 |
ERROR_KERNEL_USB_SUSPEND="USB_SUSPEND should be enabled in the kernel for full powertop function" |
124 |
ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable BLK_DEV_IO_TRACE" |
125 |
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" |
126 |
ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel for full powertop function" |
127 |
ERROR_KERNEL_EVENT_POWER_TRACING_DEPRECATED="EVENT_POWER_TRACING_DEPRECATED should be enabled in the kernel for full powertop function" |
128 |
ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full powertop function" |
129 |
linux-info_pkg_setup |
130 |
else |
131 |
ewarn "unable to find kernel config, all checks disabled" |
132 |
fi |
133 |
} |
134 |
|
135 |
src_prepare() { |
136 |
epatch "${FILESDIR}"/${P}-use-package_version.patch |
137 |
if [ ${PV} == "9999" ] ; then |
138 |
eautoreconf |
139 |
fi |
140 |
} |
141 |
|
142 |
src_configure() { |
143 |
export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses) |
144 |
default |
145 |
} |
146 |
|
147 |
src_compile() { |
148 |
#the clean is needed because the 2.1 tarball had object files in src/tuning/ |
149 |
emake clean |
150 |
emake |
151 |
} |
152 |
|
153 |
src_install() { |
154 |
default |
155 |
keepdir /var/cache/powertop |
156 |
} |