diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-02 14:14:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-02 14:14:14 +0100 |
commit | 29e3ef4590d6bee24c4a3798d12a3cfef750bd54 (patch) | |
tree | 69809f1aec2e43091c328b92a308318c4c3affab /sci-libs | |
parent | 77ebfe74c4b5125f8717ec29632589942911c594 (diff) |
gentoo auto-resync : 02:04:2024 - 14:14:14
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/Manifest.gz | bin | 45154 -> 45155 bytes | |||
-rw-r--r-- | sci-libs/netcdf/Manifest | 3 | ||||
-rw-r--r-- | sci-libs/netcdf/metadata.xml | 3 | ||||
-rw-r--r-- | sci-libs/netcdf/netcdf-4.9.2-r1.ebuild | 103 |
4 files changed, 107 insertions, 2 deletions
diff --git a/sci-libs/Manifest.gz b/sci-libs/Manifest.gz Binary files differindex 972d041053fa..35a0dbd50498 100644 --- a/sci-libs/Manifest.gz +++ b/sci-libs/Manifest.gz diff --git a/sci-libs/netcdf/Manifest b/sci-libs/netcdf/Manifest index 6a21a25f45bb..2af3e697f10c 100644 --- a/sci-libs/netcdf/Manifest +++ b/sci-libs/netcdf/Manifest @@ -1,4 +1,5 @@ AUX netcdf-4.7.4-big-endian-test.patch 689 BLAKE2B ab28269ee5922816e7ef7834dddec974c98951a41c0025041f9ee67d92c7bfe57887f5ac8d8beb2426e2c095fc06cf4b29046a9b29873b125d681b169c9613b6 SHA512 72575f890615a05a6f1beeebfd3edcd367fe148be017a32847b0a7db96c594e6bb5d01acd865257b25410e0a22699b1beef2c54748ccb09ea5e41009f4e0f9ee DIST netcdf-c-4.9.2.tar.gz 7142536 BLAKE2B b24135070d2f1f0b53fe738f8839039547eceba16d36905bb8cd7be983ce0c1127b7b01ae37dbde50087aa82fd56f00fab9bfa75c7d94fd4478031bb8a6da247 SHA512 7a96bcf673d5a9e1537d660aaf085a1dfaefc7dfb0fc96358462d92e7bbfe541184583681797e6a54d11b8588504b7d8a9b0b9bd850eecd02ed73aa2eb5ffa0d +EBUILD netcdf-4.9.2-r1.ebuild 2573 BLAKE2B f28fd58e2482bf1391bf235c2219d4260b28094418fa4299987cad232fffc31a8d69f8526a2c2d21bd0ff9d3b5b10174d5aad60b7d6bf4f5f874b1daf952542a SHA512 1dfb8049d5bfa04e5abca4e02b55b00bff6314e0db8150ece4a588ad330a4d5882681d1a9e59b23ed5cbc2f891bc73542172fc3b84d35af814e22f7963bef51c EBUILD netcdf-4.9.2.ebuild 1654 BLAKE2B 659bd08ff2776a86da5b6496cf9fc92e5b0bf8bd356f56dcfd6d1ea8ee5b6bf8bd2c51c19ccd035415b43c29bd5ddd3a41a5602a920252347e6abc1b196166b5 SHA512 a4ed28c724d7b6242fb2a48ebc667a5a4fc8ce57bf38ace9986a73fb9e32d5ba30c61f0bf66eca47cc839d2ed25af5b2d11553a47648f56d5d87ee43da90499d -MISC metadata.xml 990 BLAKE2B 17406dcf87f633cd22c32a239799a5e3bb2e89d3d7669cc1d066c137ea06a3bc2f07478d434ad0776a6843339f181623dd2e9a8cbf9d24d325e4d9d7ec66fe6f SHA512 209a76790a7ad18447cb27d880e0d741763415567ce43c05ee6551544a673a86c9e8d7ed337f08f153681b23827958b1ada462524d0c66279ad1ef55f26310ba +MISC metadata.xml 1131 BLAKE2B 2578a44e7142d8d072820f31db58de4e5550e4e9d1b3fb7d420f7d41d810580b98757d7fead672e28ea615820fa3e7f27738fe6a04c4201250596f8b37533271 SHA512 77b14836750cc93bbc38613c00ef125ebc89705bcc29b68823675662fdaeb1ddb43d6c0023a71920e23e458bd10c55e89248676fa7994d6d15992c9fdc2bce38 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. </longdescription> <use> + <flag name="blosc">Allow using blosc compression via <pkg>dev-libs/c-blosc</pkg></flag> <flag name="dap">Support for remote data access with the built-in OPeNDAP client</flag> - <flag name="hdf">Add support for the Hierarchical Data Format v.4 <pkg>sci-libs/hdf</pkg></flag> + <flag name="hdf">Build with HDF4 read capability(<pkg>sci-libs/hdf</pkg>, <pkg>sci-libs/hdf5</pkg> and <pkg>sys-libs/zlib</pkg> required).</flag> </use> <upstream> <remote-id type="github">Unidata/netcdf-c</remote-id> 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 +} |