net-misc/sacc: Allow USE=static. - parlay - yet another gentoo overlay
HTML git clone https://git.parazyd.org/parlay
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit fb18cf215ee0cc04c221c148195ba8db223c39e0
DIR parent 139ffe95ca9f451612115d38f172873619d5815b
HTML Author: parazyd <parazyd@dyne.org>
Date: Sun, 25 Feb 2018 13:45:28 +0100
net-misc/sacc: Allow USE=static.
Diffstat:
M net-misc/sacc/sacc-9999.ebuild | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
DIR diff --git a/net-misc/sacc/sacc-9999.ebuild b/net-misc/sacc/sacc-9999.ebuild
@@ -12,7 +12,7 @@ EGIT_REPO_URI="https://git.parazyd.org/sacc.git"
LICENSE="ISC"
SLOT="0"
KEYWORDS=""
-IUSE="ncurses savedconfig"
+IUSE="ncurses savedconfig static"
DEPEND="ncurses? ( sys-libs/ncurses:0 )"
RDEPEND="${DEPEND}"
@@ -26,6 +26,9 @@ src_prepare() {
else
sed -e 's/LIBS=.*/UI=txt/' -i config.mk
fi
+ if use static; then
+ echo "LDFLAGS+=-static" >> config.mk
+ fi
restore_config config.h
}