1 |
commit: a400d547ea53dfaaac6fa664b7cd4b6ad41707fc |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 11 03:37:33 2017 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 11 03:38:00 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a400d547 |
7 |
|
8 |
sys-power/cpupower: restore 3.18 for mate-base/mate-applets |
9 |
|
10 |
Package-Manager: Portage-2.3.6_p60, Repoman-2.3.3_p38 |
11 |
|
12 |
sys-power/cpupower/Manifest | 1 + |
13 |
sys-power/cpupower/cpupower-3.18.ebuild | 71 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 72 insertions(+) |
15 |
|
16 |
diff --git a/sys-power/cpupower/Manifest b/sys-power/cpupower/Manifest |
17 |
index 722c70c0fb6..931388fc271 100644 |
18 |
--- a/sys-power/cpupower/Manifest |
19 |
+++ b/sys-power/cpupower/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST cpupower-4.9.0.tar.xz 67620 SHA256 5e0eda0f31c6c14b0b181d98ad89ead6ea62114635eb29ad288778bbe0c88168 SHA512 67137bd7166a34f131332a5165384ebca5b97deb1c92e6d557195da4be4fecb0c5902159f748ea454461ad2181a778c32b4e4dfd1f8ce7e6a3ec41f553f23677 WHIRLPOOL 73dc80fe4308146efcbc05b3b7290a66d23b6653cde9013b76d230a914b184212f7a0713b82857c882c65a3448febcd08ae4581499cf97bb0e21a5622053c519 |
22 |
+DIST linux-3.18.tar.xz 80934708 SHA256 becc413cc9e6d7f5cc52a3ce66d65c3725bc1d1cc1001f4ce6c32b69eb188cbd SHA512 2f0b72466e9bc538a675738aa416573d41bbbd7e3e2ffd5b5b127afde609ebc278cec5a3c37e73479607e957c13f1b4ed9782a3795e0dcc2cf8e550228594009 WHIRLPOOL 81634af631b7d30ccd1f4798f96f44d9aa0ba6609b73f2747eb6aebaf7a99487fb2dbd45767605186182533cb222bfd9236e8dd5e11a04fdb67c211e4e0a91d6 |
23 |
|
24 |
diff --git a/sys-power/cpupower/cpupower-3.18.ebuild b/sys-power/cpupower/cpupower-3.18.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..f31459e9356 |
27 |
--- /dev/null |
28 |
+++ b/sys-power/cpupower/cpupower-3.18.ebuild |
29 |
@@ -0,0 +1,71 @@ |
30 |
+# Copyright 1999-2014 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=5 |
34 |
+inherit multilib toolchain-funcs |
35 |
+ |
36 |
+DESCRIPTION="Shows and sets processor power related values" |
37 |
+HOMEPAGE="https://www.kernel.org/" |
38 |
+SRC_URI="mirror://kernel/linux/kernel/v3.x/linux-${PV}.tar.xz" |
39 |
+ |
40 |
+LICENSE="GPL-2" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="amd64 ~arm x86" |
43 |
+IUSE="cpufreq_bench debug nls" |
44 |
+ |
45 |
+# File collision w/ headers of the deprecated cpufrequtils |
46 |
+RDEPEND="sys-apps/pciutils |
47 |
+ !<sys-apps/linux-misc-apps-3.6-r2 |
48 |
+ !sys-power/cpufrequtils" |
49 |
+DEPEND="${RDEPEND} |
50 |
+ virtual/os-headers |
51 |
+ virtual/pkgconfig |
52 |
+ nls? ( sys-devel/gettext )" |
53 |
+ |
54 |
+S=${WORKDIR}/linux-${PV}/tools/power/${PN} |
55 |
+ |
56 |
+pkg_setup() { |
57 |
+ myemakeargs=( |
58 |
+ DEBUG=$(usex debug true false) |
59 |
+ V=1 |
60 |
+ CPUFREQ_BENCH=$(usex cpufreq_bench true false) |
61 |
+ NLS=$(usex nls true false) |
62 |
+ docdir=/usr/share/doc/${PF}/${PN} |
63 |
+ mandir=/usr/share/man |
64 |
+ libdir=/usr/$(get_libdir) |
65 |
+ AR="$(tc-getAR)" |
66 |
+ CC="$(tc-getCC)" |
67 |
+ LD="$(tc-getCC)" |
68 |
+ STRIP=true |
69 |
+ LDFLAGS="${LDFLAGS}" |
70 |
+ OPTIMIZATION="${CFLAGS}" |
71 |
+ ) |
72 |
+} |
73 |
+ |
74 |
+src_unpack() { |
75 |
+ tar -xf "${DISTDIR}"/linux-${PV}.tar.xz \ |
76 |
+ linux-${PV}/tools/power/${PN} \ |
77 |
+ linux-${PV}/Makefile \ |
78 |
+ || die |
79 |
+} |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ # -Wl,--as-needed compat |
83 |
+ local libs="-lcpupower -lrt $($(tc-getPKG_CONFIG) --libs-only-l libpci)" |
84 |
+ sed -i \ |
85 |
+ -e "/$libs/{ s,${libs},,g; s,\$, ${libs},g;}" \ |
86 |
+ -e "s:-O1 -g::" \ |
87 |
+ Makefile || die |
88 |
+} |
89 |
+ |
90 |
+src_compile() { |
91 |
+ emake "${myemakeargs[@]}" |
92 |
+} |
93 |
+ |
94 |
+src_install() { |
95 |
+ emake DESTDIR="${D}" "${myemakeargs[@]}" install |
96 |
+ dodoc README ToDo |
97 |
+ |
98 |
+ newconfd "${FILESDIR}"/conf.d-r2 ${PN} |
99 |
+ newinitd "${FILESDIR}"/init.d-r4 ${PN} |
100 |
+} |