Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/
Date: Fri, 30 Aug 2019 20:27:04
Message-Id: 1567196759.124b6426777e0d11a80bce5ed6c1a13d9c122c2c.gyakovlev@gentoo
1 commit: 124b6426777e0d11a80bce5ed6c1a13d9c122c2c
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 30 20:18:58 2019 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 30 20:25:59 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=124b6426
7
8 sys-power/intel-undervolt: bump to 1.7
9
10 Thanks-to: Matthew Thode <prometheanfire <AT> gentoo.org>
11 Package-Manager: Portage-2.3.73, Repoman-2.3.17
12 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
13
14 sys-power/intel-undervolt/Manifest | 1 +
15 .../intel-undervolt/intel-undervolt-1.7.ebuild | 61 ++++++++++++++++++++++
16 sys-power/intel-undervolt/metadata.xml | 3 ++
17 3 files changed, 65 insertions(+)
18
19 diff --git a/sys-power/intel-undervolt/Manifest b/sys-power/intel-undervolt/Manifest
20 index 6b09153cf63..e21f6df73d7 100644
21 --- a/sys-power/intel-undervolt/Manifest
22 +++ b/sys-power/intel-undervolt/Manifest
23 @@ -1 +1,2 @@
24 DIST intel-undervolt-1.6.tar.gz 22465 BLAKE2B 947f3e3f94316a9988fc0311faa23b07e8e0a99afb737232e6e581f45cca89124a49e47bbc85eb0e836b7fc7f966869910fe4d42581e47d98d8c036390c3dec2 SHA512 1c1de1083654085d6711aad28d2815f2aa05d08b7fddbee425b59ab8109dc1e635c2a9bdda8ba0221420e9e00fcd61013bd4a4633d05ede87808c49898772db3
25 +DIST intel-undervolt-1.7.tar.gz 31481 BLAKE2B 0daade381b492184616356f097de32d14c76d6ab3f7dd59240fb25f92ee1b9aebb16cbef8b6836e16e361a9560b000655470140c31b5822fed7bd90e0b9d9bf2 SHA512 727eddd47a92f6092e89f9326c6b453785fac6155f2c2c50887f9a90704226e6abaf27b4a91cabd4783c4477371699a92186fe7847ac9218da9c26fb295a5304
26
27 diff --git a/sys-power/intel-undervolt/intel-undervolt-1.7.ebuild b/sys-power/intel-undervolt/intel-undervolt-1.7.ebuild
28 new file mode 100644
29 index 00000000000..3073fbb4c1b
30 --- /dev/null
31 +++ b/sys-power/intel-undervolt/intel-undervolt-1.7.ebuild
32 @@ -0,0 +1,61 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit linux-info systemd toolchain-funcs
39 +
40 +DESCRIPTION="Intel CPU undervolting and throttling configuration tool"
41 +HOMEPAGE="https://github.com/kitsunyan/intel-undervolt"
42 +
43 +if [ ${PV} == "9999" ] ; then
44 + inherit git-r3
45 + EGIT_REPO_URI="https://github.com/kitsunyan/${PN}.git"
46 +else
47 + SRC_URI="https://github.com/kitsunyan/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
48 + KEYWORDS="-* ~amd64"
49 +fi
50 +
51 +LICENSE="GPL-3"
52 +SLOT="0"
53 +IUSE="elogind"
54 +
55 +DEPEND="elogind? ( sys-auth/elogind )"
56 +
57 +RDEPEND="${DEPEND}"
58 +
59 +BDEPEND="virtual/pkgconfig"
60 +
61 +CONFIG_CHECK="~INTEL_RAPL ~X86_MSR"
62 +
63 +src_configure() {
64 + local myconf=(
65 + # it's a non-standard build system
66 + $(usex elogind --enable-elogind '')
67 + --enable-openrc
68 + --enable-systemd
69 + --unitdir="$(systemd_get_systemunitdir)"
70 + )
71 +
72 + econf "${myconf[@]}"
73 +}
74 +
75 +src_compile() {
76 +
77 + tc-export CC
78 +
79 + local myemakeargs=(
80 + CC="${CC}"
81 + CFLAGS="${CFLAGS}"
82 + )
83 + emake "${myemakeargs[@]}"
84 +}
85 +
86 +pkg_postinst() {
87 +for v in ${REPLACING_VERSIONS}; do
88 + if [[ ${v} == 1.6 ]] ; then
89 + elog "openrc service has been renamed to intel-undervolt-loop"
90 + elog "please update your startup configuration"
91 + fi
92 +done
93 +}
94
95 diff --git a/sys-power/intel-undervolt/metadata.xml b/sys-power/intel-undervolt/metadata.xml
96 index 52dabf8e780..ae8c6fe793f 100644
97 --- a/sys-power/intel-undervolt/metadata.xml
98 +++ b/sys-power/intel-undervolt/metadata.xml
99 @@ -8,6 +8,9 @@
100 <longdescription lang="en">
101 Tool for undervolting and throttling limits alteration for Intel CPUs
102 </longdescription>
103 + <use>
104 + <flag name="elogind">Use elogind hook to apply voltage after system sleep</flag>
105 + </use>
106 <upstream>
107 <remote-id type="github">kitsunyan/intel-undervolt</remote-id>
108 </upstream>