commit: 905627a0d2ef61d53bc990a71831e3438a69496e
Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT>
de>
AuthorDate: Tue Sep 24 10:04:10 2024 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Wed Sep 25 10:22:33 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=905627a0
sci-physics/lhapdf: Only install cython with python
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
.../{lhapdf-9999.ebuild => lhapdf-6.5.4-r2.ebuild} | 19 +++++++++++++------
sci-physics/lhapdf/lhapdf-9999.ebuild | 8 +++++---
2 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/sci-physics/lhapdf/lhapdf-9999.ebuild
b/sci-physics/lhapdf/lhapdf-6.5.4-r2.ebuild
similarity index 81%
copy from sci-physics/lhapdf/lhapdf-9999.ebuild
copy to sci-physics/lhapdf/lhapdf-6.5.4-r2.ebuild
index 492a8fed8602..fe5288384d06 100644
--- a/sci-physics/lhapdf/lhapdf-9999.ebuild
+++ b/sci-physics/lhapdf/lhapdf-6.5.4-r2.ebuild
@@ -26,7 +26,7 @@ if [[ ${PV} == 9999 ]]; then
else
SRC_URI="https://www.hepforge.org/downloads/lhapdf/${MY_PF}.tar.gz ->
${P}.tar.gz"
S="${WORKDIR}/${MY_PF}"
- KEYWORDS="amd64"
+ KEYWORDS="~amd64"
fi
LICENSE="GPL-2"
@@ -37,23 +37,30 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RDEPEND="python? ( ${PYTHON_DEPS} )"
DEPEND="${RDEPEND}"
BDEPEND="
- $(python_gen_cond_dep '
- >=dev-python/cython-0.19[${PYTHON_USEDEP}]
- ')
+ python? (
+ $(python_gen_cond_dep '
+ >=dev-python/cython-0.19[${PYTHON_USEDEP}]
+ ')
+ )
"
+PATCHES=(
+ "${FILESDIR}"/${PN}-6.5.4-include-cstdint.patch
+)
+
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_prepare() {
default
- # live git does not have a configure script
+ # Let cython reproduce this for more recent python versions
+ rm wrappers/python/lhapdf.cpp || die
eautoreconf
}
src_configure() {
- CONFIG_SHELL="${EPREFIX}/bin/bash" \
+ local -x CONFIG_SHELL="${EPREFIX}/bin/bash"
econf \
--disable-static \
$(use_enable python)
diff --git a/sci-physics/lhapdf/lhapdf-9999.ebuild
b/sci-physics/lhapdf/lhapdf-9999.ebuild
index 492a8fed8602..fc2455e2129f 100644
--- a/sci-physics/lhapdf/lhapdf-9999.ebuild
+++ b/sci-physics/lhapdf/lhapdf-9999.ebuild
@@ -37,9 +37,11 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RDEPEND="python? ( ${PYTHON_DEPS} )"
DEPEND="${RDEPEND}"
BDEPEND="
- $(python_gen_cond_dep '
- >=dev-python/cython-0.19[${PYTHON_USEDEP}]
- ')
+ python? (
+ $(python_gen_cond_dep '
+ >=dev-python/cython-0.19[${PYTHON_USEDEP}]
+ ')
+ )
"
pkg_setup() {