# 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 AMD K8 Chips" HOMEPAGE="http://www.linux-phc.org/" RESTRICT="primaryuri" SRC_URI="http://www.linux-phc.org/forum/download/file.php?id=47 -> phc-k8_v0.4.1.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-k8_v0.4.1" # we need to set ARCH explicit to get the correct SRCARCH=x86_64 instead of amd64 in /usr/src/linux/Makefile myarch=${ARCH} if [ ${myarch} == amd64 ]; then myarch="x86_64" fi src_prepare() { epatch "${FILESDIR}/${PF}_all_sandbox.patch" } src_compile() { emake ARCH=${myarch} KERNELSRC=${KERNEL_DIR} all || die "compile failed" } src_install() { emake DESTDIR="${D}" install || die "install failed" ewarn "You should run an \"depmod ${KV_FULL} -a\" now" }