summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2018-01-29 16:42:38 +0100
committerManuel Rüger <mrueg@gentoo.org>2018-01-29 16:43:11 +0100
commit16e25f1f2105543e5c0a4725623966b9a50d3ec4 (patch)
treeca59a73421e430994b0aa7839c6730bc66d2bf2c /app-admin/su-exec/su-exec-0.2.ebuild
parentapp-misc/mc: Synced live ebuild. (diff)
downloadgentoo-16e25f1f2105543e5c0a4725623966b9a50d3ec4.tar.gz
gentoo-16e25f1f2105543e5c0a4725623966b9a50d3ec4.tar.bz2
gentoo-16e25f1f2105543e5c0a4725623966b9a50d3ec4.zip
app-admin/su-exec: Add support for static build
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-admin/su-exec/su-exec-0.2.ebuild')
-rw-r--r--app-admin/su-exec/su-exec-0.2.ebuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/app-admin/su-exec/su-exec-0.2.ebuild b/app-admin/su-exec/su-exec-0.2.ebuild
index 4a1e1f1eab69..f51e2f258af4 100644
--- a/app-admin/su-exec/su-exec-0.2.ebuild
+++ b/app-admin/su-exec/su-exec-0.2.ebuild
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/ncopa/su-exec/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
-IUSE=""
+IUSE="static"
src_prepare() {
default
@@ -20,10 +20,10 @@ src_prepare() {
}
src_compile() {
- CC=$(tc-getCC) emake
+ CC=$(tc-getCC) emake $(usex static "${PN}-static" "")
}
src_install() {
- dobin ${PN}
+ newbin ${PN}$(usex static "-static" "") ${PN}
dodoc README.md
}