diff options
author | Mike Gilbert <floppym@gentoo.org> | 2016-12-11 17:16:36 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2016-12-11 17:19:48 -0500 |
commit | 1808a085c2981cdd2943d9fc5bae200c2e8cab23 (patch) | |
tree | 9b795fd1b129458f66dc6d96d578ed91f8fd7913 /sys-power/cpupower/cpupower-4.9.0.ebuild | |
parent | net-im/pidgin: pidgin still doesn't work with python3 (bug #602214). (diff) | |
download | gentoo-1808a085c2981cdd2943d9fc5bae200c2e8cab23.tar.gz gentoo-1808a085c2981cdd2943d9fc5bae200c2e8cab23.tar.bz2 gentoo-1808a085c2981cdd2943d9fc5bae200c2e8cab23.zip |
sys-power/cpupower: bump to 4.9.0
Package-Manager: portage-2.3.2_p13
Diffstat (limited to 'sys-power/cpupower/cpupower-4.9.0.ebuild')
-rw-r--r-- | sys-power/cpupower/cpupower-4.9.0.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/sys-power/cpupower/cpupower-4.9.0.ebuild b/sys-power/cpupower/cpupower-4.9.0.ebuild new file mode 100644 index 000000000000..b4626881b4bc --- /dev/null +++ b/sys-power/cpupower/cpupower-4.9.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +# eutils: strip-linguas +inherit eutils systemd toolchain-funcs + +DESCRIPTION="Shows and sets processor power related values" +HOMEPAGE="https://www.kernel.org/" +SRC_URI="https://dev.gentoo.org/~floppym/dist/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0/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 )" + +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 + OPTIMIZATION= + VERSION=${PV} + ) + + if [[ -n ${LINGUAS+set} ]]; then + strip-linguas -i po + myemakeargs+=( LANGUAGES="${LINGUAS}" ) + fi + + emake "${myemakeargs[@]}" +} + +src_install() { + emake DESTDIR="${D}" "${myemakeargs[@]}" install + dodoc README ToDo + + newconfd "${FILESDIR}"/conf.d-r2 cpupower + newinitd "${FILESDIR}"/init.d-r4 cpupower + + systemd_dounit "${FILESDIR}"/cpupower-frequency-set.service + systemd_install_serviced "${FILESDIR}"/cpupower-frequency-set.service.conf +} |