1 |
commit: 16e25f1f2105543e5c0a4725623966b9a50d3ec4 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 29 15:42:38 2018 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 29 15:43:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16e25f1f |
7 |
|
8 |
app-admin/su-exec: Add support for static build |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
app-admin/su-exec/su-exec-0.2.ebuild | 6 +++--- |
13 |
1 file changed, 3 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/app-admin/su-exec/su-exec-0.2.ebuild b/app-admin/su-exec/su-exec-0.2.ebuild |
16 |
index 4a1e1f1eab6..f51e2f258af 100644 |
17 |
--- a/app-admin/su-exec/su-exec-0.2.ebuild |
18 |
+++ b/app-admin/su-exec/su-exec-0.2.ebuild |
19 |
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/ncopa/su-exec/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
20 |
LICENSE="MIT" |
21 |
SLOT="0" |
22 |
KEYWORDS="~amd64" |
23 |
-IUSE="" |
24 |
+IUSE="static" |
25 |
|
26 |
src_prepare() { |
27 |
default |
28 |
@@ -20,10 +20,10 @@ src_prepare() { |
29 |
} |
30 |
|
31 |
src_compile() { |
32 |
- CC=$(tc-getCC) emake |
33 |
+ CC=$(tc-getCC) emake $(usex static "${PN}-static" "") |
34 |
} |
35 |
|
36 |
src_install() { |
37 |
- dobin ${PN} |
38 |
+ newbin ${PN}$(usex static "-static" "") ${PN} |
39 |
dodoc README.md |
40 |
} |