1 |
commit: ad924e9c8fd9183b84474c2811e534f5dbaca3ba |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 26 22:38:17 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 26 22:38:34 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad924e9c |
7 |
|
8 |
dev-util/poke: make USE=static-libs optional |
9 |
|
10 |
Reported-by: Agostino Sarubbo |
11 |
Closes: https://bugs.gentoo.org/773121 |
12 |
Package-Manager: Portage-3.0.15, Repoman-3.0.2 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
dev-util/poke/poke-1.0.ebuild | 13 +++++++++++-- |
16 |
1 file changed, 11 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/dev-util/poke/poke-1.0.ebuild b/dev-util/poke/poke-1.0.ebuild |
19 |
index 216d65013db..0397a46a239 100644 |
20 |
--- a/dev-util/poke/poke-1.0.ebuild |
21 |
+++ b/dev-util/poke/poke-1.0.ebuild |
22 |
@@ -11,7 +11,7 @@ KEYWORDS="~amd64 ~x86" |
23 |
|
24 |
LICENSE="GPL-3" |
25 |
SLOT="0" |
26 |
-IUSE="machine-interface nls test" |
27 |
+IUSE="machine-interface nls static-libs test" |
28 |
|
29 |
RESTRICT="!test? ( test )" |
30 |
|
31 |
@@ -38,5 +38,14 @@ src_configure() { |
32 |
--disable-gui \ |
33 |
--disable-libnbd \ |
34 |
$(use_enable machine-interface mi) \ |
35 |
- $(use_enable nls) |
36 |
+ $(use_enable nls) \ |
37 |
+ $(use_enable static-libs static) |
38 |
+} |
39 |
+ |
40 |
+src_install() { |
41 |
+ default |
42 |
+ |
43 |
+ if ! use static-libs; then |
44 |
+ find "${ED}" -name '*.la' -delete || die |
45 |
+ fi |
46 |
} |