1 |
commit: 0358fbe1292017b8238b84c7e86443abbc953d7c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 1 07:37:28 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 1 08:32:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0358fbe1 |
7 |
|
8 |
dev-python/netcdf4-python: Bump to 1.5.8 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/netcdf4-python/Manifest | 1 + |
13 |
.../netcdf4-python/netcdf4-python-1.5.8.ebuild | 47 ++++++++++++++++++++++ |
14 |
2 files changed, 48 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/netcdf4-python/Manifest b/dev-python/netcdf4-python/Manifest |
17 |
index 3efe5bccc57..112860734c2 100644 |
18 |
--- a/dev-python/netcdf4-python/Manifest |
19 |
+++ b/dev-python/netcdf4-python/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST netCDF4-1.5.7.tar.gz 763928 BLAKE2B e8e1c689747aa2697beeadf1c5164f1530fe76e0fb0d7affb94b506d1632c5242a406cdee72a2a683b75beda649f516ca06f5fd8fcddf5c567327d2420443721 SHA512 dfcc900e4d72f7b0c5c6a7fdaaab221735977306e86856e6d712e8a3c36ff22bd6210cbfb9819b9a26fde647c00aed5fcffe430459f9f2d5208a2cf8865ca853 |
22 |
+DIST netCDF4-1.5.8.tar.gz 767013 BLAKE2B 26e30b9ef74b6d1af07fadc5a0c93c1370c9e684b69345e18801c00691362766bce393b7fc8c0ccd4cd4b8e7ac448f3c69a1769e056c780c668c441cf0418b94 SHA512 b43e10356a60ecdd1aaa7585648242e9d610e042da8fd97f374617d7813cc9f35b4133a88ac4c10e921df12d5b2f2b1668af4fb69578b57b7c3d57a731579260 |
23 |
|
24 |
diff --git a/dev-python/netcdf4-python/netcdf4-python-1.5.8.ebuild b/dev-python/netcdf4-python/netcdf4-python-1.5.8.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..a818d058a96 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/netcdf4-python/netcdf4-python-1.5.8.ebuild |
29 |
@@ -0,0 +1,47 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+inherit distutils-r1 optfeature |
37 |
+ |
38 |
+MY_PN="netCDF4" |
39 |
+MY_P="${MY_PN}-${PV}" |
40 |
+ |
41 |
+DESCRIPTION="Python/numpy interface to the netCDF C library" |
42 |
+HOMEPAGE="https://unidata.github.io/netcdf4-python/" |
43 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
44 |
+S="${WORKDIR}"/${MY_P} |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
49 |
+IUSE="test" |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+DEPEND=" |
53 |
+ sci-libs/hdf5 |
54 |
+ sci-libs/netcdf:=[hdf5]" |
55 |
+RDEPEND="${DEPEND} |
56 |
+ dev-python/cftime[${PYTHON_USEDEP}] |
57 |
+ dev-python/numpy[${PYTHON_USEDEP}]" |
58 |
+BDEPEND=" |
59 |
+ test? ( |
60 |
+ sci-libs/hdf5 |
61 |
+ sci-libs/netcdf[hdf5,tools] |
62 |
+ dev-python/cftime[${PYTHON_USEDEP}] |
63 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
64 |
+ )" |
65 |
+ |
66 |
+python_test() { |
67 |
+ local -x NO_NET=1 |
68 |
+ cd test || die |
69 |
+ "${EPYTHON}" run_all.py || die |
70 |
+} |
71 |
+ |
72 |
+pkg_postinst() { |
73 |
+ optfeature "HDF4 support" sci-libs/hdf "sci-libs/netcdf[hdf]" |
74 |
+ optfeature "MPI parallel IO support" "sci-libs/hdf5[mpi]" "sci-libs/netcdf[mpi]" |
75 |
+ optfeature "OPeNDAP support" net-misc/curl "sci-libs/netcdf[dap]" |
76 |
+} |