1 |
ssuominen 13/09/27 11:31:48 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cpupower-3.11.ebuild |
5 |
Log: |
6 |
Version bump to cpupower from Linux 3.11 source tree as well as update conf.d/init.d wrt #453794 by "Khayyam" |
7 |
|
8 |
(Portage version: 2.2.6/cvs/Linux x86_64, signed Manifest commit with key 4868F14D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.8 sys-power/cpupower/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/cpupower/ChangeLog?rev=1.8&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/cpupower/ChangeLog?rev=1.8&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/cpupower/ChangeLog?r1=1.7&r2=1.8 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-power/cpupower/ChangeLog,v |
20 |
retrieving revision 1.7 |
21 |
retrieving revision 1.8 |
22 |
diff -u -r1.7 -r1.8 |
23 |
--- ChangeLog 24 Apr 2013 09:44:05 -0000 1.7 |
24 |
+++ ChangeLog 27 Sep 2013 11:31:48 -0000 1.8 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for sys-power/cpupower |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/ChangeLog,v 1.7 2013/04/24 09:44:05 ssuominen Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/ChangeLog,v 1.8 2013/09/27 11:31:48 ssuominen Exp $ |
30 |
+ |
31 |
+*cpupower-3.11 (27 Sep 2013) |
32 |
+ |
33 |
+ 27 Sep 2013; Samuli Suominen <ssuominen@g.o> +cpupower-3.11.ebuild, |
34 |
+ +files/conf.d-r2, +files/init.d-r2, +files/init.d-r2.orig: |
35 |
+ Version bump to cpupower from Linux 3.11 source tree as well as update |
36 |
+ conf.d/init.d wrt #453794 by "Khayyam" |
37 |
|
38 |
*cpupower-3.8-r1 (24 Apr 2013) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-power/cpupower/cpupower-3.11.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/cpupower/cpupower-3.11.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/cpupower/cpupower-3.11.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: cpupower-3.11.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/cpupower-3.11.ebuild,v 1.1 2013/09/27 11:31:48 ssuominen Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
inherit multilib toolchain-funcs |
56 |
|
57 |
DESCRIPTION="Shows and sets processor power related values" |
58 |
HOMEPAGE="http://www.kernel.org/" |
59 |
SRC_URI="mirror://kernel/linux/kernel/v3.x/linux-${PV}.tar.xz" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~x86" |
64 |
IUSE="cpufreq_bench debug nls" |
65 |
|
66 |
# cpupower should be a USE flag in linux-misc-apps (ditto for usbip!) |
67 |
# but only if the maintainer doesn't agree to drop it completely from |
68 |
# there in favour of this one which i'll push to users are replacement |
69 |
# for the dead cpufreq tools in tree |
70 |
# !sys-apps/linux-misc-apps[cpupower] |
71 |
|
72 |
# header collision with cpufrequtils |
73 |
RDEPEND="sys-apps/pciutils |
74 |
!sys-apps/linux-misc-apps |
75 |
!sys-power/cpufrequtils" |
76 |
DEPEND="${RDEPEND} |
77 |
virtual/os-headers |
78 |
virtual/pkgconfig |
79 |
nls? ( sys-devel/gettext )" |
80 |
|
81 |
S=${WORKDIR}/linux-${PV}/tools/power/${PN} |
82 |
|
83 |
pkg_setup() { |
84 |
myemakeargs=( |
85 |
DEBUG=$(usex debug true false) |
86 |
V=1 |
87 |
CPUFREQ_BENCH=$(usex cpufreq_bench true false) |
88 |
NLS=$(usex nls true false) |
89 |
docdir=/usr/share/doc/${PF}/${PN} |
90 |
mandir=/usr/share/man |
91 |
libdir=/usr/$(get_libdir) |
92 |
AR="$(tc-getAR)" |
93 |
CC="$(tc-getCC)" |
94 |
LD="$(tc-getCC)" |
95 |
STRIP=true |
96 |
LDFLAGS="${LDFLAGS}" |
97 |
OPTIMIZATION="${CFLAGS}" |
98 |
) |
99 |
} |
100 |
|
101 |
src_prepare() { |
102 |
# -Wl,--as-needed compat |
103 |
local libs="-lcpupower -lrt $($(tc-getPKG_CONFIG) --libs-only-l libpci)" |
104 |
sed -i \ |
105 |
-e "/$libs/{ s,${libs},,g; s,\$, ${libs},g;}" \ |
106 |
-e "s:-O1 -g::" \ |
107 |
Makefile || die |
108 |
} |
109 |
|
110 |
src_compile() { |
111 |
emake "${myemakeargs[@]}" |
112 |
} |
113 |
|
114 |
src_install() { |
115 |
emake DESTDIR="${D}" "${myemakeargs[@]}" install |
116 |
dodoc README ToDo |
117 |
|
118 |
newconfd "${FILESDIR}"/conf.d-r2 ${PN} |
119 |
newinitd "${FILESDIR}"/init.d-r2 ${PN} |
120 |
} |