From: Jakov Smolic Date: Wed, 20 May 2020 22:25:59 +0000 (+0200) Subject: dev-util/ply: add static-libs USE flag X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bf2139a403a2a06b21c17e6c12978d215fa39476;p=gentoo.git dev-util/ply: add static-libs USE flag Closes: https://github.com/gentoo/gentoo/pull/15896 Closes: https://bugs.gentoo.org/724300 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Jakov Smolic Signed-off-by: Zac Medico --- diff --git a/dev-util/ply/ply-2.1.1.ebuild b/dev-util/ply/ply-2.1.1.ebuild index 3721bd7bdb01..55bfd433e220 100644 --- a/dev-util/ply/ply-2.1.1.ebuild +++ b/dev-util/ply/ply-2.1.1.ebuild @@ -12,6 +12,7 @@ SRC_URI="https://github.com/iovisor/ply/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="static-libs" pkg_pretend() { local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~NET_CLS_BPF ~NET_ACT_BPF @@ -29,4 +30,8 @@ src_prepare() { src_install() { default rm -f "${ED}/usr/share/doc/${P}/COPYING" + + if ! use static-libs; then + find "${D}" -type f -name '*.a' -delete || die + fi }