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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Sep 3 18:15:14 2013 UTC (10 months, 2 weeks ago) by zerochaos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
remove old ebuild, update HOMEPATE

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

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/powertop-2.3.ebuild,v 1.6 2013/07/24 14:09:16 zerochaos Exp $
4
5 EAPI="5"
6
7 inherit eutils linux-info
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/powertop/sites/default/files/downloads/${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 ~EVENT_POWER_TRACING_DEPRECATED
58 ~TRACING
59 "
60 ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost certainly need it"
61 ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you almost certainly need it"
62 ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel for full powertop function"
63 ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel for full powertop function"
64 ERROR_KERNEL_NO_HZ="NO_HZ should be enabled in the kernel for full powertop function"
65 ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the kernel for full powertop function"
66 ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for full powertop function"
67 ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the kernel for full powertop function"
68 ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be enabled in the kernel for full powertop function"
69 ERROR_KERNEL_PM_RUNTIME="PM_RUNTIME should be enabled in the kernel for full powertop function"
70 ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable BLK_DEV_IO_TRACE"
71 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"
72 ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel for full powertop function"
73 ERROR_KERNEL_EVENT_POWER_TRACING_DEPRECATED="EVENT_POWER_TRACING_DEPRECATED should be enabled in the kernel for full powertop function"
74 ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full powertop function"
75 linux-info_pkg_setup
76 if linux_config_exists; then
77 if kernel_is -lt 3 7 0; then
78 if linux_chkconfig_present SND_HDA_INTEL; then
79 CONFIG_CHECK="~SND_HDA_POWER_SAVE"
80 ERROR_KERNEL_SND_HDA_POWER_SAVE="SND_HDA_POWER_SAVE should be enabled in the kernel for full powertop function"
81 check_extra_config
82 fi
83 fi
84 fi
85 }
86
87 src_prepare() {
88 if [[ ${PV} == "9999" ]] ; then
89 eautoreconf
90 fi
91 }
92
93 src_configure() {
94 export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses)
95 default
96 }
97
98 src_compile() {
99 #maintainer note: there is no csstoh dir in this version, any needed changes for cross are permitted
100 # This fixes cross-compiling. Please verify before deleting.
101 #emake -C src csstoh
102 #cp "${FILESDIR}"/csstoh src/ || die
103 emake
104 }
105
106 src_install() {
107 default
108 keepdir /var/cache/powertop
109 }

  ViewVC Help
Powered by ViewVC 1.1.20