Сравнение powerstat-0.02.27 с powerstat-9999
| /usr/portage/sys-power/powerstat/powerstat-9999.ebuild 2024-12-25 14:59:52.823270184 +0300 | ||
|---|---|---|
| 3 | 3 | |
| 4 | 4 |
EAPI=8 |
| 5 | 5 | |
| 6 |
inherit toolchain-funcs |
|
| 6 |
EGIT_REPO_URI="https://github.com/ColinIanKing/${PN}.git"
|
|
| 7 | ||
| 8 |
inherit bash-completion-r1 git-r3 toolchain-funcs |
|
| 7 | 9 | |
| 8 | 10 |
DESCRIPTION="Laptop power measuring tool" |
| 9 | 11 |
HOMEPAGE="https://launchpad.net/ubuntu/+source/powerstat https://github.com/ColinIanKing/powerstat" |
| 10 |
SRC_URI="https://github.com/ColinIanKing/${PN}/archive/V${PV}.tar.gz -> ${P}.tar.gz"
|
|
| 11 | 12 | |
| 12 | 13 |
LICENSE="GPL-2+" |
| 13 | 14 |
SLOT="0" |
| 14 |
KEYWORDS="amd64 ~x86" |
|
| 15 | 15 | |
| 16 | 16 |
src_prepare() {
|
| 17 | 17 |
default |
| 18 | 18 | |
| 19 |
# Don't compress manpages |
|
| 19 |
# Don't compress manpages, respect CFLAGS |
|
| 20 | 20 |
sed -i -e '/install:/s/ powerstat.8.gz//' \ |
| 21 | 21 |
-e '/cp powerstat.8/s/.gz//' \ |
| 22 |
-e '/CFLAGS += -Wall/s| -O2||' \ |
|
| 22 | 23 |
Makefile || die "sed failed" |
| 23 | 24 |
} |
| 24 | 25 | |
| 25 | 26 |
src_compile() {
|
| 26 | 27 |
emake CC="$(tc-getCC)" |
| 27 | 28 |
} |
| 29 | ||
| 30 |
src_install() {
|
|
| 31 |
default |
|
| 32 |
dobashcomp bash-completion/powerstat |
|
| 33 |
} |
|