diff options
author | Sam James <sam@gentoo.org> | 2023-03-05 04:00:56 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-03-05 04:11:45 +0000 |
commit | a3cb5196b2bba5e653722ea53e4ae10c86d1fc8a (patch) | |
tree | 098d42e18e33e03493f383fe31a23117c2b683e3 /sci-libs | |
parent | dev-python/netcdf4: Bump to 1.6.3 (diff) | |
download | gentoo-a3cb5196b2bba5e653722ea53e4ae10c86d1fc8a.tar.gz gentoo-a3cb5196b2bba5e653722ea53e4ae10c86d1fc8a.tar.bz2 gentoo-a3cb5196b2bba5e653722ea53e4ae10c86d1fc8a.zip |
sci-libs/netcdf: add 4.9.1
- -fno-strict-aliasing workaround still needed for now, may not be for
next release.
- Drop -j1 workaround as parallel test fixes landed upstream.
Bug: https://bugs.gentoo.org/621486
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/netcdf/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/netcdf/netcdf-4.9.1.ebuild | 70 |
2 files changed, 71 insertions, 0 deletions
diff --git a/sci-libs/netcdf/Manifest b/sci-libs/netcdf/Manifest index 462625e792e9..d9168835e81a 100644 --- a/sci-libs/netcdf/Manifest +++ b/sci-libs/netcdf/Manifest @@ -1,2 +1,3 @@ DIST netcdf-4.8.1.tar.gz 18957280 BLAKE2B 05fc6cd10cb5cbb11dc077b9a884fbc63c4cb840b241e782702da58ad9831fba065a6f1e97c2be092437735d39658482285850a00618d0582d6e4728d64c4402 SHA512 c97207867abf10d414abf34624268710f5b812c26c38f97e73afe00558b3f07917331fbc7fdb9e70b09813acf15a9a09bae2c432a3266ce10a791b9472f87a42 DIST netcdf-4.9.0.tar.gz 19491744 BLAKE2B b669f7ccb2f7a8def9d5b944a97d101ea7b7307d6e1495a97c0966b4ac9722b404d6039dee192da759d14d52259be2ff4f49be3bfb6cbbfac48732684cbff9c3 SHA512 62cb593b99a6e9c56426175d141907572d3974de8dc39549c85337acf410539f9b7dcd9a375808e271da1d0dc93fce7586b955eddd2bb45901d9cc48a72db705 +DIST netcdf-4.9.1.tar.gz 19525310 BLAKE2B 711083c0e001ec12ec11ecc1d27b373a6e0bc4fd62a3cfe3768f607abcbd465b8485ab0b70f339964694f87f58923a34f66000043b330a6ae03504d176587ae6 SHA512 5ac41c1ce72c730db7864891aca04d9b5f3e3e5bb265801b5972ae21f0039df6b24a96c9999d35b892fb6a7347b9a313ce4fba6c05391483d642abb23a5598e0 diff --git a/sci-libs/netcdf/netcdf-4.9.1.ebuild b/sci-libs/netcdf/netcdf-4.9.1.ebuild new file mode 100644 index 000000000000..675b1dc809fc --- /dev/null +++ b/sci-libs/netcdf/netcdf-4.9.1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +DESCRIPTION="Scientific library and interface for array oriented data access" +HOMEPAGE="https://www.unidata.ucar.edu/software/netcdf/" +SRC_URI="https://github.com/Unidata/netcdf-c/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-c-${PV} + +LICENSE="UCAR-Unidata" +# SONAME of libnetcdf.so +SLOT="0/19" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 -riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="+dap doc examples hdf +hdf5 mpi szip test tools" +RESTRICT="!test? ( test )" + +RDEPEND="dev-libs/libxml2 + dap? ( net-misc/curl:= ) + hdf? ( + media-libs/libjpeg-turbo:= + sci-libs/hdf:= + sci-libs/hdf5:= + ) + hdf5? ( sci-libs/hdf5:=[hl(+),mpi=,szip=,zlib] )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig + doc? ( app-doc/doxygen[dot] )" + +REQUIRED_USE=" + test? ( tools ) + szip? ( hdf5 ) + mpi? ( hdf5 )" + +PATCHES=( + "${FILESDIR}"/${PN}-4.7.4-big-endian-test.patch +) + +src_configure() { + use mpi && export CC=mpicc + + # Temporary workaround for test breakage + # https://github.com/Unidata/netcdf-c/issues/1983 + # bug #827042 + append-flags -fno-strict-aliasing + + local mycmakeargs=( + -DENABLE_DAP_REMOTE_TESTS=OFF + #-DENABLE_HDF4_FILE_TESTS=OFF + -DENABLE_LIBXML2=ON + -DBUILD_UTILITIES=$(usex tools) + -DENABLE_DAP=$(usex dap) + -DENABLE_DOXYGEN=$(usex doc) + -DENABLE_EXAMPLES=$(usex examples) + -DENABLE_HDF4=$(usex hdf) + -DENABLE_NETCDF_4=$(usex hdf5) + -DENABLE_TESTS=$(usex test) + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + # bug #827188 + sed -i -e "s:${EPREFIX}/usr/$(get_libdir)/libdl.so;:dl;:" "${ED}/usr/$(get_libdir)/cmake/netCDF/netCDFTargets.cmake" || die +} |