You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.2 KiB
53 lines
1.2 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Id$
|
||
|
|
||
|
EAPI=5
|
||
|
inherit multilib toolchain-funcs
|
||
|
|
||
|
DESCRIPTION="Shows and sets processor power related values"
|
||
|
HOMEPAGE="https://www.kernel.org/"
|
||
|
SRC_URI="mirror://kernel/linux/kernel/v3.x/linux-${PV}.tar.xz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~arm ~x86"
|
||
|
IUSE="cpufreq_bench debug nls"
|
||
|
|
||
|
# File collision w/ headers of the deprecated cpufrequtils
|
||
|
RDEPEND="sys-apps/pciutils
|
||
|
!<sys-apps/linux-misc-apps-3.6-r2
|
||
|
!sys-power/cpufrequtils"
|
||
|
DEPEND="${RDEPEND}
|
||
|
virtual/os-headers
|
||
|
nls? ( sys-devel/gettext )"
|
||
|
|
||
|
S=${WORKDIR}/linux-${PV}/tools/power/${PN}
|
||
|
|
||
|
src_compile() {
|
||
|
myemakeargs=(
|
||
|
DEBUG=$(usex debug true false)
|
||
|
V=1
|
||
|
CPUFREQ_BENCH=$(usex cpufreq_bench true false)
|
||
|
NLS=$(usex nls true false)
|
||
|
docdir=/usr/share/doc/${PF}/${PN}
|
||
|
mandir=/usr/share/man
|
||
|
libdir=/usr/$(get_libdir)
|
||
|
AR="$(tc-getAR)"
|
||
|
CC="$(tc-getCC)"
|
||
|
LD="$(tc-getCC)"
|
||
|
STRIP=true
|
||
|
LDFLAGS="${LDFLAGS}"
|
||
|
OPTIMIZATION="${CFLAGS}"
|
||
|
)
|
||
|
emake "${myemakeargs[@]}"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
emake DESTDIR="${D}" "${myemakeargs[@]}" install
|
||
|
dodoc README ToDo
|
||
|
|
||
|
newconfd "${FILESDIR}"/conf.d-r2 ${PN}
|
||
|
newinitd "${FILESDIR}"/init.d-r4 ${PN}
|
||
|
}
|