# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit linux-mod DESCRIPTION="Enables Linux users to undervolt their CPUs." HOMEPAGE="http://www.linux-phc.org/" PHC_VER="${P%.*}-${P##*.}" SRC_URI="http://www.linux-phc.org/forum/download/file.php?id=55 -> ${PHC_VER}.tar.gz" LICENSE="GPL-2" KEYWORDS="~x86 ~amd64" SLOT="0" IUSE="" DEPEND="" MODULE_NAMES="phc-intel(extra:)" CONFIG_CHECK="CPU_FREQ !X86_ACPI_CPUFREQ" BUILD_PARAMS="-j1 KERNELSRC=${KERNEL_DIR}" BUILD_TARGETS="prepare all" src_unpack() { unpack ${A} mv ${PHC_VER} ${P} } src_install() { linux-mod_src_install insinto /etc/modprobe.d newins "${WORKDIR}"/${P}/phc-intel.modprobe phc-intel.conf || die }