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