commit: 99aac9e15f746e89cd8b17f88a9294b45401f149
Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 14 04:29:02 2024 +0000
Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Wed Aug 14 05:15:43 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99aac9e1
dev-lang/yap: do not require python_setup to run if not USE=python
We don't need to check for a python impl, since python itself is
optional. This is especially relevant given that it hasn't been migrated
to python 3.12, so by default there is no available implementation
selected, and python support is also NOT built by default, so this
change makes it build by default.
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>
dev-lang/yap/yap-7.0.1.ebuild | 4 ++++
dev-lang/yap/yap-7.1.0.ebuild | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/dev-lang/yap/yap-7.0.1.ebuild b/dev-lang/yap/yap-7.0.1.ebuild
index 1912376a3191..0960279f31d5 100644
--- a/dev-lang/yap/yap-7.0.1.ebuild
+++ b/dev-lang/yap/yap-7.0.1.ebuild
@@ -47,6 +47,10 @@ DEPEND="${RDEPEND}
java? ( dev-lang/swig )
python? ( dev-lang/swig )"
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
src_unpack() {
default
mv "${WORKDIR}"/yap-${PV_COMMIT} "${WORKDIR}"/${P} || die
diff --git a/dev-lang/yap/yap-7.1.0.ebuild b/dev-lang/yap/yap-7.1.0.ebuild
index 9d4b5db24e13..6e867c989e20 100644
--- a/dev-lang/yap/yap-7.1.0.ebuild
+++ b/dev-lang/yap/yap-7.1.0.ebuild
@@ -47,6 +47,10 @@ DEPEND="${RDEPEND}
java? ( dev-lang/swig )
python? ( >=dev-lang/swig-4.0.0 )"
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
src_unpack() {
default
mv "${WORKDIR}"/yap-${PV_COMMIT} "${WORKDIR}"/${P} || die