diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2014-04-08 11:05:51 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2014-04-08 11:05:51 +0000 |
commit | 7a9a6e67b0ec6d0c76758ad2760d3b2dfe83d86c (patch) | |
tree | 97f2bda72849a1b7434bed594fc72a7ac13b2d7d /sys-power/cpupower | |
parent | bump; add py3.4 pypy support (diff) | |
download | gentoo-2-7a9a6e67b0ec6d0c76758ad2760d3b2dfe83d86c.tar.gz gentoo-2-7a9a6e67b0ec6d0c76758ad2760d3b2dfe83d86c.tar.bz2 gentoo-2-7a9a6e67b0ec6d0c76758ad2760d3b2dfe83d86c.zip |
Version bump.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'sys-power/cpupower')
-rw-r--r-- | sys-power/cpupower/ChangeLog | 7 | ||||
-rw-r--r-- | sys-power/cpupower/cpupower-3.14.ebuild | 65 |
2 files changed, 71 insertions, 1 deletions
diff --git a/sys-power/cpupower/ChangeLog b/sys-power/cpupower/ChangeLog index 66dc7aae2034..d5698de645ed 100644 --- a/sys-power/cpupower/ChangeLog +++ b/sys-power/cpupower/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-power/cpupower # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/ChangeLog,v 1.15 2014/02/18 07:33:27 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/ChangeLog,v 1.16 2014/04/08 11:05:51 ssuominen Exp $ + +*cpupower-3.14 (08 Apr 2014) + + 08 Apr 2014; Samuli Suominen <ssuominen@gentoo.org> +cpupower-3.14.ebuild: + Version bump. 18 Feb 2014; Samuli Suominen <ssuominen@gentoo.org> cpupower-3.13.ebuild: amd64/x86 stable diff --git a/sys-power/cpupower/cpupower-3.14.ebuild b/sys-power/cpupower/cpupower-3.14.ebuild new file mode 100644 index 000000000000..8a47b4a06f84 --- /dev/null +++ b/sys-power/cpupower/cpupower-3.14.ebuild @@ -0,0 +1,65 @@ +# 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.14.ebuild,v 1.1 2014/04/08 11:05:51 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" + +# File collision w/ headers of the deprecated 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} +} |