Mercurial > hg > portage
comparison sys-power/cpufrequtils/cpufrequtils-006.ebuild @ 191:6f48ae6f62bf
bump cpufrequtils to latest v6
author | holger |
---|---|
date | Wed, 25 Nov 2009 14:35:19 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
177:11adf80154c3 | 191:6f48ae6f62bf |
---|---|
1 # Copyright 1999-2009 Gentoo Foundation | |
2 # Distributed under the terms of the GNU General Public License v2 | |
3 # $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/cpufrequtils-005-r1.ebuild,v 1.5 2009/07/11 23:37:21 josejx Exp $ | |
4 | |
5 inherit eutils toolchain-funcs multilib | |
6 | |
7 DESCRIPTION="Userspace utilities for the Linux kernel cpufreq subsystem" | |
8 HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html" | |
9 SRC_URI="mirror://kernel/linux/utils/kernel/cpufreq/${P}.tar.bz2" | |
10 | |
11 LICENSE="GPL-2" | |
12 SLOT="0" | |
13 KEYWORDS="amd64 arm ppc ppc64 sparc x86" | |
14 IUSE="debug nls" | |
15 | |
16 DEPEND="sys-fs/sysfsutils" | |
17 | |
18 src_unpack() { | |
19 unpack ${A} | |
20 cd "${S}" | |
21 epatch "${FILESDIR}"/${P}-build.patch | |
22 epatch "${FILESDIR}"/${P}-nls.patch #205576 | |
23 } | |
24 | |
25 ft() { use $1 && echo true || echo false ; } | |
26 | |
27 src_compile() { | |
28 emake \ | |
29 OPTIMIZATION= V=true \ | |
30 DEBUG=$(ft debug) \ | |
31 NLS=$(ft nls) \ | |
32 CC=$(tc-getCC) LD=$(tc-getCC) AR=$(tc-getAR) STRIP=echo RANLIB=$(tc-getRANLIB) \ | |
33 || die "emake failed" | |
34 } | |
35 | |
36 src_install() { | |
37 emake \ | |
38 DESTDIR="${D}" \ | |
39 NLS=$(ft nls) \ | |
40 mandir=/usr/share/man \ | |
41 libdir=/usr/$(get_libdir) \ | |
42 install || die "make install failed" | |
43 | |
44 newconfd "${FILESDIR}"/${PN}-conf.d-006 ${PN} | |
45 newinitd "${FILESDIR}"/${PN}-init.d-006 ${PN} | |
46 | |
47 dodoc AUTHORS README | |
48 } |