diff options
author | Michael Weber <xmw@gentoo.org> | 2010-08-16 23:02:49 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2010-08-16 23:02:49 +0000 |
commit | 31deba376babd32e274dcd8fe4466b624a17ccad (patch) | |
tree | 6f1afc35d6ef9f5d364c3ed357a772cafbf52225 /sys-power/phc-intel/phc-intel-0.3.2.12.1-r1.ebuild | |
parent | app-misc/perroquet: Version bump (diff) | |
download | sunrise-31deba376babd32e274dcd8fe4466b624a17ccad.tar.gz sunrise-31deba376babd32e274dcd8fe4466b624a17ccad.tar.bz2 sunrise-31deba376babd32e274dcd8fe4466b624a17ccad.zip |
sys-power/phc-intel: revision bump for 2.6.35 kernel sources, patch from http://aur.archlinux.org/packages.php?ID=24980
svn path=/sunrise/; revision=11179
Diffstat (limited to 'sys-power/phc-intel/phc-intel-0.3.2.12.1-r1.ebuild')
-rw-r--r-- | sys-power/phc-intel/phc-intel-0.3.2.12.1-r1.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sys-power/phc-intel/phc-intel-0.3.2.12.1-r1.ebuild b/sys-power/phc-intel/phc-intel-0.3.2.12.1-r1.ebuild new file mode 100644 index 000000000..b37bd9891 --- /dev/null +++ b/sys-power/phc-intel/phc-intel-0.3.2.12.1-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +inherit linux-info linux-mod versionator + +DESCRIPTION="Processor Hardware Control for Intel CPUs" +HOMEPAGE="http://www.linux-phc.org/" +SRC_URI="http://www.linux-phc.org/forum/download/file.php?id=94 -> ${P}.tar.bz2 + http://xmw.de/mirror/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S=${WORKDIR}/${PN}-$(replace_version_separator 3 '-' $(replace_version_separator 4 '-')) + +CONFIG_CHECK="~!X86_ACPI_CPUFREQ" +ERROR_X86_ACPI_CPUFREQ="CONFIG_X86_ACPI_CPUFREQ has to be configured to Module or Not set to enable the replacement of acpi-cpufreq with phc-intel." + +MODULE_NAMES="phc-intel(misc:)" +BUILD_PARAMS="KERNELSRC=\"${KERNEL_DIR}\" -j1" +BUILD_TARGETS="all" + +pkg_setup() { + if kernel_is lt 2 6 33 ; then + eerror "Your kernel version is no longer supported by this version of ${PN}." + eerror "Please use a previous version of ${PN} or a newer kernel." + die + fi + linux-mod_pkg_setup +} + +src_prepare() { + if kernel_is eq 2 6 35 ; then + cp "${KERNEL_DIR}"/arch/x86/kernel/cpu/cpufreq/mperf.h . || die + + mkdir inc/2.6.35 || die + cp "${FILESDIR}"/${P}-2.6.35.patch \ + inc/2.6.35/linux-phc-$(get_version_component_range 1-3).patch \ + || die + cp "${KERNEL_DIR}"/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c inc/2.6.35 || die + fi +} + +src_install() { + linux-mod_src_install + dodoc README || die +} |