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>
This commit is contained in:
Sam James
2023-03-05 04:11:45 +00:00
parent 753aa360d4
commit a3cb5196b2
2 changed files with 71 additions and 0 deletions
+1
View File
@@ -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
+70
View File
@@ -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
}