diff options
author | Sam James <sam@gentoo.org> | 2021-02-26 23:40:12 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-02-27 01:00:05 +0000 |
commit | 449fb3fdc4993106e6e95ae8732f7d12d37f9b98 (patch) | |
tree | 4e2d9e4ee1e7848680f31d648d6dc8def1645591 /dev-libs | |
parent | dev-libs/libpfm: drop unnecessary multilib eclass (diff) | |
download | gentoo-449fb3fdc4993106e6e95ae8732f7d12d37f9b98.tar.gz gentoo-449fb3fdc4993106e6e95ae8732f7d12d37f9b98.tar.bz2 gentoo-449fb3fdc4993106e6e95ae8732f7d12d37f9b98.zip |
dev-libs/libpfm: keep static-libs
Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libpfm/libpfm-4.11.0.ebuild | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dev-libs/libpfm/libpfm-4.11.0.ebuild b/dev-libs/libpfm/libpfm-4.11.0.ebuild index 594f18ab5f6a..55e05a64d127 100644 --- a/dev-libs/libpfm/libpfm-4.11.0.ebuild +++ b/dev-libs/libpfm/libpfm-4.11.0.ebuild @@ -12,6 +12,7 @@ SRC_URI="mirror://sourceforge/perfmon2/${PN}4/${P}.tar.gz" LICENSE="GPL-2 MIT" SLOT="0/4" KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" +IUSE="static-libs" src_prepare() { default @@ -31,8 +32,7 @@ src_install() { emake DESTDIR="${D}" LDCONFIG=true PREFIX="${EPREFIX}/usr" install dodoc README - find "${ED}" -name '*.a' -delete || die - - # Note: dev-libs/papi uses .la files to detect this package, so - # don't remove them. + if ! use static-libs ; then + find "${ED}" -name '*.la' -delete || die + fi } |