summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua>2022-10-04 19:28:33 +0300
committerJoonas Niilola <juippis@gentoo.org>2022-10-27 15:05:36 +0300
commit7a300cb18bd576bcf27bc76a24caca352705ec19 (patch)
treee0fe9efe55957810b35db9ae700d317cfcfa2761 /sys-power
parentsys-power/powerstat: update EAPI 7 -> 8 for live ebuild (diff)
downloadgentoo-7a300cb18bd576bcf27bc76a24caca352705ec19.tar.gz
gentoo-7a300cb18bd576bcf27bc76a24caca352705ec19.tar.bz2
gentoo-7a300cb18bd576bcf27bc76a24caca352705ec19.zip
sys-power/powerstat: add 0.02.27
Signed-off-by: Vladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua> Closes: https://github.com/gentoo/gentoo/pull/27617 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/powerstat/Manifest1
-rw-r--r--sys-power/powerstat/powerstat-0.02.27.ebuild27
2 files changed, 28 insertions, 0 deletions
diff --git a/sys-power/powerstat/Manifest b/sys-power/powerstat/Manifest
index 85fd9e776221..0af5c142a908 100644
--- a/sys-power/powerstat/Manifest
+++ b/sys-power/powerstat/Manifest
@@ -1 +1,2 @@
DIST powerstat-0.02.22.tar.gz 59609 BLAKE2B bfb392a37fa5fe9f03360fcad3435c73b34a6a7be642ddf9ecc3f4d83efd38e67b287b53e91a4fd00c6c18700541ed0a2f901c0016e4ab6e2ec937f6cfe9c7bf SHA512 e11131a0c49dd11337444ec69f3f59c0e803d03d2b135f2364bed5b55029e9473621b5d8709e2019f461d56c34fa52c22173a5e55c1175044aca67f18f5c505b
+DIST powerstat-0.02.27.tar.gz 62629 BLAKE2B d7fe4b517d9a4d91003c7a263ed77bba24457ce20639e420658c3735176952f3283e2bbc64ec597d88b6206e431c29f75ea9b133331a6652f021f667d9466ccc SHA512 3bbab9ed88000b277d75f94d9d3e180944d6c8619cf5e7e8b783c9d303fadde47fe9347e93ac7f54c52687afb456bc26c590712486f589602f93058cd144922f
diff --git a/sys-power/powerstat/powerstat-0.02.27.ebuild b/sys-power/powerstat/powerstat-0.02.27.ebuild
new file mode 100644
index 000000000000..70de83228faf
--- /dev/null
+++ b/sys-power/powerstat/powerstat-0.02.27.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Laptop power measuring tool"
+HOMEPAGE="https://launchpad.net/ubuntu/+source/powerstat https://github.com/ColinIanKing/powerstat"
+SRC_URI="https://github.com/ColinIanKing/${PN}/archive/V${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+src_prepare() {
+ default
+
+ # Don't compress manpages
+ sed -i -e '/install:/s/ powerstat.8.gz//' \
+ -e '/cp powerstat.8/s/.gz//' \
+ Makefile || die "sed failed"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}