From 5ca1c438fd98ef17ed550b8c71aabdb847e7ed07 Mon Sep 17 00:00:00 2001 From: "Vladimir Pavljuchenkov (SpiderX)" Date: Fri, 28 Feb 2020 21:17:56 +0200 Subject: [PATCH] sys-power/powerstat: version bump to 0.02.22 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Vladimir Pavljuchenkov Signed-off-by: Joonas Niilola --- sys-power/powerstat/Manifest | 1 + sys-power/powerstat/powerstat-0.02.22.ebuild | 28 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 sys-power/powerstat/powerstat-0.02.22.ebuild 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)" +} -- 2.26.2