diff options
author | James Le Cuirot <chewi@gentoo.org> | 2019-10-01 22:51:38 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2019-10-01 22:52:33 +0100 |
commit | 037b13f7bd0e5f1ab5a861f5f933db7d8f6effa1 (patch) | |
tree | 83551a417948fbc65afa58a25e071603b872a1ff /media-libs/lib3ds/lib3ds-2.0.0_rc1-r1.ebuild | |
parent | media-libs/lib3ds: EAPI 7 (diff) | |
download | gentoo-037b13f7bd0e5f1ab5a861f5f933db7d8f6effa1.tar.gz gentoo-037b13f7bd0e5f1ab5a861f5f933db7d8f6effa1.tar.bz2 gentoo-037b13f7bd0e5f1ab5a861f5f933db7d8f6effa1.zip |
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@gentoo.org>
Diffstat (limited to 'media-libs/lib3ds/lib3ds-2.0.0_rc1-r1.ebuild')
-rw-r--r-- | media-libs/lib3ds/lib3ds-2.0.0_rc1-r1.ebuild | 14 |
1 files changed, 13 insertions, 1 deletions
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 c8e2db13f631..b663c12a29cf 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 +} |