From 6bf984d0d57de0193e702184b09be1cdd16aa23c Mon Sep 17 00:00:00 2001 From: Alexander Puck Neuwirth Date: Mon, 5 May 2025 10:56:18 +0200 Subject: [PATCH] sci-physics/pythia: add python optfeatures Signed-off-by: Alexander Puck Neuwirth Part-of: https://github.com/gentoo/gentoo/pull/41939 Closes: https://github.com/gentoo/gentoo/pull/41939 Signed-off-by: Nowa Ammerlaan --- 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 def740a93eae7..e18740843e100 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 def740a93eae7..e18740843e100 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 +}