sci-libs/hdf5: disable static libraries
authorAlessandro Barbieri <lssndrbarbieri@gmail.com>
Sun, 6 Oct 2019 23:24:00 +0000 (01:24 +0200)
committerDavid Seifert <soap@gentoo.org>
Sun, 20 Oct 2019 13:22:13 +0000 (15:22 +0200)
Closes: https://bugs.gentoo.org/694128
Closes: https://github.com/gentoo/gentoo/pull/13061
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Signed-off-by: David Seifert <soap@gentoo.org>
sci-libs/hdf5/hdf5-1.10.5.ebuild

index a3c248db158e28c538fe8d71dc8623158144b886..deaec088dd13aea01e19d3bdb5d1f01b48c48edb 100644 (file)
@@ -17,7 +17,7 @@ SRC_URI="http://www.hdfgroup.org/ftp/HDF5/releases/${MAJOR_P}/${MY_P}/src/${MY_P
 LICENSE="NCSA-HDF"
 SLOT="0/${PV%%_p*}"
 KEYWORDS="alpha amd64 ~arm arm64 ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
-IUSE="cxx debug examples fortran +hl mpi static-libs szip threads zlib"
+IUSE="cxx debug examples fortran +hl mpi szip threads zlib"
 
 REQUIRED_USE="
        cxx? ( !mpi ) mpi? ( !cxx )
@@ -79,10 +79,11 @@ src_prepare() {
 
 src_configure() {
        econf \
+               --disable-static \
                --enable-deprecated-symbols \
-               $(use debug && echo --enable-build-mode=debug || echo --enable-build-mode=production) \
-               $(use_enable debug codestack) \
+               --enable-build-mode=$(usex debug debug production) \
                $(use_enable cxx) \
+               $(use_enable debug codestack) \
                $(use_enable fortran) \
                $(use_enable hl) \
                $(use_enable mpi parallel) \
@@ -91,3 +92,10 @@ src_configure() {
                $(use_with threads pthread) \
                $(use_with zlib)
 }
+
+src_install() {
+       default
+
+       # no static archives
+       find "${D}" -name '*.la' -delete || die
+}