Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/netcdf/
Date: Mon, 28 Dec 2020 16:11:05
Message-Id: 1609171847.7ad9683f97dcc07c529842bda6880b7f5587178a.soap@gentoo
1 commit: 7ad9683f97dcc07c529842bda6880b7f5587178a
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Mon Dec 28 16:10:47 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 28 16:10:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ad9683f
7
8 sci-libs/netcdf: Bump to 4.7.4
9
10 Closes: https://github.com/gentoo/gentoo/pull/18739
11 Closes: https://bugs.gentoo.org/682340
12 Closes: https://bugs.gentoo.org/711460
13 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
14 Signed-off-by: David Seifert <soap <AT> gentoo.org>
15
16 sci-libs/netcdf/Manifest | 1 +
17 sci-libs/netcdf/netcdf-4.7.4.ebuild | 65 +++++++++++++++++++++++++++++++++++++
18 2 files changed, 66 insertions(+)
19
20 diff --git a/sci-libs/netcdf/Manifest b/sci-libs/netcdf/Manifest
21 index 5271389b4f2..f0ad551c5b0 100644
22 --- a/sci-libs/netcdf/Manifest
23 +++ b/sci-libs/netcdf/Manifest
24 @@ -1,2 +1,3 @@
25 DIST netcdf-4.3.2.tar.gz 5013938 BLAKE2B 7acef16284bf8586750bdeb03da3e2e2a1c543b80423269eb2542d179e1b52dd51e30584a13f604e75c295ae9ff993c814183fbb5a78ad1141c62f8dbdda6525 SHA512 9cb9c761bf1e17a37601c37000fdc0bb654afcf111e5ac2fb7dcf037c6aa827e66beb29d5c661edc50ea3f84849f3dee387aab9e85ef81a9b6ca3f36e45debdd
26 DIST netcdf-4.6.1.tar.gz 18201700 BLAKE2B 2dab9add736d0db3ad91fb1ccda63c200fe5a2c6e56e2dd5b76375f6535807c6f462623d1709235f03e0940b66a8c2d1c3fd896b042b8b0004c87f038852befb SHA512 e290b10e763f9f6ef56b5224f834834853de7c21347ef6a078a2e7d819757fc8069814431784d0a0387ba2ce1f01776556e3051f9465829da0ffd3849571cd61
27 +DIST netcdf-4.7.4.tar.gz 19711158 BLAKE2B b49532e6f87b458e7f5654f70ec932d6c8c81272c97ce44df3d27bb61b01d3e005f918b959ce12e42e26f7c12309ab72eeb57a35216d20ab5761837db65741a4 SHA512 15922818fdd71be285eb7dd2fc9be2594fe9af979de3ed316465636c7bbdaec65eb151ca57ef8b703e6a360cdba036b8f9bc193ddff01ff7ce4214c0a66efa79
28
29 diff --git a/sci-libs/netcdf/netcdf-4.7.4.ebuild b/sci-libs/netcdf/netcdf-4.7.4.ebuild
30 new file mode 100644
31 index 00000000000..8f99b01c1bd
32 --- /dev/null
33 +++ b/sci-libs/netcdf/netcdf-4.7.4.ebuild
34 @@ -0,0 +1,65 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit cmake
41 +
42 +DESCRIPTION="Scientific library and interface for array oriented data access"
43 +HOMEPAGE="https://www.unidata.ucar.edu/software/netcdf/"
44 +SRC_URI="https://github.com/Unidata/netcdf-c/archive/v${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="UCAR-Unidata"
47 +SLOT="0/18"
48 +KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
49 +IUSE="+dap doc examples hdf +hdf5 mpi szip test tools"
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="
53 + dap? ( net-misc/curl:0= )
54 + hdf? (
55 + sci-libs/hdf:0=
56 + sci-libs/hdf5:0=
57 + virtual/jpeg
58 + )
59 + hdf5? ( sci-libs/hdf5:0=[hl(+),mpi=,szip=,zlib] )"
60 +DEPEND="${RDEPEND}"
61 +BDEPEND="
62 + doc? ( app-doc/doxygen[dot] )
63 + virtual/pkgconfig"
64 +
65 +REQUIRED_USE="
66 + test? ( tools )
67 + szip? ( hdf5 )
68 + mpi? ( hdf5 )"
69 +
70 +S="${WORKDIR}/${PN}-c-${PV}"
71 +
72 +src_prepare() {
73 + # skip test that requires network
74 + sed -i -e '/run_get_hdf4_files/d' hdf4_test/CMakeLists.txt || die
75 +
76 + cmake_src_prepare
77 +}
78 +
79 +src_configure() {
80 + use mpi && export CC=mpicc
81 +
82 + local mycmakeargs=(
83 + -DENABLE_DAP_REMOTE_TESTS=OFF
84 + -DBUILD_UTILITIES=$(usex tools)
85 + -DENABLE_DAP=$(usex dap)
86 + -DENABLE_DOXYGEN=$(usex doc)
87 + -DENABLE_EXAMPLES=$(usex examples)
88 + -DENABLE_HDF4=$(usex hdf)
89 + -DENABLE_NETCDF_4=$(usex hdf5)
90 + -DENABLE_TESTS=$(usex test)
91 + )
92 +
93 + cmake_src_configure
94 +}
95 +
96 +src_test() {
97 + # fails parallel tests: bug #621486
98 + cmake_src_test -j1
99 +}