public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Gilbert" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/cpupower/
Date: Mon, 11 Sep 2017 03:38:48 +0000 (UTC)	[thread overview]
Message-ID: <1505101080.a400d547ea53dfaaac6fa664b7cd4b6ad41707fc.floppym@gentoo> (raw)

commit:     a400d547ea53dfaaac6fa664b7cd4b6ad41707fc
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 11 03:37:33 2017 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Sep 11 03:38:00 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a400d547

sys-power/cpupower: restore 3.18 for mate-base/mate-applets

Package-Manager: Portage-2.3.6_p60, Repoman-2.3.3_p38

 sys-power/cpupower/Manifest             |  1 +
 sys-power/cpupower/cpupower-3.18.ebuild | 71 +++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/sys-power/cpupower/Manifest b/sys-power/cpupower/Manifest
index 722c70c0fb6..931388fc271 100644
--- a/sys-power/cpupower/Manifest
+++ b/sys-power/cpupower/Manifest
@@ -1 +1,2 @@
 DIST cpupower-4.9.0.tar.xz 67620 SHA256 5e0eda0f31c6c14b0b181d98ad89ead6ea62114635eb29ad288778bbe0c88168 SHA512 67137bd7166a34f131332a5165384ebca5b97deb1c92e6d557195da4be4fecb0c5902159f748ea454461ad2181a778c32b4e4dfd1f8ce7e6a3ec41f553f23677 WHIRLPOOL 73dc80fe4308146efcbc05b3b7290a66d23b6653cde9013b76d230a914b184212f7a0713b82857c882c65a3448febcd08ae4581499cf97bb0e21a5622053c519
+DIST linux-3.18.tar.xz 80934708 SHA256 becc413cc9e6d7f5cc52a3ce66d65c3725bc1d1cc1001f4ce6c32b69eb188cbd SHA512 2f0b72466e9bc538a675738aa416573d41bbbd7e3e2ffd5b5b127afde609ebc278cec5a3c37e73479607e957c13f1b4ed9782a3795e0dcc2cf8e550228594009 WHIRLPOOL 81634af631b7d30ccd1f4798f96f44d9aa0ba6609b73f2747eb6aebaf7a99487fb2dbd45767605186182533cb222bfd9236e8dd5e11a04fdb67c211e4e0a91d6

diff --git a/sys-power/cpupower/cpupower-3.18.ebuild b/sys-power/cpupower/cpupower-3.18.ebuild
new file mode 100644
index 00000000000..f31459e9356
--- /dev/null
+++ b/sys-power/cpupower/cpupower-3.18.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit multilib toolchain-funcs
+
+DESCRIPTION="Shows and sets processor power related values"
+HOMEPAGE="https://www.kernel.org/"
+SRC_URI="mirror://kernel/linux/kernel/v3.x/linux-${PV}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="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
+	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_unpack() {
+	tar -xf "${DISTDIR}"/linux-${PV}.tar.xz \
+		linux-${PV}/tools/power/${PN} \
+		linux-${PV}/Makefile \
+		|| die
+}
+
+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}
+}


             reply	other threads:[~2017-09-11  3:38 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-11  3:38 Mike Gilbert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-15 19:49 [gentoo-commits] repo/gentoo:master commit in: sys-power/cpupower/ Mike Gilbert
2024-08-15 16:37 Mike Gilbert
2024-08-15 16:37 Mike Gilbert
2024-04-24 17:59 Arthur Zamarin
2024-04-24 17:59 Arthur Zamarin
2024-04-24 17:42 Arthur Zamarin
2024-04-24 17:21 Arthur Zamarin
2024-04-24 17:14 Arthur Zamarin
2024-01-07  6:28 Sam James
2023-06-21  4:41 Arthur Zamarin
2023-06-03  4:00 Mike Gilbert
2023-06-03  3:59 Mike Gilbert
2023-06-01 20:16 Sam James
2023-06-01 20:12 Sam James
2023-06-01 20:12 Sam James
2023-06-01 20:04 Sam James
2022-06-03 18:56 Mike Gilbert
2022-06-03 18:56 Mike Gilbert
2022-01-10 23:00 Sam James
2022-01-09 20:08 Sam James
2022-01-09 20:08 Sam James
2022-01-09 10:25 Sam James
2021-08-27  1:48 Mike Gilbert
2021-01-03 19:40 Sam James
2021-01-03 19:40 Sam James
2020-12-06 20:50 Mike Gilbert
2020-12-06 20:48 Mike Gilbert
2020-02-01 18:01 Mike Gilbert
2019-11-25 22:10 Mike Gilbert
2019-11-25 22:10 Mike Gilbert
2019-10-05 18:56 Michał Górny
2017-12-21 21:16 Patrice Clement
2017-10-09 14:44 Sergei Trofimovich
2017-10-09 14:44 Sergei Trofimovich
2017-10-09 14:44 Sergei Trofimovich
2017-10-03 15:08 Sergei Trofimovich
2017-10-03 15:08 Sergei Trofimovich
2017-10-03  8:25 Sergei Trofimovich
2017-09-12 19:13 Mike Gilbert
2017-09-11  3:08 Mike Gilbert
2017-06-15  9:54 Agostino Sarubbo
2017-06-14  7:49 Agostino Sarubbo
2016-12-11 22:19 Mike Gilbert
2016-08-07  3:37 Mike Gilbert
2016-08-06 10:17 Pacho Ramos
2016-06-02 20:48 Mike Gilbert
2016-06-02 19:22 Mike Gilbert
2015-12-03 16:37 Mike Gilbert
2015-09-20 16:10 Mike Gilbert
2015-09-20 16:10 Mike Gilbert
2015-09-20  9:30 Agostino Sarubbo
2015-08-27  9:58 Agostino Sarubbo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1505101080.a400d547ea53dfaaac6fa664b7cd4b6ad41707fc.floppym@gentoo \
    --to=floppym@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox