1 |
commit: bf2139a403a2a06b21c17e6c12978d215fa39476 |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Wed May 20 22:25:59 2020 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 20 23:14:25 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf2139a4 |
7 |
|
8 |
dev-util/ply: add static-libs USE flag |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/15896 |
11 |
Closes: https://bugs.gentoo.org/724300 |
12 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
13 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
14 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
15 |
|
16 |
dev-util/ply/ply-2.1.1.ebuild | 5 +++++ |
17 |
1 file changed, 5 insertions(+) |
18 |
|
19 |
diff --git a/dev-util/ply/ply-2.1.1.ebuild b/dev-util/ply/ply-2.1.1.ebuild |
20 |
index 3721bd7bdb0..55bfd433e22 100644 |
21 |
--- a/dev-util/ply/ply-2.1.1.ebuild |
22 |
+++ b/dev-util/ply/ply-2.1.1.ebuild |
23 |
@@ -12,6 +12,7 @@ SRC_URI="https://github.com/iovisor/ply/archive/${PV}.tar.gz -> ${P}.tar.gz" |
24 |
LICENSE="GPL-2" |
25 |
SLOT="0" |
26 |
KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
27 |
+IUSE="static-libs" |
28 |
|
29 |
pkg_pretend() { |
30 |
local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~NET_CLS_BPF ~NET_ACT_BPF |
31 |
@@ -29,4 +30,8 @@ src_prepare() { |
32 |
src_install() { |
33 |
default |
34 |
rm -f "${ED}/usr/share/doc/${P}/COPYING" |
35 |
+ |
36 |
+ if ! use static-libs; then |
37 |
+ find "${D}" -type f -name '*.a' -delete || die |
38 |
+ fi |
39 |
} |