/[gentoo-x86]/sys-power/powertop/powertop-9999.ebuild
Gentoo

Contents of /sys-power/powertop/powertop-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.28 - (show annotations) (download)
Fri May 30 14:29:49 2014 UTC (3 months ago) by zerochaos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.27: +1 -2 lines
fix for bug 511740, tinfo patch merged upstream

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/powertop-9999.ebuild,v 1.27 2014/05/17 02:23:35 zerochaos Exp $
4
5 EAPI="5"
6
7 inherit eutils linux-info autotools
8 if [[ ${PV} == "9999" ]] ; then
9 EGIT_REPO_URI="git://github.com/fenrus75/powertop.git"
10 inherit git-2 autotools
11 SRC_URI=""
12 else
13 SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz"
14 KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
15 fi
16
17 DESCRIPTION="tool that helps you find what software is using the most power"
18 HOMEPAGE="https://01.org/powertop/"
19
20 LICENSE="GPL-2"
21 SLOT="0"
22 IUSE="unicode X"
23
24 COMMON_DEPEND="
25 dev-libs/libnl:3
26 sys-apps/pciutils
27 sys-libs/ncurses[unicode?]
28 "
29
30 DEPEND="${COMMON_DEPEND}
31 virtual/pkgconfig
32 sys-devel/gettext
33 "
34 RDEPEND="
35 ${COMMON_DEPEND}
36 X? ( x11-apps/xset )
37 virtual/libintl
38 "
39
40 DOCS=( TODO README )
41
42 pkg_setup() {
43 CONFIG_CHECK="
44 ~X86_MSR
45 ~DEBUG_FS
46 ~PERF_EVENTS
47 ~TRACEPOINTS
48 ~NO_HZ
49 ~HIGH_RES_TIMERS
50 ~HPET_TIMER
51 ~CPU_FREQ_STAT
52 ~CPU_FREQ_GOV_ONDEMAND
53 ~PM_RUNTIME
54 ~FTRACE
55 ~BLK_DEV_IO_TRACE
56 ~TIMER_STATS
57 ~TRACING
58 "
59 ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost certainly need it"
60 ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you almost certainly need it"
61 ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel for full powertop function"
62 ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel for full powertop function"
63 ERROR_KERNEL_NO_HZ="NO_HZ should be enabled in the kernel for full powertop function"
64 ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the kernel for full powertop function"
65 ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for full powertop function"
66 ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the kernel for full powertop function"
67 ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be enabled in the kernel for full powertop function"
68 ERROR_KERNEL_PM_RUNTIME="PM_RUNTIME should be enabled in the kernel for full powertop function"
69 ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable BLK_DEV_IO_TRACE"
70 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"
71 ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel for full powertop function"
72 ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full powertop function"
73 linux-info_pkg_setup
74 if linux_config_exists; then
75 if kernel_is -lt 3 7 0; then
76 if linux_chkconfig_present SND_HDA_INTEL; then
77 CONFIG_CHECK="~SND_HDA_POWER_SAVE"
78 ERROR_KERNEL_SND_HDA_POWER_SAVE="SND_HDA_POWER_SAVE should be enabled in the kernel for full powertop function"
79 check_extra_config
80 fi
81 fi
82 if kernel_is -lt 3 9 0; then
83 CONFIG_CHECK="~EVENT_POWER_TRACING_DEPRECATED"
84 ERROR_KERNEL_EVENT_POWER_TRACING_DEPRECATED="EVENT_POWER_TRACING_DEPRECATED should be enabled in the kernel for full powertop function"
85 check_extra_config
86 fi
87 fi
88 }
89
90 src_prepare() {
91 eautoreconf
92 }
93
94 src_configure() {
95 export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses)
96 default
97 }

  ViewVC Help
Powered by ViewVC 1.1.20