commit: 037b13f7bd0e5f1ab5a861f5f933db7d8f6effa1 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Tue Oct 1 21:51:38 2019 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Tue Oct 1 21:52:33 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=037b13f7
media-libs/lib3ds: Conditionally install static libs with USE flag Closes: https://bugs.gentoo.org/485552 Closes: https://github.com/gentoo/gentoo/pull/13084 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> media-libs/lib3ds/lib3ds-2.0.0_rc1-r1.ebuild | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/media-libs/lib3ds/lib3ds-2.0.0_rc1-r1.ebuild b/media-libs/lib3ds/lib3ds-2.0.0_rc1-r1.ebuild index c8e2db13f63..b663c12a29c 100644 --- a/media-libs/lib3ds/lib3ds-2.0.0_rc1-r1.ebuild +++ b/media-libs/lib3ds/lib3ds-2.0.0_rc1-r1.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://lib3ds.googlecode.com/files/${MY_P}.zip" LICENSE="LGPL-2.1+" SLOT="0" KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86" -IUSE="" +IUSE="static-libs" BDEPEND="app-arch/unzip" @@ -21,3 +21,15 @@ S="${WORKDIR}/${MY_P}" PATCHES=( "${FILESDIR}"/${P}-underlinking-no-autoreconf.patch ) + +src_configure() { + econf $(use_enable static-libs static) +} + +src_install() { + default + + if ! use static-libs; then + rm "${ED}/usr/$(get_libdir)/${PN}.la" || die + fi +}