public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/netcdf4/
Date: Wed, 10 Jul 2024 12:45:32 +0000 (UTC)	[thread overview]
Message-ID: <1720615528.571bd307d24fd48e5fb4731a4b5ac09db45af672.mgorny@gentoo> (raw)

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	other threads:[~2024-07-10 12:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-10 12:45 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-10  3:24 [gentoo-commits] repo/gentoo:master commit in: dev-python/netcdf4/ Michał Górny
2024-11-10  0:42 Jakov Smolić
2024-11-09 10:20 Arthur Zamarin
2024-10-23  6:16 Michał Górny
2024-10-19 19:20 Michał Górny
2024-07-27  9:28 Arthur Zamarin
2024-07-10 12:45 Michał Górny
2024-06-18 18:03 Michał Górny
2024-06-18  4:45 Michał Górny
2023-12-30 18:30 Michał Górny
2023-11-23 20:11 Michał Górny
2023-10-26  3:12 Michał Górny
2023-10-25 22:37 Marek Szuba
2023-07-24 11:32 Michał Górny
2023-06-06  5:43 Michał Górny
2023-03-15  5:48 Sam James
2023-03-05  3:56 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1720615528.571bd307d24fd48e5fb4731a4b5ac09db45af672.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox