summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua>2020-02-28 21:17:56 +0200
committerJoonas Niilola <juippis@gentoo.org>2020-03-03 16:53:42 +0200
commit5ca1c438fd98ef17ed550b8c71aabdb847e7ed07 (patch)
tree5f1a6a439294468bd06e276300deab297344d284 /sys-power
parentsys-power/powerstat: drop old ebuild (diff)
downloadgentoo-5ca1c438fd98ef17ed550b8c71aabdb847e7ed07.tar.gz
gentoo-5ca1c438fd98ef17ed550b8c71aabdb847e7ed07.tar.bz2
gentoo-5ca1c438fd98ef17ed550b8c71aabdb847e7ed07.zip
sys-power/powerstat: version bump to 0.02.22
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua> 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.22.ebuild28
2 files changed, 29 insertions, 0 deletions
diff --git a/sys-power/powerstat/Manifest b/sys-power/powerstat/Manifest
index 01898fc7d47c..ee60a01b71a1 100644
--- a/sys-power/powerstat/Manifest
+++ b/sys-power/powerstat/Manifest
@@ -1 +1,2 @@
DIST powerstat-0.02.21.tar.gz 59255 BLAKE2B 4a7416aaa29c89863b4f372a6b48a0f77250d80343a552a2aa882b2caad10cbb5cfed13510c8fcc5b7f5d4f6df5e0e6291d4ca4f46e6776fe0e671aceedd94de SHA512 776baf8092b0d4e791b18679cf397fb6fc4ba482e5a24ca8bd6b787bdab2106cd5f172a5c0233be5cbc139445f3430eb6290cfac2a4502e83928d2a5700be63c
+DIST powerstat-0.02.22.tar.gz 59609 BLAKE2B bfb392a37fa5fe9f03360fcad3435c73b34a6a7be642ddf9ecc3f4d83efd38e67b287b53e91a4fd00c6c18700541ed0a2f901c0016e4ab6e2ec937f6cfe9c7bf SHA512 e11131a0c49dd11337444ec69f3f59c0e803d03d2b135f2364bed5b55029e9473621b5d8709e2019f461d56c34fa52c22173a5e55c1175044aca67f18f5c505b
diff --git a/sys-power/powerstat/powerstat-0.02.22.ebuild b/sys-power/powerstat/powerstat-0.02.22.ebuild
new file mode 100644
index 000000000000..d4da91922c1a
--- /dev/null
+++ b/sys-power/powerstat/powerstat-0.02.22.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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"
+IUSE=""
+
+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)"
+}