Gentoo Archives: gentoo-commits

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