commit: e4f9c4f95bf28f045141fefcafd4ef5e15f57a5b Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sun Sep 7 20:40:00 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Mon Sep 8 15:21:44 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4f9c4f9
sci-libs/hdf5: drop versions Closes: https://bugs.gentoo.org/560964 Closes: https://bugs.gentoo.org/808733 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> sci-libs/hdf5/Manifest | 6 -- .../hdf5/files/hdf5-1.12.2-configure-clang16.patch | 30 ------ .../hdf5/files/hdf5-1.12.2-no-messing-ldpath.patch | 20 ---- .../hdf5/files/hdf5-1.12.2-no-strip-symbols.patch | 16 --- ...hat-during-runtime-we-ll-use-the-same-lib.patch | 28 ----- ...hdf5-1.14.2-0002-Disable-forced-stripping.patch | 31 ------ ...-1.14.2-0003-Drop-broken-Werror-stripping.patch | 37 ------- .../hdf5/files/hdf5-1.8.13-no-messing-ldpath.patch | 21 ---- sci-libs/hdf5/files/hdf5-1.8.9-mpicxx.patch | 16 --- .../hdf5/files/hdf5-1.8.9-static_libgfortran.patch | 15 --- sci-libs/hdf5/hdf5-1.10.5-r1.ebuild | 110 ------------------- sci-libs/hdf5/hdf5-1.12.2-r4.ebuild | 117 -------------------- sci-libs/hdf5/hdf5-1.12.2-r6.ebuild | 119 --------------------- sci-libs/hdf5/hdf5-1.14.1.ebuild | 115 -------------------- sci-libs/hdf5/hdf5-1.14.2.ebuild | 116 -------------------- sci-libs/hdf5/hdf5-1.14.3-r1.ebuild | 119 --------------------- sci-libs/hdf5/hdf5-1.14.4_p2.ebuild | 119 --------------------- sci-libs/hdf5/hdf5-1.14.6.ebuild | 117 -------------------- 18 files changed, 1152 deletions(-) diff --git a/sci-libs/hdf5/Manifest b/sci-libs/hdf5/Manifest index 0f18e43d53f5..4dd96739839f 100644 --- a/sci-libs/hdf5/Manifest +++ b/sci-libs/hdf5/Manifest @@ -1,8 +1,2 @@ -DIST hdf5-1.10.5.tar.bz2 8706317 BLAKE2B ac326be8fe4ccc4b0153f15bc7d65aa8f1adc2ae279d3980f57ed46722b754d3f36ecf1d6273c75e80ed1afd4bbf10c6b1c5d9408e1f83a4b2e397e7902a7d3c SHA512 769e43b8672e26fe24ed68da0228c010d3d9bc950ca09f0bc60707911a2f26f2f8415c8abc8ec06e07667148d8cdb3b0c7b3e7860d9b19739629c5dfd5ce73d4 -DIST hdf5-1.12.2.tar.bz2 10494264 BLAKE2B 99ca5b57f6f54fa044c909f0773de62b218c1f0ec3c011f88f3c227536dd719e77ddbe42d562b1214e8843e41d8fc56db499d7f122876fdd36ef31b235229cb7 SHA512 cbb4663570de76b11adb6bf62cfdb754371d31eeab04691479a5764a45207a9c1309665ab80f51c63a4b9b87354f9cbe6835cef506a9fd554d142c6d2bec21e5 -DIST hdf5-1.14.1.tar.bz2 16257319 BLAKE2B fbabbe2a61fca3f841d0206e3918390001ec1ec713696b69845eb6390595794a63740db9a7b48fd132814268e216d8fea6288cd23b04b2fa981058b557113e73 SHA512 b4dd3fca88547fdcbb2afcc22cb11bb45b7b15c3c01d9e11b7f06030ffff1a9d5c4995abb6cf27b0c4e748f1a7ca497a7f2d995ba00586f447fcd2fa537e0e16 -DIST hdf5-1.14.2.tar.bz2 16070491 BLAKE2B 04acdc5352f7f0455bf6304ef07ddf51b99125bb585984bd3e27a521a784a6ad6723d64aa3b4179e4bd382334b7e68d06650404d7d4617a696d3f64917487dbc SHA512 1e1bfdff50c2e0e172d399c2d5b79b9ad0c7c72b9b30c4849aad7c5656393e8cf2af788cdf62b51fbe596023483fbc7fa23fdebf37bfe3109dae7f0783ea590f -DIST hdf5-1.14.3.tar.bz2 16320137 BLAKE2B 4c58edc04788db739c5c74d6edbfb9277011e2d6776862404fc29b30bb2c06a4314eb317393c230ebd2617a9a362ff78183d39ae80ce08f8963bdf6c02e8a865 SHA512 06d51638a56f387f6d0ef484b72e182509c15ab639315052be9821adeed6ad08551c50d7fe84d2b550b64211f68484cf3022a4660c8004cd0afd90eaa83c1bb1 -DIST hdf5-1.14.4-2.tar.gz 37033062 BLAKE2B cd75e0fec1ccea8622bb93839c4898e07093b298612cd3ba5aaa48178eba33f49e6a6492df779f0cc36ee263a107a3fa3e592caec35576d0e637b9e457da3965 SHA512 f1714b7999468d580b7cae2e575d3d7f31cea2fb81bfa4e37abd248d7223476b2351d1714197ace04eee970b451cf1f6971f5a291fd7426398737b8d7eb26924 DIST hdf5-1.14.4-3.tar.gz 37007795 BLAKE2B f71ba86da65337c3ff30c733760adea56a0ace05b4ac1c0060febb85f45a586ec47cc99828f1199e4e02fd5e2f4329ace450c62a3290f6341d21ec9e30cc59fd SHA512 667a40703b4e330db32d3ede48247781019414426d2949aabf2036089155bc7f2167fbc8b8c78b76286d8369d1f3c9bdd66049d3e4eda2c234ef751df9cc597a DIST hdf5-1.14.6.tar.gz 39289609 BLAKE2B c604384c0d98ce092ac59a67ec5baf3d593548d37defa0fd29b676dd0837e321fff937368edb50591ac8841116648e41ed8505611518a2c914a380191a7c0388 SHA512 d93194ad8f48acf110aae317f4c37104b9042f89ef72919aac887817e4c2713449c4cb2ab6a163c61ab1c12811170d7611cdf69322b0e0f96420fcc7f99fdd67 diff --git a/sci-libs/hdf5/files/hdf5-1.12.2-configure-clang16.patch b/sci-libs/hdf5/files/hdf5-1.12.2-configure-clang16.patch deleted file mode 100644 index f341fa99ddac..000000000000 --- a/sci-libs/hdf5/files/hdf5-1.12.2-configure-clang16.patch +++ /dev/null @@ -1,30 +0,0 @@ -https://github.com/HDFGroup/hdf5/commit/9dd36f016a4316b94f5df15856d228de01d304c6 - -From 9dd36f016a4316b94f5df15856d228de01d304c6 Mon Sep 17 00:00:00 2001 -From: Ryan Schmidt <[email protected]> -Date: Thu, 17 Nov 2022 16:28:44 -0600 -Subject: [PATCH] Simplify & fix check for szlib encoder (#2263) - -Return the result rather than setting the exit code. "return" is a -language keyword whereas "exit" is a function for which the <stdlib.h> -header has to be included which it wasn't in this test, therefore the -test would previously fail to identify that the encoder was enabled if -"-Werror=implicit-function-declaration" was used, which it is by default -with clang from Xcode 12 and later. - -Fixes #2262 ---- a/configure.ac -+++ b/configure.ac -@@ -1737,10 +1737,7 @@ if test "x$HAVE_SZLIB" = "xyes" -a "x$HAVE_SZLIB_H" = "xyes"; then - #include "szlib.h" - ],[[ - /* SZ_encoder_enabled returns 1 if encoder is present */ -- if(SZ_encoder_enabled() == 1) -- exit(0); -- else -- exit(1); -+ return SZ_encoder_enabled() != 1; - ]])] - , [hdf5_cv_szlib_can_encode=yes], [hdf5_cv_szlib_can_encode=no],)] - ) - diff --git a/sci-libs/hdf5/files/hdf5-1.12.2-no-messing-ldpath.patch b/sci-libs/hdf5/files/hdf5-1.12.2-no-messing-ldpath.patch deleted file mode 100644 index b8585fc647f6..000000000000 --- a/sci-libs/hdf5/files/hdf5-1.12.2-no-messing-ldpath.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- a/src/Makefile.am -+++ b/src/Makefile.am -@@ -159,8 +159,6 @@ settings_DATA=libhdf5.settings - # Remove the generated .c file if errors occur unless HDF5_Make_Ignore - # is set to ignore the error. - H5Tinit.c: H5detect$(EXEEXT) -- LD_LIBRARY_PATH="$$LD_LIBRARY_PATH`echo $(LDFLAGS) | \ -- sed -e 's/-L/:/g' -e 's/ //g'`" \ - $(RUNSERIAL) ./H5detect$(EXEEXT) $@ || \ - (test $$HDF5_Make_Ignore && echo "*** Error ignored") || \ - ($(RM) $@ ; exit 1) -@@ -171,8 +169,6 @@ H5Tinit.c: H5detect$(EXEEXT) - # Remove the generated .c file if errors occur unless HDF5_Make_Ignore - # is set to ignore the error. - H5lib_settings.c: H5make_libsettings$(EXEEXT) libhdf5.settings -- LD_LIBRARY_PATH="$$LD_LIBRARY_PATH`echo $(LDFLAGS) | \ -- sed -e 's/-L/:/g' -e 's/ //g'`" \ - $(RUNSERIAL) ./H5make_libsettings$(EXEEXT) $@ || \ - (test $$HDF5_Make_Ignore && echo "*** Error ignored") || \ - ($(RM) $@ ; exit 1) diff --git a/sci-libs/hdf5/files/hdf5-1.12.2-no-strip-symbols.patch b/sci-libs/hdf5/files/hdf5-1.12.2-no-strip-symbols.patch deleted file mode 100644 index 0f3bf3981fa7..000000000000 --- a/sci-libs/hdf5/files/hdf5-1.12.2-no-strip-symbols.patch +++ /dev/null @@ -1,16 +0,0 @@ -https://bugs.gentoo.org/665378 ---- a/configure.ac -+++ b/configure.ac -@@ -2368,9 +2368,9 @@ case "X-$SYMBOLS" in - AC_MSG_RESULT([yes]) - ;; - X-no) -- H5_CFLAGS="$H5_CFLAGS $NO_SYMBOLS_CFLAGS" -- H5_CXXFLAGS="$H5_CXXFLAGS $NO_SYMBOLS_CXXFLAGS" -- H5_FCFLAGS="$H5_FCFLAGS $NO_SYMBOLS_FCFLAGS" -+ H5_CFLAGS="$H5_CFLAGS" -+ H5_CXXFLAGS="$H5_CXXFLAGS" -+ H5_FCFLAGS="$H5_FCFLAGS" - AC_MSG_RESULT([no]) - ;; - *) diff --git a/sci-libs/hdf5/files/hdf5-1.14.2-0001-Make-sure-that-during-runtime-we-ll-use-the-same-lib.patch b/sci-libs/hdf5/files/hdf5-1.14.2-0001-Make-sure-that-during-runtime-we-ll-use-the-same-lib.patch deleted file mode 100644 index 91ed578ccc14..000000000000 --- a/sci-libs/hdf5/files/hdf5-1.14.2-0001-Make-sure-that-during-runtime-we-ll-use-the-same-lib.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 1a5293a30594afbfd3a24899e055429046a47837 Mon Sep 17 00:00:00 2001 -From: Sam James <[email protected]> -Date: Sun, 17 Dec 2023 09:25:43 +0000 -Subject: [PATCH 1/3] Make sure that during runtime we'll use the same - libgfortran as during linking - -Bug: https://bugs.gentoo.org/419991 -Bug: https://bugs.gentoo.org/419895 -Signed-off-by: Sam James <[email protected]> ---- - fortran/src/Makefile.am | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/fortran/src/Makefile.am b/fortran/src/Makefile.am -index d42a41d..2b2a316 100644 ---- a/fortran/src/Makefile.am -+++ b/fortran/src/Makefile.am -@@ -96,6 +96,7 @@ if BUILD_PARALLEL_CONDITIONAL - else - H5FC_NAME = h5fc - endif -+H5test_kind_LDFLAGS=-static-libgfortran - - # Rules for automatically detecting which fortran types are present - # and matching them to C types. This is accomplished using helper --- -2.43.0 - diff --git a/sci-libs/hdf5/files/hdf5-1.14.2-0002-Disable-forced-stripping.patch b/sci-libs/hdf5/files/hdf5-1.14.2-0002-Disable-forced-stripping.patch deleted file mode 100644 index 646950c62167..000000000000 --- a/sci-libs/hdf5/files/hdf5-1.14.2-0002-Disable-forced-stripping.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 260c90de63af19ff96fcf735d75d497356747788 Mon Sep 17 00:00:00 2001 -From: Sam James <[email protected]> -Date: Sun, 17 Dec 2023 09:26:33 +0000 -Subject: [PATCH 2/3] Disable forced stripping - -Bug: https://bugs.gentoo.org/665378 -Signed-off-by: Sam James <[email protected]> ---- - configure.ac | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/configure.ac b/configure.ac -index baad732..8c6b6f4 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -2183,9 +2183,9 @@ case "X-$SYMBOLS" in - AC_MSG_RESULT([yes]) - ;; - X-no) -- H5_CFLAGS="$H5_CFLAGS $NO_SYMBOLS_CFLAGS" -- H5_CXXFLAGS="$H5_CXXFLAGS $NO_SYMBOLS_CXXFLAGS" -- H5_FCFLAGS="$H5_FCFLAGS $NO_SYMBOLS_FCFLAGS" -+ H5_CFLAGS="$H5_CFLAGS" -+ H5_CXXFLAGS="$H5_CXXFLAGS" -+ H5_FCFLAGS="$H5_FCFLAGS" - AC_MSG_RESULT([no]) - ;; - *) --- -2.43.0 - diff --git a/sci-libs/hdf5/files/hdf5-1.14.2-0003-Drop-broken-Werror-stripping.patch b/sci-libs/hdf5/files/hdf5-1.14.2-0003-Drop-broken-Werror-stripping.patch deleted file mode 100644 index fbe69dcadb92..000000000000 --- a/sci-libs/hdf5/files/hdf5-1.14.2-0003-Drop-broken-Werror-stripping.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 5c87a2125ca2620de633e33a52020d12b7661da8 Mon Sep 17 00:00:00 2001 -From: Sam James <[email protected]> -Date: Sun, 17 Dec 2023 09:27:18 +0000 -Subject: [PATCH 3/3] Drop broken -Werror stripping - -The stripping is broken and mangles -Werror=x -> -x [0]. - -[0] https://github.com/HDFGroup/hdf5/commit/41526f68f3482f2b3a7aa581288bc86e9c6dcb43#r100076265 - -Bug: https://bugs.gentoo.org/917448 -Signed-off-by: Sam James <[email protected]> ---- - configure.ac | 8 -------- - 1 file changed, 8 deletions(-) - -diff --git a/configure.ac b/configure.ac -index 8c6b6f4..a66830e 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -189,14 +189,6 @@ saved_user_JAVAFLAGS="$JAVAFLAGS" - saved_user_LDFLAGS="$LDFLAGS" - saved_user_CPPFLAGS="$CPPFLAGS" - --## Strip out -Werror from CFLAGS since that can cause checks to fail when --## compiling the test program fails due to warnings --CFLAGS="`echo $CFLAGS | sed -e 's/-Werror//g'`" --CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-Werror//g'`" --FCFLAGS="`echo $FCFLAGS | sed -e 's/-Werror//g'`" --JAVACFLAGS="`echo $JAVACFLAGS | sed -e 's/-Werror//g'`" --CPPFLAGS="`echo $CPPFLAGS | sed -e 's/-Werror//g'`" -- - ## Support F9X variable to define Fortran compiler if FC variable is - ## not used. This should be deprecated in the future. - if test "x" = "x$FC"; then --- -2.43.0 - diff --git a/sci-libs/hdf5/files/hdf5-1.8.13-no-messing-ldpath.patch b/sci-libs/hdf5/files/hdf5-1.8.13-no-messing-ldpath.patch deleted file mode 100644 index 82bc5d8b120a..000000000000 --- a/sci-libs/hdf5/files/hdf5-1.8.13-no-messing-ldpath.patch +++ /dev/null @@ -1,21 +0,0 @@ -Prevent build system with messing up LD_LIBRARY_PATH ---- a/src/Makefile.am -+++ b/src/Makefile.am -@@ -125,8 +125,6 @@ settings_DATA=libhdf5.settings - # Remove the generated .c file if errors occur unless HDF5_Make_Ignore - # is set to ignore the error. - H5Tinit.c: H5detect$(EXEEXT) -- LD_LIBRARY_PATH="$$LD_LIBRARY_PATH`echo $(LDFLAGS) | \ -- sed -e 's/-L/:/g' -e 's/ //g'`" \ - $(RUNSERIAL) ./H5detect$(EXEEXT) > $@ || \ - (test $$HDF5_Make_Ignore && echo "*** Error ignored") || \ - ($(RM) $@ ; exit 1) -@@ -137,8 +135,6 @@ H5Tinit.c: H5detect$(EXEEXT) - # Remove the generated .c file if errors occur unless HDF5_Make_Ignore - # is set to ignore the error. - H5lib_settings.c: H5make_libsettings$(EXEEXT) libhdf5.settings -- LD_LIBRARY_PATH="$$LD_LIBRARY_PATH`echo $(LDFLAGS) | \ -- sed -e 's/-L/:/g' -e 's/ //g'`" \ - $(RUNSERIAL) ./H5make_libsettings$(EXEEXT) > $@ || \ - (test $$HDF5_Make_Ignore && echo "*** Error ignored") || \ - ($(RM) $@ ; exit 1) diff --git a/sci-libs/hdf5/files/hdf5-1.8.9-mpicxx.patch b/sci-libs/hdf5/files/hdf5-1.8.9-mpicxx.patch deleted file mode 100644 index 28f554c0c592..000000000000 --- a/sci-libs/hdf5/files/hdf5-1.8.9-mpicxx.patch +++ /dev/null @@ -1,16 +0,0 @@ -Prevent accidental inclusion of mpi c++ headers -when hdf5.h is included third party library - -https://bugs.gentoo.org/show_bug.cgi?id=420777 - ---- a/src/H5public.h -+++ b/src/H5public.h -@@ -58,6 +58,8 @@ - # include <stddef.h> - #endif - #ifdef H5_HAVE_PARALLEL -+# define OMPI_SKIP_MPICXX /* Make sure that cxx specific headers are not included */ -+# define MPICH_SKIP_MPICXX - # include <mpi.h> - #ifndef MPI_FILE_NULL /*MPIO may be defined in mpi.h already */ - # include <mpio.h> diff --git a/sci-libs/hdf5/files/hdf5-1.8.9-static_libgfortran.patch b/sci-libs/hdf5/files/hdf5-1.8.9-static_libgfortran.patch deleted file mode 100644 index f87ccdd08f7a..000000000000 --- a/sci-libs/hdf5/files/hdf5-1.8.9-static_libgfortran.patch +++ /dev/null @@ -1,15 +0,0 @@ -Make sure that during runtime we'll use the same libgfortran as during linking - -https://bugs.gentoo.org/show_bug.cgi?id=419991 -https://bugs.gentoo.org/show_bug.cgi?id=419895 - ---- a/fortran/src/Makefile.am -+++ b/fortran/src/Makefile.am -@@ -181,6 +181,7 @@ - else - H5test_kind_SOURCES = $(srcdir)/H5test_kind.f90 - endif -+H5test_kind_LDFLAGS=-static-libgfortran - - # Mark this directory as part of the Fortran API - FORTRAN_API=yes diff --git a/sci-libs/hdf5/hdf5-1.10.5-r1.ebuild b/sci-libs/hdf5/hdf5-1.10.5-r1.ebuild deleted file mode 100644 index a0af72edf1e5..000000000000 --- a/sci-libs/hdf5/hdf5-1.10.5-r1.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -FORTRAN_NEEDED="fortran" - -inherit autotools fortran-2 flag-o-matic toolchain-funcs prefix - -MY_P="${PN}-${PV/_p/-patch}" -MAJOR_P="${PN}-$(ver_cut 1-2)" - -DESCRIPTION="General purpose library and file format for storing scientific data" -HOMEPAGE="https://www.hdfgroup.org/HDF5/" -SRC_URI="https://www.hdfgroup.org/ftp/HDF5/releases/${MAJOR_P}/${MY_P}/src/${MY_P}.tar.bz2" - -LICENSE="NCSA-HDF" -SLOT="0/${PV%%_p*}" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux" -IUSE="cxx debug examples fortran +hl mpi szip threads unsupported zlib" - -REQUIRED_USE=" - !unsupported? ( - ?? ( cxx mpi ) - threads? ( !cxx !mpi !fortran !hl ) - )" -RDEPEND=" - mpi? ( virtual/mpi[romio] ) - szip? ( virtual/szip ) - zlib? ( sys-libs/zlib:0= ) -" -DEPEND="${RDEPEND} - dev-build/libtool:2 - >=dev-build/autoconf-2.69 -" -S="${WORKDIR}/${MY_P}" - -PATCHES=( - "${FILESDIR}/${PN}-1.8.9-static_libgfortran.patch" - "${FILESDIR}/${PN}-1.8.9-mpicxx.patch" - "${FILESDIR}/${PN}-1.8.13-no-messing-ldpath.patch" -) - -pkg_setup() { - tc-export CXX CC AR # workaround for bug 285148 - use fortran && fortran-2_pkg_setup - - if use mpi; then - if has_version 'sci-libs/hdf5[-mpi]'; then - ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail." - ewarn "Try to uninstall the current hdf5 prior to enabling mpi support." - fi - export CC="mpicc" - use fortran && export FC="mpif90" - append-ldflags -lmpi - elif has_version 'sci-libs/hdf5[mpi]'; then - ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail." - ewarn "Try to uninstall the current hdf5 prior to disabling mpi support." - fi -} - -src_prepare() { - # respect gentoo examples directory - sed \ - -e "s:hdf5_examples:doc/${PF}/examples:g" \ - -i $(find . -name Makefile.am) $(find . -name "run*.sh.in") || die - sed \ - -e '/docdir/d' \ - -i config/commence.am || die - if ! use examples; then - sed -e '/^install:/ s/install-examples//' \ - -i Makefile.am || die #409091 - fi - # enable shared libs by default for h5cc config utility - sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" tools/src/misc/h5cc.in || die - hprefixify m4/libtool.m4 - - # bug #775305 - use fortran && tc-enables-pie && append-fflags -fPIC - - default - eautomake -} - -src_configure() { - use sparc && tc-is-gcc && append-flags -fno-tree-ccp # bug 686620 - local myconf=( - --disable-static - --enable-deprecated-symbols - --enable-build-mode=$(usex debug debug production) - $(use_enable cxx) - $(use_enable debug codestack) - $(use_enable fortran) - $(use_enable hl) - $(use_enable mpi parallel) - $(use_enable threads threadsafe) - $(use_enable unsupported) - $(use_with szip szlib) - $(use_with threads pthread) - $(use_with zlib) - ) - econf "${myconf[@]}" -} - -src_install() { - default - - # no static archives - find "${D}" -name '*.la' -delete || die -} diff --git a/sci-libs/hdf5/hdf5-1.12.2-r4.ebuild b/sci-libs/hdf5/hdf5-1.12.2-r4.ebuild deleted file mode 100644 index d225ad1e615e..000000000000 --- a/sci-libs/hdf5/hdf5-1.12.2-r4.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -FORTRAN_NEEDED=fortran - -# We've reverted *back* to autotools from CMake because of -# https://github.com/HDFGroup/hdf5/issues/1814. -inherit autotools fortran-2 flag-o-matic toolchain-funcs prefix - -MY_P=${PN}-${PV/_p/-patch} -MAJOR_P=${PN}-$(ver_cut 1-2) - -DESCRIPTION="General purpose library and file format for storing scientific data" -HOMEPAGE="https://www.hdfgroup.org/HDF5/" -SRC_URI="https://www.hdfgroup.org/ftp/HDF5/releases/${MAJOR_P}/${MY_P}/src/${MY_P}.tar.bz2" -S="${WORKDIR}/${MY_P}" - -LICENSE="NCSA-HDF" -SLOT="0/${PV%%_p*}" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux" -IUSE="cxx debug examples fortran +hl mpi szip threads unsupported zlib" -REQUIRED_USE=" - !unsupported? ( - cxx? ( !mpi ) mpi? ( !cxx ) - threads? ( !cxx !mpi !fortran !hl ) - ) -" - -RDEPEND=" - mpi? ( virtual/mpi[romio] ) - szip? ( virtual/szip ) - zlib? ( sys-libs/zlib:0= )" -DEPEND="${RDEPEND}" - -PATCHES=( - "${FILESDIR}"/${PN}-1.8.9-static_libgfortran.patch - "${FILESDIR}"/${PN}-1.12.2-no-messing-ldpath.patch - "${FILESDIR}"/${PN}-1.12.2-no-strip-symbols.patch -) - -pkg_setup() { - # Workaround for bug 285148 - tc-export CXX CC AR - - use fortran && fortran-2_pkg_setup - - if use mpi; then - if has_version 'sci-libs/hdf5[-mpi]'; then - ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail." - ewarn "Try to uninstall the current hdf5 prior to enabling mpi support." - fi - - export CC=mpicc - use fortran && export FC=mpif90 - elif has_version 'sci-libs/hdf5[mpi]'; then - ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail." - ewarn "Try to uninstall the current hdf5 prior to disabling mpi support." - fi -} - -src_prepare() { - default - - # Respect Gentoo examples directory - sed \ - -e "s:hdf5_examples:doc/${PF}/examples:g" \ - -i $(find . -name Makefile.am) $(find . -name "run*.sh.in") || die - sed \ - -e '/docdir/d' \ - -i config/commence.am || die - - if ! use examples; then - # bug #409091 - sed -e '/^install:/ s/install-examples//' \ - -i Makefile.am || die - fi - - # Enable shared libs by default for h5cc config utility - sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" bin/h5cc.in || die - hprefixify m4/libtool.m4 - - eautoreconf -} - -src_configure() { - # bug #686620 - use sparc && tc-is-gcc && append-flags -fno-tree-ccp - - econf \ - --disable-static \ - --enable-deprecated-symbols \ - --enable-build-mode=$(usex debug debug production) \ - $(use_enable cxx) \ - $(use_enable debug codestack) \ - $(use_enable fortran) \ - $(use_enable hl) \ - $(use_enable mpi parallel) \ - $(use_enable threads threadsafe) \ - $(use_enable unsupported) \ - $(use_with szip szlib) \ - $(use_with threads pthread) \ - $(use_with zlib) -} - -src_install() { - emake DESTDIR="${D}" EPREFIX="${EPREFIX}" install - - # No static archives - find "${ED}" -name '*.la' -delete || die - - # Remove "perf" executable due to file collisions with dev-util/perf. - # Previously with the CMake build system we only installed h5perf, so - # let's simply remove the file for now. - use mpi && { rm "${ED}"/usr/bin/perf || die "rm failed" ; } -} diff --git a/sci-libs/hdf5/hdf5-1.12.2-r6.ebuild b/sci-libs/hdf5/hdf5-1.12.2-r6.ebuild deleted file mode 100644 index b061dcd3a0a8..000000000000 --- a/sci-libs/hdf5/hdf5-1.12.2-r6.ebuild +++ /dev/null @@ -1,119 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -FORTRAN_NEEDED=fortran - -# We've reverted *back* to autotools from CMake because of -# https://github.com/HDFGroup/hdf5/issues/1814. -inherit autotools fortran-2 flag-o-matic toolchain-funcs prefix - -MY_P=${PN}-${PV/_p/-patch} -MAJOR_P=${PN}-$(ver_cut 1-2) - -DESCRIPTION="General purpose library and file format for storing scientific data" -HOMEPAGE="https://www.hdfgroup.org/HDF5/" -SRC_URI="https://www.hdfgroup.org/ftp/HDF5/releases/${MAJOR_P}/${MY_P}/src/${MY_P}.tar.bz2" -S="${WORKDIR}/${MY_P}" - -LICENSE="NCSA-HDF" -SLOT="0/${PV%%_p*}" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux" -IUSE="cxx debug examples fortran +hl mpi szip threads unsupported zlib" -REQUIRED_USE=" - !unsupported? ( - cxx? ( !mpi ) mpi? ( !cxx ) - threads? ( !cxx !mpi !fortran !hl ) - ) -" - -RDEPEND=" - mpi? ( virtual/mpi[romio] ) - szip? ( virtual/szip ) - zlib? ( sys-libs/zlib:0= )" -DEPEND="${RDEPEND}" - -PATCHES=( - "${FILESDIR}"/${PN}-1.8.9-static_libgfortran.patch - "${FILESDIR}"/${PN}-1.12.2-no-messing-ldpath.patch - "${FILESDIR}"/${PN}-1.12.2-no-strip-symbols.patch - "${FILESDIR}"/${PN}-1.12.2-configure-clang16.patch -) - -pkg_setup() { - # Workaround for bug 285148 - tc-export CXX CC AR - - use fortran && fortran-2_pkg_setup - - if use mpi; then - if has_version 'sci-libs/hdf5[-mpi]'; then - ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail." - ewarn "Try to uninstall the current hdf5 prior to enabling mpi support." - fi - - export CC=mpicc - use fortran && export FC=mpif90 - elif has_version 'sci-libs/hdf5[mpi]'; then - ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail." - ewarn "Try to uninstall the current hdf5 prior to disabling mpi support." - fi -} - -src_prepare() { - default - - # Respect Gentoo examples directory - sed \ - -e "s:hdf5_examples:doc/${PF}/examples:g" \ - -i $(find . -name Makefile.am) $(find . -name "run*.sh.in") || die - sed \ - -e '/docdir/d' \ - -i config/commence.am || die - - if ! use examples; then - # bug #409091 - sed -e '/^install:/ s/install-examples//' \ - -i Makefile.am || die - fi - - # Enable shared libs by default for h5cc config utility - sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" bin/h5cc.in || die - hprefixify m4/libtool.m4 - - eautoreconf -} - -src_configure() { - # bug #686620 - use sparc && tc-is-gcc && append-flags -fno-tree-ccp - - econf \ - --disable-static \ - --enable-deprecated-symbols \ - --enable-build-mode=$(usex debug debug production) \ - --with-default-plugindir="${EPREFIX}/usr/$(get_libdir)/${PN}/plugin" \ - $(use_enable cxx) \ - $(use_enable debug codestack) \ - $(use_enable fortran) \ - $(use_enable hl) \ - $(use_enable mpi parallel) \ - $(use_enable threads threadsafe) \ - $(use_enable unsupported) \ - $(use_with szip szlib) \ - $(use_with threads pthread) \ - $(use_with zlib) -} - -src_install() { - emake DESTDIR="${D}" EPREFIX="${EPREFIX}" install - - # No static archives - find "${ED}" -name '*.la' -delete || die - - # Remove "perf" executable due to file collisions with dev-util/perf. - # Previously with the CMake build system we only installed h5perf, so - # let's simply remove the file for now. - use mpi && { rm "${ED}"/usr/bin/perf || die "rm failed" ; } -} diff --git a/sci-libs/hdf5/hdf5-1.14.1.ebuild b/sci-libs/hdf5/hdf5-1.14.1.ebuild deleted file mode 100644 index ea15d82c2713..000000000000 --- a/sci-libs/hdf5/hdf5-1.14.1.ebuild +++ /dev/null @@ -1,115 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -FORTRAN_NEEDED=fortran - -# We've reverted *back* to autotools from CMake because of -# https://github.com/HDFGroup/hdf5/issues/1814. -inherit autotools fortran-2 flag-o-matic toolchain-funcs prefix - -MY_P=${PN}-${PV/_p/-patch} -MAJOR_P=${PN}-$(ver_cut 1-2) - -DESCRIPTION="General purpose library and file format for storing scientific data" -HOMEPAGE="https://www.hdfgroup.org/HDF5/" -SRC_URI="https://www.hdfgroup.org/ftp/HDF5/releases/${MAJOR_P}/${MY_P}/src/${MY_P}.tar.bz2" -S="${WORKDIR}/${MY_P}" - -LICENSE="NCSA-HDF" -SLOT="0/${PV%%_p*}" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" -IUSE="cxx debug examples fortran +hl mpi szip test threads unsupported zlib" -RESTRICT="!test? ( test )" -REQUIRED_USE=" - !unsupported? ( - cxx? ( !mpi ) mpi? ( !cxx ) - threads? ( !cxx !mpi !fortran !hl ) - ) -" - -RDEPEND=" - mpi? ( virtual/mpi[romio] ) - szip? ( virtual/szip ) - zlib? ( sys-libs/zlib:= ) -" -DEPEND="${RDEPEND}" - -PATCHES=( - "${FILESDIR}"/${PN}-1.8.9-static_libgfortran.patch - "${FILESDIR}"/${PN}-1.12.2-no-strip-symbols.patch -) - -pkg_setup() { - # Workaround for bug 285148 - tc-export CXX CC AR - - use fortran && fortran-2_pkg_setup - - if use mpi; then - if has_version 'sci-libs/hdf5[-mpi]'; then - ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail." - ewarn "Try to uninstall the current hdf5 prior to enabling mpi support." - fi - - export CC=mpicc - use fortran && export FC=mpif90 - elif has_version 'sci-libs/hdf5[mpi]'; then - ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail." - ewarn "Try to uninstall the current hdf5 prior to disabling mpi support." - fi -} - -src_prepare() { - default - - # Respect Gentoo examples directory - sed \ - -e "s:hdf5_examples:doc/${PF}/examples:g" \ - -i $(find . -name Makefile.am) $(find . -name "run*.sh.in") || die - sed \ - -e '/docdir/d' \ - -i config/commence.am || die - - if ! use examples; then - # bug #409091 - sed -e '/^install:/ s/install-examples//' \ - -i Makefile.am || die - fi - - # Enable shared libs by default for h5cc config utility - sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" bin/h5cc.in || die - hprefixify m4/libtool.m4 - - eautoreconf -} - -src_configure() { - # bug #686620 - use sparc && tc-is-gcc && append-flags -fno-tree-ccp - - econf \ - --disable-static \ - --enable-deprecated-symbols \ - --enable-build-mode=$(usex debug debug production) \ - --with-default-plugindir="${EPREFIX}/usr/$(get_libdir)/${PN}/plugin" \ - $(use_enable cxx) \ - $(use_enable debug codestack) \ - $(use_enable fortran) \ - $(use_enable hl) \ - $(use_enable mpi parallel) \ - $(use_enable test tests) \ - $(use_enable threads threadsafe) \ - $(use_enable unsupported) \ - $(use_with szip szlib) \ - $(use_with threads pthread) \ - $(use_with zlib) -} - -src_install() { - emake DESTDIR="${D}" EPREFIX="${EPREFIX}" install - - # No static archives - find "${ED}" -name '*.la' -delete || die -} diff --git a/sci-libs/hdf5/hdf5-1.14.2.ebuild b/sci-libs/hdf5/hdf5-1.14.2.ebuild deleted file mode 100644 index 71629929bb69..000000000000 --- a/sci-libs/hdf5/hdf5-1.14.2.ebuild +++ /dev/null @@ -1,116 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -FORTRAN_NEEDED=fortran - -# We've reverted *back* to autotools from CMake because of -# https://github.com/HDFGroup/hdf5/issues/1814. -inherit autotools fortran-2 flag-o-matic toolchain-funcs prefix - -MY_P=${PN}-${PV/_p/-patch} -MAJOR_P=${PN}-$(ver_cut 1-2) - -DESCRIPTION="General purpose library and file format for storing scientific data" -HOMEPAGE="https://www.hdfgroup.org/HDF5/" -SRC_URI="https://www.hdfgroup.org/ftp/HDF5/releases/${MAJOR_P}/${MY_P}/src/${MY_P}.tar.bz2" -S="${WORKDIR}/${MY_P}" - -LICENSE="NCSA-HDF" -SLOT="0/${PV%%_p*}" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" -IUSE="cxx debug examples fortran +hl mpi szip test threads unsupported zlib" -RESTRICT="!test? ( test )" -REQUIRED_USE=" - !unsupported? ( - cxx? ( !mpi ) mpi? ( !cxx ) - threads? ( !cxx !mpi !fortran !hl ) - ) -" - -RDEPEND=" - mpi? ( virtual/mpi[romio] ) - szip? ( virtual/szip ) - zlib? ( sys-libs/zlib:= ) -" -DEPEND="${RDEPEND}" - -PATCHES=( - "${FILESDIR}"/hdf5-1.14.2-0001-Make-sure-that-during-runtime-we-ll-use-the-same-lib.patch - "${FILESDIR}"/hdf5-1.14.2-0002-Disable-forced-stripping.patch - "${FILESDIR}"/hdf5-1.14.2-0003-Drop-broken-Werror-stripping.patch -) - -pkg_setup() { - # Workaround for bug 285148 - tc-export CXX CC AR - - use fortran && fortran-2_pkg_setup - - if use mpi; then - if has_version 'sci-libs/hdf5[-mpi]'; then - ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail." - ewarn "Try to uninstall the current hdf5 prior to enabling mpi support." - fi - - export CC=mpicc - use fortran && export FC=mpif90 - elif has_version 'sci-libs/hdf5[mpi]'; then - ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail." - ewarn "Try to uninstall the current hdf5 prior to disabling mpi support." - fi -} - -src_prepare() { - default - - # Respect Gentoo examples directory - sed \ - -e "s:hdf5_examples:doc/${PF}/examples:g" \ - -i $(find . -name Makefile.am) $(find . -name "run*.sh.in") || die - sed \ - -e '/docdir/d' \ - -i config/commence.am || die - - if ! use examples; then - # bug #409091 - sed -e '/^install:/ s/install-examples//' \ - -i Makefile.am || die - fi - - # Enable shared libs by default for h5cc config utility - sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" bin/h5cc.in || die - hprefixify m4/libtool.m4 - - eautoreconf -} - -src_configure() { - # bug #686620 - use sparc && tc-is-gcc && append-flags -fno-tree-ccp - - econf \ - --disable-static \ - --enable-deprecated-symbols \ - --enable-build-mode=$(usex debug debug production) \ - --with-default-plugindir="${EPREFIX}/usr/$(get_libdir)/${PN}/plugin" \ - $(use_enable cxx) \ - $(use_enable debug codestack) \ - $(use_enable fortran) \ - $(use_enable hl) \ - $(use_enable mpi parallel) \ - $(use_enable test tests) \ - $(use_enable threads threadsafe) \ - $(use_enable unsupported) \ - $(use_with szip szlib) \ - $(use_with threads pthread) \ - $(use_with zlib) -} - -src_install() { - emake DESTDIR="${D}" EPREFIX="${EPREFIX}" install - - # No static archives - find "${ED}" -name '*.la' -delete || die -} diff --git a/sci-libs/hdf5/hdf5-1.14.3-r1.ebuild b/sci-libs/hdf5/hdf5-1.14.3-r1.ebuild deleted file mode 100644 index 2e49a672a9e6..000000000000 --- a/sci-libs/hdf5/hdf5-1.14.3-r1.ebuild +++ /dev/null @@ -1,119 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -FORTRAN_NEEDED=fortran - -# We've reverted *back* to autotools from CMake because of -# https://github.com/HDFGroup/hdf5/issues/1814. -inherit autotools fortran-2 flag-o-matic toolchain-funcs prefix - -MY_P=${PN}-${PV/_p/-patch} -MAJOR_P=${PN}-$(ver_cut 1-2) - -DESCRIPTION="General purpose library and file format for storing scientific data" -HOMEPAGE="https://www.hdfgroup.org/HDF5/" -SRC_URI="https://www.hdfgroup.org/ftp/HDF5/releases/${MAJOR_P}/${MY_P}/src/${MY_P}.tar.bz2" -S="${WORKDIR}/${MY_P}" - -LICENSE="NCSA-HDF" -SLOT="0/${PV%%_p*}" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" -IUSE="cxx debug examples fortran +hl mpi szip test threads unsupported zlib" -RESTRICT="!test? ( test )" -REQUIRED_USE=" - !unsupported? ( - cxx? ( !mpi ) mpi? ( !cxx ) - threads? ( !cxx !mpi !fortran !hl ) - ) -" - -RDEPEND=" - mpi? ( virtual/mpi[romio] ) - szip? ( virtual/szip ) - zlib? ( sys-libs/zlib:= ) -" -DEPEND="${RDEPEND}" - -PATCHES=( - "${FILESDIR}"/hdf5-1.14.2-0001-Make-sure-that-during-runtime-we-ll-use-the-same-lib.patch - "${FILESDIR}"/hdf5-1.14.2-0002-Disable-forced-stripping.patch - "${FILESDIR}"/hdf5-1.14.2-0003-Drop-broken-Werror-stripping.patch -) - -pkg_setup() { - # Workaround for bug 285148 - tc-export CXX CC AR - - use fortran && fortran-2_pkg_setup - - if use mpi; then - if has_version 'sci-libs/hdf5[-mpi]'; then - ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail." - ewarn "Try to uninstall the current hdf5 prior to enabling mpi support." - fi - - export CC=mpicc - use fortran && export FC=mpif90 - elif has_version 'sci-libs/hdf5[mpi]'; then - ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail." - ewarn "Try to uninstall the current hdf5 prior to disabling mpi support." - fi -} - -src_prepare() { - default - - sed \ - -e '/docdir/d' \ - -i config/commence.am || die - - if ! use examples; then - # bug #409091 - sed -e '/^install:/ s/install-examples//' \ - -i Makefile.am || die - fi - - # Enable shared libs by default for h5cc config utility - sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" bin/h5cc.in || die - hprefixify m4/libtool.m4 - - eautoreconf -} - -src_configure() { - # bug #686620 - use sparc && tc-is-gcc && append-flags -fno-tree-ccp - # bug #922800, LTO failures: - filter-lto - - local myeconfargs=( - --disable-static - --disable-doxygen-errors - --enable-deprecated-symbols - --enable-build-mode=$(usex debug debug production) - --with-default-plugindir="${EPREFIX}/usr/$(get_libdir)/${PN}/plugin" - --with-examplesdir="\${datarootdir}/doc/${PF}/examples" \ - $(use_enable cxx) - $(use_enable debug codestack) - $(use_enable fortran) - $(use_enable hl) - $(use_enable mpi parallel) - $(use_enable test tests) - $(use_enable threads threadsafe) - $(use_enable unsupported) - $(use_with szip szlib) - $(use_with threads pthread) - $(use_with zlib) - ) - - econf "${myeconfargs[@]}" -} - -src_install() { - emake DESTDIR="${D}" EPREFIX="${EPREFIX}" install - - # No static archives - find "${ED}" -name '*.la' -delete || die -} diff --git a/sci-libs/hdf5/hdf5-1.14.4_p2.ebuild b/sci-libs/hdf5/hdf5-1.14.4_p2.ebuild deleted file mode 100644 index afb55b1a21c8..000000000000 --- a/sci-libs/hdf5/hdf5-1.14.4_p2.ebuild +++ /dev/null @@ -1,119 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -FORTRAN_NEEDED=fortran - -# We've reverted *back* to autotools from CMake because of -# https://github.com/HDFGroup/hdf5/issues/1814. -inherit autotools fortran-2 flag-o-matic toolchain-funcs prefix - -MY_PV=${PV/_p/-} -MY_P=${PN}-${MY_PV} -MAJOR_P=${PN}-$(ver_cut 1-2) - -DESCRIPTION="General purpose library and file format for storing scientific data" -HOMEPAGE="https://www.hdfgroup.org/HDF5/" -SRC_URI="https://github.com/HDFGroup/hdf5/releases/download/${PN}_${MY_PV/-/.}/${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}" - -LICENSE="NCSA-HDF" -# Upstream make SONAME changes all the time even within stable releases. -SLOT="0/${PV%%_p*}" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" -IUSE="cxx debug examples fortran +hl mpi szip test threads unsupported zlib" -RESTRICT="!test? ( test )" -REQUIRED_USE=" - !unsupported? ( - cxx? ( !mpi ) mpi? ( !cxx ) - threads? ( !cxx !mpi !fortran !hl ) - ) -" - -RDEPEND=" - mpi? ( virtual/mpi[romio] ) - szip? ( virtual/szip ) - zlib? ( sys-libs/zlib:= ) -" -DEPEND="${RDEPEND}" - -PATCHES=( - "${FILESDIR}"/hdf5-1.14.4-0001-Make-sure-that-during-runtime-we-ll-use-the-same-lib.patch - "${FILESDIR}"/hdf5-1.14.4-0002-Disable-forced-stripping.patch - "${FILESDIR}"/hdf5-1.14.4-0003-Drop-broken-Werror-stripping.patch -) - -pkg_setup() { - # Workaround for bug 285148 - tc-export CXX CC AR - - use fortran && fortran-2_pkg_setup - - if use mpi; then - if has_version 'sci-libs/hdf5[-mpi]'; then - ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail." - ewarn "Try to uninstall the current hdf5 prior to enabling mpi support." - fi - - export CC=mpicc - use fortran && export FC=mpif90 - elif has_version 'sci-libs/hdf5[mpi]'; then - ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail." - ewarn "Try to uninstall the current hdf5 prior to disabling mpi support." - fi -} - -src_prepare() { - default - - sed \ - -e '/docdir/d' \ - -i config/commence.am || die - - if ! use examples; then - # bug #409091 - sed -e '/^install:/ s/install-examples//' \ - -i Makefile.am || die - fi - - # Enable shared libs by default for h5cc config utility - sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" bin/h5cc.in || die - hprefixify m4/libtool.m4 - - eautoreconf -} - -src_configure() { - # bug #686620 - use sparc && tc-is-gcc && append-flags -fno-tree-ccp - - local myeconfargs=( - --disable-static - --disable-doxygen-errors - --enable-deprecated-symbols - --enable-build-mode=$(usex debug debug production) - --with-default-plugindir="${EPREFIX}/usr/$(get_libdir)/${PN}/plugin" - --with-examplesdir="\${datarootdir}/doc/${PF}/examples" \ - $(use_enable cxx) - $(use_enable debug codestack) - $(use_enable fortran) - $(use_enable hl) - $(use_enable mpi parallel) - $(use_enable test tests) - $(use_enable threads threadsafe) - $(use_enable unsupported) - $(use_with szip szlib) - $(use_with threads pthread) - $(use_with zlib) - ) - - econf "${myeconfargs[@]}" -} - -src_install() { - emake DESTDIR="${D}" EPREFIX="${EPREFIX}" install - - # No static archives - find "${ED}" -name '*.la' -delete || die -} diff --git a/sci-libs/hdf5/hdf5-1.14.6.ebuild b/sci-libs/hdf5/hdf5-1.14.6.ebuild deleted file mode 100644 index 483abf11eeea..000000000000 --- a/sci-libs/hdf5/hdf5-1.14.6.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -FORTRAN_NEEDED=fortran - -# We've reverted *back* to autotools from CMake because of -# https://github.com/HDFGroup/hdf5/issues/1814. -inherit autotools fortran-2 flag-o-matic toolchain-funcs prefix - -MY_PV=${PV/_p/-} -MY_P=${PN}-${MY_PV} -MAJOR_P=${PN}-$(ver_cut 1-2) - -DESCRIPTION="General purpose library and file format for storing scientific data" -HOMEPAGE="https://github.com/HDFGroup/hdf5/" -SRC_URI="https://github.com/HDFGroup/hdf5/releases/download/${PN}_${MY_PV/-/.}/${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}" - -LICENSE="NCSA-HDF" -SLOT="0/311" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" -IUSE="cxx debug examples fortran +hl mpi szip test threads unsupported zlib" -RESTRICT="!test? ( test )" -REQUIRED_USE=" - !unsupported? ( - cxx? ( !mpi ) mpi? ( !cxx ) - threads? ( !cxx !mpi !fortran !hl ) - ) -" - -RDEPEND=" - mpi? ( virtual/mpi[romio] ) - szip? ( virtual/szip ) - zlib? ( sys-libs/zlib:= ) -" -DEPEND="${RDEPEND}" - -PATCHES=( - "${FILESDIR}"/hdf5-1.14.4-0001-Make-sure-that-during-runtime-we-ll-use-the-same-lib.patch - "${FILESDIR}"/hdf5-1.14.4-0002-Disable-forced-stripping.patch - "${FILESDIR}"/hdf5-1.14.4-0003-Drop-broken-Werror-stripping.patch -) - -pkg_setup() { - # Workaround for bug 285148 - tc-export CXX CC AR - - use fortran && fortran-2_pkg_setup - - if use mpi; then - if has_version 'sci-libs/hdf5[-mpi]'; then - ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail." - ewarn "Try to uninstall the current hdf5 prior to enabling mpi support." - fi - - export CC=mpicc - use fortran && export FC=mpif90 - elif has_version 'sci-libs/hdf5[mpi]'; then - ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail." - ewarn "Try to uninstall the current hdf5 prior to disabling mpi support." - fi -} - -src_prepare() { - default - - sed \ - -e '/docdir/d' \ - -i config/commence.am || die - - if ! use examples; then - # bug #409091 - sed -e '/^install:/ s/install-examples//' \ - -i Makefile.am || die - fi - - # Enable shared libs by default for h5cc config utility - sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" bin/h5cc.in || die - hprefixify m4/libtool.m4 - - eautoreconf -} - -src_configure() { - # bug #686620 - use sparc && tc-is-gcc && append-flags -fno-tree-ccp - - local myeconfargs=( - --disable-static - --disable-doxygen-errors - --enable-deprecated-symbols - --enable-build-mode=$(usex debug debug production) - --with-default-plugindir="${EPREFIX}/usr/$(get_libdir)/${PN}/plugin" - --with-examplesdir="\${datarootdir}/doc/${PF}/examples" \ - $(use_enable cxx) - $(use_enable fortran) - $(use_enable hl) - $(use_enable mpi parallel) - $(use_enable test tests) - $(use_enable threads threadsafe) - $(use_enable unsupported) - $(use_with szip szlib) - $(use_with threads pthread) - $(use_with zlib) - ) - - econf "${myeconfargs[@]}" -} - -src_install() { - emake DESTDIR="${D}" EPREFIX="${EPREFIX}" install - - # No static archives - find "${ED}" -name '*.la' -delete || die -}
