summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-07-10 13:24:19 +0200
committerMichał Górny <mgorny@gentoo.org>2024-07-10 14:45:28 +0200
commit571bd307d24fd48e5fb4731a4b5ac09db45af672 (patch)
tree8891d77b2c0cf9d55a5c4b6ba3a186117d697c49 /dev-python/netcdf4
parentdev-python/netcdf4: Remove old (diff)
downloadgentoo-571bd307d24fd48e5fb4731a4b5ac09db45af672.tar.gz
gentoo-571bd307d24fd48e5fb4731a4b5ac09db45af672.tar.bz2
gentoo-571bd307d24fd48e5fb4731a4b5ac09db45af672.zip
dev-python/netcdf4: Add transitive USE flags on netcdf
The Python package automatically uses various options compiled into sci-libs/netcdf (via #ifdefs). Add appropriate USE flags to control the dependencies and rebuild the package. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/netcdf4')
-rw-r--r--dev-python/netcdf4/metadata.xml5
-rw-r--r--dev-python/netcdf4/netcdf4-1.7.1-r1.ebuild (renamed from dev-python/netcdf4/netcdf4-1.7.1.ebuild)5
2 files changed, 7 insertions, 3 deletions
diff --git a/dev-python/netcdf4/metadata.xml b/dev-python/netcdf4/metadata.xml
index 7ae0208c4dbb..0c5cd3f8533e 100644
--- a/dev-python/netcdf4/metadata.xml
+++ b/dev-python/netcdf4/metadata.xml
@@ -20,4 +20,9 @@
<remote-id type="github">unidata/netcdf4-python</remote-id>
<remote-id type="pypi">netCDF4</remote-id>
</upstream>
+ <use>
+ <flag name="blosc">
+ Allow using blosc compression via <pkg>dev-libs/c-blosc</pkg>
+ </flag>
+ </use>
</pkgmetadata>
diff --git a/dev-python/netcdf4/netcdf4-1.7.1.ebuild b/dev-python/netcdf4/netcdf4-1.7.1-r1.ebuild
index 655ef46867fd..8ce5240cd335 100644
--- a/dev-python/netcdf4/netcdf4-1.7.1.ebuild
+++ b/dev-python/netcdf4/netcdf4-1.7.1-r1.ebuild
@@ -20,13 +20,13 @@ HOMEPAGE="
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="test"
+IUSE="blosc bzip2 mpi test szip zstd"
RESTRICT="!test? ( test )"
DEPEND="
dev-python/numpy[${PYTHON_USEDEP}]
sci-libs/hdf5:=
- sci-libs/netcdf:=[hdf5]
+ sci-libs/netcdf:=[blosc(-)=,bzip2(-)=,hdf5,mpi=,szip=,zstd(-)=]
"
RDEPEND="
${DEPEND}
@@ -50,6 +50,5 @@ python_test() {
pkg_postinst() {
optfeature "HDF4 support" sci-libs/hdf "sci-libs/netcdf[hdf]"
- optfeature "MPI parallel IO support" "sci-libs/hdf5[mpi]" "sci-libs/netcdf[mpi]"
optfeature "OPeNDAP support" net-misc/curl "sci-libs/netcdf[dap]"
}