Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/netcdf4-python/
Date: Tue, 22 Jun 2021 05:54:34
Message-Id: 1624341263.3010a4184b8c2ed1c9ca3891f2ad0cf40c301446.mgorny@gentoo
1 commit: 3010a4184b8c2ed1c9ca3891f2ad0cf40c301446
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 22 05:20:30 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 22 05:54:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3010a418
7
8 dev-python/netcdf4-python: Bump to 1.5.7
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.7.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 0d2318dbcad..8ce8b514659 100644
18 --- a/dev-python/netcdf4-python/Manifest
19 +++ b/dev-python/netcdf4-python/Manifest
20 @@ -1 +1,2 @@
21 DIST netCDF4-1.5.6.tar.gz 763732 BLAKE2B 0bb08ed81206c7d14817dad0f93683b5c44678869c760467071e2a0a76be76c9d78c0f714a043d77dba9b4535a83d59d8197340c105070a4f0204900b1e50410 SHA512 cc5bdb476fa034576f8e1a19e709dba53ad2db68cd10221df2de46a47fc7e5bacfc90fe8c4458ef45b20bf24a1cf52f275b1891af5574e2a139e95cb0d793a8b
22 +DIST netCDF4-1.5.7.tar.gz 763928 BLAKE2B e8e1c689747aa2697beeadf1c5164f1530fe76e0fb0d7affb94b506d1632c5242a406cdee72a2a683b75beda649f516ca06f5fd8fcddf5c567327d2420443721 SHA512 dfcc900e4d72f7b0c5c6a7fdaaab221735977306e86856e6d712e8a3c36ff22bd6210cbfb9819b9a26fde647c00aed5fcffe430459f9f2d5208a2cf8865ca853
23
24 diff --git a/dev-python/netcdf4-python/netcdf4-python-1.5.7.ebuild b/dev-python/netcdf4-python/netcdf4-python-1.5.7.ebuild
25 new file mode 100644
26 index 00000000000..85f4164e0e4
27 --- /dev/null
28 +++ b/dev-python/netcdf4-python/netcdf4-python-1.5.7.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=7
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 +}