From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E03BE15802F for ; Sun, 5 Mar 2023 04:13:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0CF24E0877; Sun, 5 Mar 2023 04:13:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DF8A6E0877 for ; Sun, 5 Mar 2023 04:13:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0AC35341284 for ; Sun, 5 Mar 2023 04:13:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 96F5088F for ; Sun, 5 Mar 2023 04:13:21 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1677989505.a3cb5196b2bba5e653722ea53e4ae10c86d1fc8a.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/netcdf/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/netcdf/Manifest sci-libs/netcdf/netcdf-4.9.1.ebuild X-VCS-Directories: sci-libs/netcdf/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a3cb5196b2bba5e653722ea53e4ae10c86d1fc8a X-VCS-Branch: master Date: Sun, 5 Mar 2023 04:13:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3473a9b0-a475-481c-bcf9-0d0b7c17f5f7 X-Archives-Hash: c3281b552764d4f02df11c0915029bd2 commit: a3cb5196b2bba5e653722ea53e4ae10c86d1fc8a Author: Sam James gentoo org> AuthorDate: Sun Mar 5 04:00:56 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sun Mar 5 04:11:45 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3cb5196 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 gentoo.org> sci-libs/netcdf/Manifest | 1 + sci-libs/netcdf/netcdf-4.9.1.ebuild | 70 +++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) 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 +}