commit: 6bf984d0d57de0193e702184b09be1cdd16aa23c Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Mon May 5 08:56:18 2025 +0000 Commit: Nowa Ammerlaan <nowa <AT> gentoo <DOT> org> CommitDate: Fri May 9 12:21:47 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bf984d0
sci-physics/pythia: add python optfeatures Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> Part-of: https://github.com/gentoo/gentoo/pull/41939 Closes: https://github.com/gentoo/gentoo/pull/41939 Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org> sci-physics/pythia/pythia-8.3.14.ebuild | 7 ++++++- sci-physics/pythia/pythia-9999.ebuild | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sci-physics/pythia/pythia-8.3.14.ebuild b/sci-physics/pythia/pythia-8.3.14.ebuild index def740a93eae..e18740843e10 100644 --- a/sci-physics/pythia/pythia-8.3.14.ebuild +++ b/sci-physics/pythia/pythia-8.3.14.ebuild @@ -4,7 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{11..13} ) -inherit toolchain-funcs python-single-r1 +inherit toolchain-funcs python-single-r1 optfeature MV=$(ver_cut 1-2) MY_P="${PN}${PV//./}" @@ -212,3 +212,8 @@ src_install() { # cleanup unset PYTHIADIR EPYTHIADIR } + +pkg_postinstall() { + optfeature "python interface awkward array support" dev-python/awkward + optfeature "python interface vector support" dev-python/vector +} diff --git a/sci-physics/pythia/pythia-9999.ebuild b/sci-physics/pythia/pythia-9999.ebuild index def740a93eae..e18740843e10 100644 --- a/sci-physics/pythia/pythia-9999.ebuild +++ b/sci-physics/pythia/pythia-9999.ebuild @@ -4,7 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{11..13} ) -inherit toolchain-funcs python-single-r1 +inherit toolchain-funcs python-single-r1 optfeature MV=$(ver_cut 1-2) MY_P="${PN}${PV//./}" @@ -212,3 +212,8 @@ src_install() { # cleanup unset PYTHIADIR EPYTHIADIR } + +pkg_postinstall() { + optfeature "python interface awkward array support" dev-python/awkward + optfeature "python interface vector support" dev-python/vector +}
