# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils linux-info linux-mod DESCRIPTION="Processor Hardwae Control for Intel Chips" HOMEPAGE="http://www.linux-phc.org/" PHC_VER="${P%.*}-${P##*.}" RESTRICT="primaryuri" SRC_URI="http://www.linux-phc.org/forum/download/file.php?id=87 -> ${PHC_VER}.tar.bz2" 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 has to be set to Module or Not set, to enable the replacement of acpi-cpufreq with phc-intel." S="${WORKDIR}/${PHC_VER}" MODULE_NAMES="phc-intel(misc:)" BUILD_PARAMS="-j1 KERNELSRC=${KERNEL_DIR}" BUILD_TARGETS="prepare all" src_prepare() { if kernel_is -ge 2 6 33 ; then sed -i "s:include/linux/utsrelease.h:include/generated/utsrelease.h:" Makefile || die fi }