From 04ac238703da84168e02b06fb131d1d17d85be23 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 29 Sep 2024 01:25:46 +0100 Subject: gentoo auto-resync : 29:09:2024 - 01:25:46 --- sci-libs/hdf5/Manifest | 2 +- sci-libs/hdf5/hdf5-1.14.4_p3-r1.ebuild | 118 ++++++++++++++++++++++++++++++++ sci-libs/hdf5/hdf5-1.14.4_p3.ebuild | 119 --------------------------------- 3 files changed, 119 insertions(+), 120 deletions(-) create mode 100644 sci-libs/hdf5/hdf5-1.14.4_p3-r1.ebuild delete mode 100644 sci-libs/hdf5/hdf5-1.14.4_p3.ebuild (limited to 'sci-libs/hdf5') diff --git a/sci-libs/hdf5/Manifest b/sci-libs/hdf5/Manifest index ed118dac609e..87bff6aaaa71 100644 --- a/sci-libs/hdf5/Manifest +++ b/sci-libs/hdf5/Manifest @@ -24,5 +24,5 @@ EBUILD hdf5-1.14.1.ebuild 3072 BLAKE2B af92b7cdb04770a1e3baee23ba173be61553bc0e1 EBUILD hdf5-1.14.2.ebuild 3189 BLAKE2B 3618adc6a5b1f4d50b670ffb109e69876252b16f8b391078c5be18ff1bb9a7973d261c26fa4a97ee57ecb0588f418064587aa2b717561fa9680e14dbf41933c5 SHA512 fcc1216f1fbafefd526b2f6dcf47dd347730ab380ce0cab22c0138e7698e232a53a570aee01eab8ef4f2e5d06439a57c31247b92fb911cd987162e883c67cb96 EBUILD hdf5-1.14.3-r1.ebuild 3174 BLAKE2B 1ba662b1e749795ec39800536bf47b656a5055ad6b75097b3d1ed76096b48ada4044c6fd13f97bf03a1441725b2eb518f47edd3c546a626b8694a713d361d672 SHA512 95d707fa162a13d12f946e9792713cd7edb3a400966d04b25f61a8ee6f2d037524602f70a5a76feb339063921f51e822e3576b6b567e6bb3107e25c031a786d8 EBUILD hdf5-1.14.4_p2.ebuild 3225 BLAKE2B 443387e78fc8b1cd3bde53c5e06f90c6fbcec70d8c879bb7163c257501160f884d393bd5aa482efd294fe1f8bb4d3b803bb19dd839d3031b09f104c2a92e71a6 SHA512 e345d650b639b7f1bc87f9b99cacdbc03d603305e81240627e3ded98ed7b39a4471d9394813ac035dab53fb109bea5dd0fe91028513b2750c6a424a542f3cd2a -EBUILD hdf5-1.14.4_p3.ebuild 3228 BLAKE2B e41a78084f9d1265764282b0e52074feedab2957054b0eced6da2e4dd463a125139482db9352a287b767cf1259b6204e5ed5c4763e202a471e14fc0f241fd001 SHA512 031cf747a4c9e3967435d3ff0a0a560f7394b40559c0e3aff10750fdc47c42647fb45fcad51764f092740bfdc13801609cb8f618c9109a94d62123549d13a63b +EBUILD hdf5-1.14.4_p3-r1.ebuild 3148 BLAKE2B 5de49d1f25011f0163f7f6713f3e5d5618542fb67f190fbd132f00cb221ffaebb9ebc341b81167e3d8e1bfd922241ce8e2fa155be836393521e8df8eb266d832 SHA512 e1cd2eef29d9821db1b6e80e6a71520fc7ddea184355677d085a8b598d10ec09c1ac783fb78252c366ec132449fef8bc5b8f847ef9f6d58aabbc615f872e372b MISC metadata.xml 826 BLAKE2B fd131bb207e4ab863ef7c05ab95e5c0254fa08230139a2508ab5f0c363809b0735532498ad26cc39621495a063de86ab5bd97447514ff561a63302e8b1d7d26d SHA512 290883ed9bf3de60bf04e2474c4db50e095b1b87974867e58601a5c5c2f98d6b839ed22d9ce2798bc44f484f1a38ee4b6df99aaea7d134629bd441d34b5a29b5 diff --git a/sci-libs/hdf5/hdf5-1.14.4_p3-r1.ebuild b/sci-libs/hdf5/hdf5-1.14.4_p3-r1.ebuild new file mode 100644 index 000000000000..87cb0f37705b --- /dev/null +++ b/sci-libs/hdf5/hdf5-1.14.4_p3-r1.ebuild @@ -0,0 +1,118 @@ +# 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://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 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_p3.ebuild b/sci-libs/hdf5/hdf5-1.14.4_p3.ebuild deleted file mode 100644 index a66e749ecc76..000000000000 --- a/sci-libs/hdf5/hdf5-1.14.4_p3.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://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" -# 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 -} -- cgit v1.2.3