commit:     571bd307d24fd48e5fb4731a4b5ac09db45af672
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 10 11:24:19 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 10 12:45:28 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=571bd307

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 <AT> gentoo.org>

 dev-python/netcdf4/metadata.xml                                      | 5 +++++
 dev-python/netcdf4/{netcdf4-1.7.1.ebuild => netcdf4-1.7.1-r1.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
similarity index 90%
rename from dev-python/netcdf4/netcdf4-1.7.1.ebuild
rename to 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]"
 }

Reply via email to