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