sys-power/cpupower: Bump to 4.2
authorMike Gilbert <floppym@gentoo.org>
Sun, 20 Sep 2015 16:07:47 +0000 (12:07 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sun, 20 Sep 2015 16:09:54 +0000 (12:09 -0400)
Also clean up the ebuild a bit:
- Move myemakeargs from pkg_setup to src_compile
- Drop the pointless pkg-config call
- Drop the pointless sed

Bug: https://bugs.gentoo.org/553804

Package-Manager: portage-2.2.20_p48

sys-power/cpupower/Manifest
sys-power/cpupower/cpupower-4.2.ebuild [new file with mode: 0644]

index 2696bda85c7da379e1815af7a198b396ab118c63..a470860c83881018b5de4c7fd72c9cadc4cf2305 100644 (file)
@@ -2,3 +2,4 @@ DIST linux-3.13.tar.xz 77187032 SHA256 4d5e5eee5f276424c32e9591f1b6c971baedc7b49
 DIST linux-3.14.tar.xz 78399152 SHA256 61558aa490855f42b6340d1a1596be47454909629327c49a5e4e10268065dffa SHA512 5730d83a7a81134c1e77c0bf89e42dee4f8251ad56c1ac2be20c59e26fdfaa7bea55f277e7af156b637f22e1584914a46089af85039177cb43485089c74ac26e WHIRLPOOL 5ad07b78c362ba0b21c50b4abb99407cae06bd08576f3fd8f36047b01409eba096263208020da3dcad4977eefc61d66502276754097bc127635df1d7a5817d41
 DIST linux-3.15.tar.xz 79676484 SHA256 c3927e87be4040fa8aca1b58663dc0776aaf00485604ff88a623be2f3fb07794 SHA512 d5dc477cad4584e56e2e2ef9e0950c2b22e76e5cf5090a896ba099cb7c5e5db1853a4aeb96b199189653dc66d461557e95198e37516a619f7ddc01ba6b308e02 WHIRLPOOL 7f3dfde1a23aab75b7f40770ae2ca77c1b28f845e4abe6296b2aec9b56fe94f7afa76b00eb6cc7475305c31b726ebeb4643107dd48c12ac04c933cf1856b8e77
 DIST linux-3.18.tar.xz 80934708 SHA256 becc413cc9e6d7f5cc52a3ce66d65c3725bc1d1cc1001f4ce6c32b69eb188cbd SHA512 2f0b72466e9bc538a675738aa416573d41bbbd7e3e2ffd5b5b127afde609ebc278cec5a3c37e73479607e957c13f1b4ed9782a3795e0dcc2cf8e550228594009 WHIRLPOOL 81634af631b7d30ccd1f4798f96f44d9aa0ba6609b73f2747eb6aebaf7a99487fb2dbd45767605186182533cb222bfd9236e8dd5e11a04fdb67c211e4e0a91d6
+DIST linux-4.2.tar.xz 85507784 SHA256 cf20e044f17588d2a42c8f2a450b0fd84dfdbd579b489d93e9ab7d0e8b45dbeb SHA512 a87bbce3c0c6d810a41bbba1c0dcaae80dc38dded9f8571e97fa4ee5a468d655daf52d260911412f7c7da3171a5114e89d63da14b1753b9a3eb2cc38fd89b9ee WHIRLPOOL 2058e664ee287cc03119ff3dd0155b7018b9c789a13a1012f190e516172f845dcb2d977c8e6a6951e9bd720e5e8cdfa3b888cce392c9b02780520e77475870d0
diff --git a/sys-power/cpupower/cpupower-4.2.ebuild b/sys-power/cpupower/cpupower-4.2.ebuild
new file mode 100644 (file)
index 0000000..7634782
--- /dev/null
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit multilib toolchain-funcs
+
+DESCRIPTION="Shows and sets processor power related values"
+HOMEPAGE="https://www.kernel.org/"
+SRC_URI="mirror://kernel/linux/kernel/v3.x/linux-${PV}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="cpufreq_bench debug 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 )"
+
+S=${WORKDIR}/linux-${PV}/tools/power/${PN}
+
+src_compile() {
+       myemakeargs=(
+               DEBUG=$(usex debug true false)
+               V=1
+               CPUFREQ_BENCH=$(usex cpufreq_bench true false)
+               NLS=$(usex nls true false)
+               docdir=/usr/share/doc/${PF}/${PN}
+               mandir=/usr/share/man
+               libdir=/usr/$(get_libdir)
+               AR="$(tc-getAR)"
+               CC="$(tc-getCC)"
+               LD="$(tc-getCC)"
+               STRIP=true
+               LDFLAGS="${LDFLAGS}"
+               OPTIMIZATION="${CFLAGS}"
+       )
+       emake "${myemakeargs[@]}"
+}
+
+src_install() {
+       emake DESTDIR="${D}" "${myemakeargs[@]}" install
+       dodoc README ToDo
+
+       newconfd "${FILESDIR}"/conf.d-r2 ${PN}
+       newinitd "${FILESDIR}"/init.d-r4 ${PN}
+}