# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils linux-info DESCRIPTION="Processor Hardwae Control for Intel Chips" HOMEPAGE="http://www.linux-phc.org/" RESTRICT="primaryuri" SRC_URI="http://www.linux-phc.org/forum/download/file.php?id=60 -> phc-intel-0.3.2-8.tar.gz" KEYWORDS="~amd64 ~x86" SLOT="0" LICENSE="GPL-2" IUSE="" DEPEND="" RDEPEND="" CONFIG_CHECK="!CONFIG_X86_ACPI_CPUFREQ" ERROR_CONFIG_X86_ACPI_CPUFREQ="CONFIG_X86_ACPI_CPUFREQ should be set to module or not set, to enable the replacement of acpi-cpufreq with phc-intel." S="${WORKDIR}/phc-intel-0.3.2-8" src_prepare() { epatch "${FILESDIR}/${PF}_all_sandbox.patch" } src_configure() { # we need to set ARCH explicit to get the correct SRCARCH=x86_64 instead of amd64 in line 535 of /usr/src/linux/Makefile emake ARCH=`uname -m` KERNELSRC=${KERNEL_DIR} prepare || die "configure failed" } src_compile() { emake ARCH=`uname -m` KERNELSRC=${KERNEL_DIR} || die "compile failed" } src_install() { emake DESTDIR="${D}" install || die "install failed" ewarn "You should run depmod ${KV_FULL} -a now" }