Install this version:
emerge -a =dev-util/swapusage-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/swapusage-9999
Or alternatively:
emerge --autounmask-write -a =dev-util/swapusage-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3 toolchain-funcs
DESCRIPTION="Amount of swapped memory for running processes"
HOMEPAGE="https://github.com/hhoffstaette/swapusage"
EGIT_REPO_URI="https://github.com/hhoffstaette/${PN}.git"
LICENSE="Apache-2.0"
SLOT="0"
src_prepare() {
default
sed -i -e '/CXXFLAGS =/d' \
-e '/LDFLAGS =/d' Makefile || die "sed failed"
}
src_compile() {
emake CXX="$(tc-getCXX)"
}
src_install() {
einstalldocs
dobin swapusage
}