From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1407002-garchives=archives.gentoo.org@lists.gentoo.org> 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 C534A158091 for <garchives@archives.gentoo.org>; Sat, 11 Jun 2022 05:02:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56F8FE0839; Sat, 11 Jun 2022 05:02:05 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id 2F859E07B2 for <gentoo-commits@lists.gentoo.org>; Sat, 11 Jun 2022 05:02:05 +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 26C3E341873 for <gentoo-commits@lists.gentoo.org>; Sat, 11 Jun 2022 05:02:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5E68E4FB for <gentoo-commits@lists.gentoo.org>; Sat, 11 Jun 2022 05:02:02 +0000 (UTC) From: "Sam James" <sam@gentoo.org> 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" <sam@gentoo.org> Message-ID: <1654923715.05652545b9e88a7ca0dceddedeb87e3dbd01cbc7.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.0.ebuild X-VCS-Directories: sci-libs/netcdf/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 05652545b9e88a7ca0dceddedeb87e3dbd01cbc7 X-VCS-Branch: master Date: Sat, 11 Jun 2022 05:02:02 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1cd05f78-228f-4fe1-8018-f1e2fefc1d03 X-Archives-Hash: 246df23327bc7d590e3b45f19615af6a commit: 05652545b9e88a7ca0dceddedeb87e3dbd01cbc7 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Jun 11 05:01:15 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Jun 11 05:01:55 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05652545 sci-libs/netcdf: add 4.9.0 Signed-off-by: Sam James <sam <AT> gentoo.org> sci-libs/netcdf/Manifest | 1 + sci-libs/netcdf/netcdf-4.9.0.ebuild | 75 +++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/sci-libs/netcdf/Manifest b/sci-libs/netcdf/Manifest index 8232d5518f32..846d67b85759 100644 --- a/sci-libs/netcdf/Manifest +++ b/sci-libs/netcdf/Manifest @@ -1,2 +1,3 @@ DIST netcdf-4.7.4.tar.gz 19711158 BLAKE2B b49532e6f87b458e7f5654f70ec932d6c8c81272c97ce44df3d27bb61b01d3e005f918b959ce12e42e26f7c12309ab72eeb57a35216d20ab5761837db65741a4 SHA512 15922818fdd71be285eb7dd2fc9be2594fe9af979de3ed316465636c7bbdaec65eb151ca57ef8b703e6a360cdba036b8f9bc193ddff01ff7ce4214c0a66efa79 DIST netcdf-4.8.1.tar.gz 18957280 BLAKE2B 05fc6cd10cb5cbb11dc077b9a884fbc63c4cb840b241e782702da58ad9831fba065a6f1e97c2be092437735d39658482285850a00618d0582d6e4728d64c4402 SHA512 c97207867abf10d414abf34624268710f5b812c26c38f97e73afe00558b3f07917331fbc7fdb9e70b09813acf15a9a09bae2c432a3266ce10a791b9472f87a42 +DIST netcdf-4.9.0.tar.gz 19491744 BLAKE2B b669f7ccb2f7a8def9d5b944a97d101ea7b7307d6e1495a97c0966b4ac9722b404d6039dee192da759d14d52259be2ff4f49be3bfb6cbbfac48732684cbff9c3 SHA512 62cb593b99a6e9c56426175d141907572d3974de8dc39549c85337acf410539f9b7dcd9a375808e271da1d0dc93fce7586b955eddd2bb45901d9cc48a72db705 diff --git a/sci-libs/netcdf/netcdf-4.9.0.ebuild b/sci-libs/netcdf/netcdf-4.9.0.ebuild new file mode 100644 index 000000000000..8ffc629f18a2 --- /dev/null +++ b/sci-libs/netcdf/netcdf-4.9.0.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2022 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_test() { + # Fails parallel tests: bug #621486 + cmake_src_test -j1 +} + +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 +}