summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2017-09-12 15:10:31 -0400
committerMike Gilbert <floppym@gentoo.org>2017-09-12 15:13:29 -0400
commit3809cac66868d2631c275ce210663c826e11ec2f (patch)
treeb6173c6750cf5dfc034eabddbb4cb8e54e71c410 /sys-power
parentsys-power/cpupower: install cpupower.h (diff)
downloadgentoo-3809cac66868d2631c275ce210663c826e11ec2f.tar.gz
gentoo-3809cac66868d2631c275ce210663c826e11ec2f.tar.bz2
gentoo-3809cac66868d2631c275ce210663c826e11ec2f.zip
sys-power/cpupower: bump to 4.13.0
Package-Manager: Portage-2.3.6_p60, Repoman-2.3.3_p38
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/cpupower/Manifest1
-rw-r--r--sys-power/cpupower/cpupower-4.13.0.ebuild70
-rw-r--r--sys-power/cpupower/files/cflags-strip.patch18
3 files changed, 89 insertions, 0 deletions
diff --git a/sys-power/cpupower/Manifest b/sys-power/cpupower/Manifest
index 931388fc2711..e7970590735c 100644
--- a/sys-power/cpupower/Manifest
+++ b/sys-power/cpupower/Manifest
@@ -1,2 +1,3 @@
+DIST cpupower-4.13.0.tar.xz 67812 SHA256 8336dd1e4e6c5c8ab42c29ba373317987e500b8771a45d5f6289781783955b12 SHA512 5e7095e2741eae920a097864926931afb2656e492b504f203c40c24ddc5aee5014c7689b220225171b5ea10c69b70774fb2a979d05ea56ef1fa063f3097626c7 WHIRLPOOL d4273cbb97f3a0f6aa346513b8b7e3c57d08514e4d30aac710522c96d4b129bd64e03d52f6c97e1b8b48199339de54f60f2d588889161e3dcc4203ae2daf2a9a
DIST cpupower-4.9.0.tar.xz 67620 SHA256 5e0eda0f31c6c14b0b181d98ad89ead6ea62114635eb29ad288778bbe0c88168 SHA512 67137bd7166a34f131332a5165384ebca5b97deb1c92e6d557195da4be4fecb0c5902159f748ea454461ad2181a778c32b4e4dfd1f8ce7e6a3ec41f553f23677 WHIRLPOOL 73dc80fe4308146efcbc05b3b7290a66d23b6653cde9013b76d230a914b184212f7a0713b82857c882c65a3448febcd08ae4581499cf97bb0e21a5622053c519
DIST linux-3.18.tar.xz 80934708 SHA256 becc413cc9e6d7f5cc52a3ce66d65c3725bc1d1cc1001f4ce6c32b69eb188cbd SHA512 2f0b72466e9bc538a675738aa416573d41bbbd7e3e2ffd5b5b127afde609ebc278cec5a3c37e73479607e957c13f1b4ed9782a3795e0dcc2cf8e550228594009 WHIRLPOOL 81634af631b7d30ccd1f4798f96f44d9aa0ba6609b73f2747eb6aebaf7a99487fb2dbd45767605186182533cb222bfd9236e8dd5e11a04fdb67c211e4e0a91d6
diff --git a/sys-power/cpupower/cpupower-4.13.0.ebuild b/sys-power/cpupower/cpupower-4.13.0.ebuild
new file mode 100644
index 000000000000..587151346b8c
--- /dev/null
+++ b/sys-power/cpupower/cpupower-4.13.0.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# eutils: strip-linguas
+inherit eutils systemd toolchain-funcs
+
+DESCRIPTION="Shows and sets processor power related values"
+HOMEPAGE="https://www.kernel.org/"
+SRC_URI="https://dev.gentoo.org/~floppym/dist/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0/0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="cpufreq_bench nls"
+
+# File collision w/ headers of the deprecated cpufrequtils
+RDEPEND="sys-apps/pciutils
+ !<sys-apps/linux-misc-apps-3.6-r2
+ !sys-power/cpufrequtils"
+DEPEND="${RDEPEND}
+ virtual/os-headers
+ nls? ( sys-devel/gettext )"
+
+PATCHES=(
+ "${FILESDIR}"/cflags-strip.patch
+)
+
+src_configure() {
+ export bindir="${EPREFIX}/usr/bin"
+ export sbindir="${EPREFIX}/usr/sbin"
+ export mandir="${EPREFIX}/usr/share/man"
+ export includedir="${EPREFIX}/usr/include"
+ export libdir="${EPREFIX}/usr/$(get_libdir)"
+ export localedir="${EPREFIX}/usr/share/locale"
+ export docdir="${EPREFIX}/usr/share/doc/${PF}"
+ export confdir="${EPREFIX}/etc"
+ export V=1
+ export NLS=$(usex nls true false)
+ export CPUFREQ_BENCH=$(usex cpufreq_bench true false)
+}
+
+src_compile() {
+ myemakeargs=(
+ AR="$(tc-getAR)"
+ CC="$(tc-getCC)"
+ LD="$(tc-getCC)"
+ VERSION=${PV}
+ )
+
+ if [[ -n ${LINGUAS+set} ]]; then
+ strip-linguas -i po
+ myemakeargs+=( LANGUAGES="${LINGUAS}" )
+ fi
+
+ emake "${myemakeargs[@]}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" "${myemakeargs[@]}" install
+ doheader lib/cpupower.h
+ dodoc README ToDo
+
+ newconfd "${FILESDIR}"/conf.d-r2 cpupower
+ newinitd "${FILESDIR}"/init.d-r4 cpupower
+
+ systemd_dounit "${FILESDIR}"/cpupower-frequency-set.service
+ systemd_install_serviced "${FILESDIR}"/cpupower-frequency-set.service.conf
+}
diff --git a/sys-power/cpupower/files/cflags-strip.patch b/sys-power/cpupower/files/cflags-strip.patch
new file mode 100644
index 000000000000..6e70fdf38b1c
--- /dev/null
+++ b/sys-power/cpupower/files/cflags-strip.patch
@@ -0,0 +1,18 @@
+--- a/Makefile
++++ b/Makefile
+@@ -180,14 +180,7 @@
+ endif
+ export QUIET ECHO
+
+-# if DEBUG is enabled, then we do not strip or optimize
+-ifeq ($(strip $(DEBUG)),true)
+- CFLAGS += -O1 -g -DDEBUG
+- STRIPCMD = /bin/true -Since_we_are_debugging
+-else
+- CFLAGS += $(OPTIMIZATION) -fomit-frame-pointer
+- STRIPCMD = $(STRIP) -s --remove-section=.note --remove-section=.comment
+-endif
++STRIPCMD = true
+
+
+ # the actual make rules