diff options
author | Michael Weber <xmw@gentoo.org> | 2015-07-08 20:46:49 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2015-07-08 20:46:49 +0000 |
commit | 30bd0b66121895917a6317a14134eab680d036d5 (patch) | |
tree | ecf2934038379b09723184311c9d383c57a01314 /sys-power | |
parent | x86 stable wrt bug #554114 (diff) | |
download | gentoo-2-30bd0b66121895917a6317a14134eab680d036d5.tar.gz gentoo-2-30bd0b66121895917a6317a14134eab680d036d5.tar.bz2 gentoo-2-30bd0b66121895917a6317a14134eab680d036d5.zip |
Version bump (bug 552430, thanks Sasha Medvedev).
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/phc-intel/ChangeLog | 7 | ||||
-rw-r--r-- | sys-power/phc-intel/phc-intel-0.3.2.12.17.ebuild | 72 |
2 files changed, 78 insertions, 1 deletions
diff --git a/sys-power/phc-intel/ChangeLog b/sys-power/phc-intel/ChangeLog index bdf195bb39e2..0fcaffe6816e 100644 --- a/sys-power/phc-intel/ChangeLog +++ b/sys-power/phc-intel/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-power/phc-intel # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/phc-intel/ChangeLog,v 1.24 2015/04/29 19:39:35 mrueg Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/phc-intel/ChangeLog,v 1.25 2015/07/08 20:46:49 xmw Exp $ + +*phc-intel-0.3.2.12.17 (08 Jul 2015) + + 08 Jul 2015; Michael Weber <xmw@gentoo.org> +phc-intel-0.3.2.12.17.ebuild: + Version bump (bug 552430, thanks Sasha Medvedev). 29 Apr 2015; Manuel Rüger <mrueg@gentoo.org> -phc-intel-0.3.2.10.ebuild: Remove old. diff --git a/sys-power/phc-intel/phc-intel-0.3.2.12.17.ebuild b/sys-power/phc-intel/phc-intel-0.3.2.12.17.ebuild new file mode 100644 index 000000000000..94f737f03477 --- /dev/null +++ b/sys-power/phc-intel/phc-intel-0.3.2.12.17.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/phc-intel/phc-intel-0.3.2.12.17.ebuild,v 1.1 2015/07/08 20:46:49 xmw Exp $ + +EAPI=5 + +inherit linux-info linux-mod eutils + +DESCRIPTION="Processor Hardware Control for Intel CPUs" +HOMEPAGE="http://www.linux-phc.org/ + http://www.linux-phc.org/forum/viewtopic.php?f=7&t=267" +#no automatic filenames here, sorry +SRC_URI="http://www.linux-phc.org/forum/download/file.php?id=166 -> phc-intel-pack-rev17.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +CONFIG_CHECK="~!X86_ACPI_CPUFREQ" +ERROR_X86_ACPI_CPUFREQ="CONFIG_X86_ACPI_CPUFREQ has to be configured to Module to enable the replacement of acpi-cpufreq with phc-intel." + +MODULE_NAMES="phc-intel(misc:)" +BUILD_PARAMS="KERNELSRC=\"${KERNEL_DIR}\" -j1" +BUILD_TARGETS="all" + +S=${WORKDIR}/${A/.tar.bz2} + +pkg_setup() { + if kernel_is lt 2 6 27 ; 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 + if kernel_is gt 4 0 ; then + eerror "Your kernel version is not yet tested with this version of ${PN}." + eerror "It might not build or expose runtime problems." + fi + linux-mod_pkg_setup +} + +src_prepare() { + epatch \ + "${FILESDIR}"/phc-intel-0.3.2-rev12-trailing-space-misc.patch \ + "${FILESDIR}"/phc-intel-0.3.2-rev15-trailing-space-3.5.patch \ + "${FILESDIR}"/phc-intel-0.3.2-rev14-trailing-space-3.13.patch \ + "${FILESDIR}"/phc-intel-0.3.2-rev14-trailing-space-3.14.patch \ + "${FILESDIR}"/phc-intel-0.3.2-rev15-trailing-space-3.15.patch \ + "${FILESDIR}"/phc-intel-0.3.2-rev16-trailing-space-3.16.patch + + sed -e '/^all:/s:prepare::' \ + -i Makefile || die + + local my_sub=arch/x86/kernel/cpu + if kernel_is gt 2 6 39 ; then + my_sub=drivers + fi + cp -v "${KERNEL_DIR}"/${my_sub}/cpufreq/acpi-cpufreq.c . || die + if kernel_is lt 3 12 ; then + cp -v "${KERNEL_DIR}"/${my_sub}/cpufreq/mperf.h . || die + fi + + if kernel_is lt 3 0 ; then + epatch inc/${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}/linux-phc-0.3.2.patch + elif kernel_is lt 3 17 ; then + epatch inc/${KV_MAJOR}.${KV_MINOR}/linux-phc-0.3.2.patch + else + epatch inc/3.16/linux-phc-0.3.2.patch + fi + + mv acpi-cpufreq.c phc-intel.c || die +} |