commit: 2785932c2badb4244651d1cec9e54ccdde598c99
parent a2ad9a90d6f36cbad920675340e25a2b998e0d96
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 6 May 2021 11:38:03 +0200
sys-apps/lanodan-utils: Put memsys behind USE=suspend
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/sys-apps/lanodan-utils/lanodan-utils-9999.ebuild b/sys-apps/lanodan-utils/lanodan-utils-9999.ebuild
@@ -11,9 +11,15 @@ EGIT_REPO_URI="https://hacktivis.me/git/utils.git"
EGIT_MIN_CLONE_TYPE="single+tags"
LICENSE="CC-BY-SA-4.0"
SLOT="0"
+IUSE="suspend"
src_install() {
emake install DESTDIR="${D}" PREFIX=/opt/lanodan BINDIR=/opt/lanodan/bin MANDIR=/opt/lanodan/man
+
+ if use !suspend; then
+ rm "${D}/opt/lanodan/bin/memsys" || die "Failed removing memsys"
+ fi
+
newenvd - 60lanodan <<-EOF
PATH="/opt/lanodan/bin"
ROOTPATH="/opt/lanodan/bin"