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 DCF9D158041 for ; Tue, 2 Apr 2024 11:29:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0301EE2A9A; Tue, 2 Apr 2024 11:29:35 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 D8B1CE2A93 for ; Tue, 2 Apr 2024 11:29:34 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 28460343248 for ; Tue, 2 Apr 2024 11:29:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7C1DE135F for ; Tue, 2 Apr 2024 11:29:32 +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: <1712057203.85deb6c116f4a6bf49da243324d4cf0b60ff7b8a.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/netcdf/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/netcdf/metadata.xml sci-libs/netcdf/netcdf-4.9.2-r1.ebuild X-VCS-Directories: sci-libs/netcdf/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 85deb6c116f4a6bf49da243324d4cf0b60ff7b8a X-VCS-Branch: master Date: Tue, 2 Apr 2024 11:29:32 +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: 326a46c4-a10b-4c44-9b0a-ec659e7f5cac X-Archives-Hash: 16965c621d20e0e7115fca780b8315ed commit: 85deb6c116f4a6bf49da243324d4cf0b60ff7b8a Author: Paul Zander gmail com> AuthorDate: Sat Mar 16 18:12:53 2024 +0000 Commit: Sam James gentoo org> CommitDate: Tue Apr 2 11:26:43 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85deb6c1 sci-libs/netcdf: cmake rework, fix bug 886155 Remove cmake automagic for file filters. Make test run in parallel that failed due to mpi failures. Filter cmake targets file further. Closes: https://bugs.gentoo.org/886155 Signed-off-by: Paul Zander gmail.com> Closes: https://github.com/gentoo/gentoo/pull/35786 Signed-off-by: Sam James gentoo.org> sci-libs/netcdf/metadata.xml | 3 +- sci-libs/netcdf/netcdf-4.9.2-r1.ebuild | 103 +++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+), 1 deletion(-) diff --git a/sci-libs/netcdf/metadata.xml b/sci-libs/netcdf/metadata.xml index 710afdc8ff08..dec0009bbcb4 100644 --- a/sci-libs/netcdf/metadata.xml +++ b/sci-libs/netcdf/metadata.xml @@ -14,8 +14,9 @@ access, and sharing of scientific data. + Allow using blosc compression via dev-libs/c-blosc Support for remote data access with the built-in OPeNDAP client - Add support for the Hierarchical Data Format v.4 sci-libs/hdf + Build with HDF4 read capability(sci-libs/hdf, sci-libs/hdf5 and sys-libs/zlib required). Unidata/netcdf-c diff --git a/sci-libs/netcdf/netcdf-4.9.2-r1.ebuild b/sci-libs/netcdf/netcdf-4.9.2-r1.ebuild new file mode 100644 index 000000000000..458001188497 --- /dev/null +++ b/sci-libs/netcdf/netcdf-4.9.2-r1.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Scientific library and interface for array oriented data access" +HOMEPAGE="https://www.unidata.ucar.edu/software/netcdf/" +SRC_URI="https://downloads.unidata.ucar.edu/netcdf-c/${PV}/${PN}-c-${PV}.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="blosc bzip2 +dap doc examples hdf +hdf5 mpi szip test zstd" +RESTRICT="!test? ( test )" + +# NOTE OPTION(ENABLE_HDF4 "Build netCDF-4 with HDF4 read capability(HDF4, HDF5 and Zlib required)." OFF) +RDEPEND=" + dev-libs/libxml2:= + sys-libs/zlib:= + blosc? ( dev-libs/c-blosc:= ) + bzip2? ( app-arch/bzip2:= ) + dap? ( net-misc/curl:= ) + hdf? ( + media-libs/libjpeg-turbo:= + sci-libs/hdf:= + sci-libs/hdf5:= + ) + hdf5? ( sci-libs/hdf5:=[hl(+),mpi=,szip=,zlib] ) + zstd? ( app-arch/zstd:= ) +" + +# deflate blosc zstd bz2 +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( app-text/doxygen[dot] ) +" + +REQUIRED_USE=" + szip? ( hdf5 ) + mpi? ( hdf5 ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-4.7.4-big-endian-test.patch +) + +src_configure() { + use mpi && export CC=mpicc + + local mycmakeargs=( + -DCMAKE_POLICY_DEFAULT_CMP0153="OLD" # exec_program + + -DENABLE_DAP_REMOTE_TESTS=OFF + #-DENABLE_HDF4_FILE_TESTS=OFF + -DENABLE_LIBXML2=ON + + -DBUILD_SHARED_LIBS="yes" + -DBUILD_TESTING="$(usex test)" + -DBUILD_UTILITIES="yes" + + -DENABLE_DAP="$(usex dap)" + -DENABLE_DAP2="$(usex dap)" + -DENABLE_DAP4="$(usex dap)" + + -DENABLE_DOXYGEN="$(usex doc)" + -DENABLE_EXAMPLES="$(usex examples)" + -DENABLE_HDF4="$(usex hdf)" + -DENABLE_NETCDF_4="$(usex hdf5)" + -DENABLE_TESTS="$(usex test)" + + -DENABLE_NCZARR="yes" + # NOTE set these via MYCMAKEARGS if need be + # -DENABLE_NCZARR_FILTERS="yes" + # -DENABLE_NCZARR_FILTER_TESTING="yes" + # -DENABLE_NCZARR_ZIP="yes" + + -DCMAKE_DISABLE_FIND_PACKAGE_Blosc="$(usex !blosc)" + -DCMAKE_DISABLE_FIND_PACKAGE_Bz2="$(usex !bzip2)" + -DCMAKE_DISABLE_FIND_PACKAGE_Szip="$(usex !szip)" + -DCMAKE_DISABLE_FIND_PACKAGE_Zstd="$(usex !zstd)" + ) + + cmake_src_configure +} + +src_test() { + [[ -f "${BUILD_DIR}/nc_test4/run_par_test.sh" ]] && \ + sed -e 's/mpiexec/mpiexec --use-hwthread-cpus/g' -i "${BUILD_DIR}/nc_test4/run_par_test.sh" || die + + cmake_src_test +} + +src_install() { + cmake_src_install + + # bug #827188 + sed -i -re "s:${EPREFIX}/usr/$(get_libdir)/lib(dl|m).(so|a);:\1;:g" "${ED}/usr/$(get_libdir)/cmake/netCDF/netCDFTargets.cmake" || die +}