diff options
author | 2014-02-12 20:02:03 +0000 | |
---|---|---|
committer | 2014-02-12 20:02:03 +0000 | |
commit | 46dbed516cd4ae1ca632bf4fc3982b9af45b0197 (patch) | |
tree | e72a7710dfc87492d9156adf22b9aa0b3affd993 /sys-power | |
parent | Bump einfo version for fixes for platforms without visibility(hidden) support. (diff) | |
download | gentoo-2-46dbed516cd4ae1ca632bf4fc3982b9af45b0197.tar.gz gentoo-2-46dbed516cd4ae1ca632bf4fc3982b9af45b0197.tar.bz2 gentoo-2-46dbed516cd4ae1ca632bf4fc3982b9af45b0197.zip |
Version bump.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/cpupower/ChangeLog | 9 | ||||
-rw-r--r-- | sys-power/cpupower/cpupower-3.13.ebuild | 71 |
2 files changed, 78 insertions, 2 deletions
diff --git a/sys-power/cpupower/ChangeLog b/sys-power/cpupower/ChangeLog index 4e17a513b8ba..cf780c5e1d4a 100644 --- a/sys-power/cpupower/ChangeLog +++ b/sys-power/cpupower/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-power/cpupower -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/ChangeLog,v 1.12 2013/12/25 11:46:32 ssuominen Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/ChangeLog,v 1.13 2014/02/12 20:02:03 ssuominen Exp $ + +*cpupower-3.13 (12 Feb 2014) + + 12 Feb 2014; Samuli Suominen <ssuominen@gentoo.org> +cpupower-3.13.ebuild: + Version bump. *cpupower-3.12 (25 Dec 2013) diff --git a/sys-power/cpupower/cpupower-3.13.ebuild b/sys-power/cpupower/cpupower-3.13.ebuild new file mode 100644 index 000000000000..6705f95e5370 --- /dev/null +++ b/sys-power/cpupower/cpupower-3.13.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/cpupower-3.13.ebuild,v 1.1 2014/02/12 20:02:03 ssuominen Exp $ + +EAPI=5 +inherit multilib toolchain-funcs + +DESCRIPTION="Shows and sets processor power related values" +HOMEPAGE="http://www.kernel.org/" +SRC_URI="mirror://kernel/linux/kernel/v3.x/linux-${PV}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cpufreq_bench debug nls" + +# cpupower should be a USE flag in linux-misc-apps (ditto for usbip!) +# but only if the maintainer doesn't agree to drop it completely from +# there in favour of this one which i'll push to users are replacement +# for the dead cpufreq tools in tree +# !sys-apps/linux-misc-apps[cpupower] + +# header collision with cpufrequtils +RDEPEND="sys-apps/pciutils + !sys-apps/linux-misc-apps + !sys-power/cpufrequtils" +DEPEND="${RDEPEND} + virtual/os-headers + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +S=${WORKDIR}/linux-${PV}/tools/power/${PN} + +pkg_setup() { + 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}" + ) +} + +src_prepare() { + # -Wl,--as-needed compat + local libs="-lcpupower -lrt $($(tc-getPKG_CONFIG) --libs-only-l libpci)" + sed -i \ + -e "/$libs/{ s,${libs},,g; s,\$, ${libs},g;}" \ + -e "s:-O1 -g::" \ + Makefile || die +} + +src_compile() { + emake "${myemakeargs[@]}" +} + +src_install() { + emake DESTDIR="${D}" "${myemakeargs[@]}" install + dodoc README ToDo + + newconfd "${FILESDIR}"/conf.d-r2 ${PN} + newinitd "${FILESDIR}"/init.d-r4 ${PN} +} |