forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vladimir Pavljuchenkov (SpiderX) <[email protected]> Closes: gentoo#27617 Signed-off-by: Joonas Niilola <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)" | ||
} |