tnet-analyzer/openbsd-netcat: Enable static build. - parlay - yet another gentoo overlay
 (HTM) git clone https://git.parazyd.org/parlay
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit 1d6159e20e823f91b1ee3da584a431c6a22305f4
 (DIR) parent 47593eaf70b9c190b6fc5986e2f9eabd40aff46e
 (HTM) Author: parazyd <parazyd@dyne.org>
       Date:   Mon, 24 Oct 2016 22:55:40 +0200
       
       net-analyzer/openbsd-netcat: Enable static build.
       
       Diffstat:
         M net-analyzer/openbsd-netcat/openbs… |       6 +++++-
       
       1 file changed, 5 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/net-analyzer/openbsd-netcat/openbsd-netcat-1.105-r99.ebuild b/net-analyzer/openbsd-netcat/openbsd-netcat-1.105-r99.ebuild
       t@@ -12,7 +12,7 @@ SRC_URI="http://http.debian.net/debian/pool/main/n/netcat-openbsd/netcat-openbsd
                http://http.debian.net/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}-7.debian.tar.gz"
        LICENSE="BSD"
        SLOT="0"
       -IUSE="elibc_Darwin"
       +IUSE="elibc_Darwin static"
        
        KEYWORDS="~amd64 ~x86 ~amd64-linux ~x64-macos"
        
       t@@ -37,6 +37,10 @@ src_prepare() {
        }
        
        src_compile() {
       +        if use static; then
       +                CFLAGS="${CFLAGS} -static"
       +                LDFLAGS="${LDFLAGS} -static"
       +        fi
                emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die
        }