commit: cbf63d4ff309ea168dc40e7886f535cbd11c1bfa
Author: Peter Levine <plevine457 <AT> gmail <DOT> com>
AuthorDate: Sun Mar 28 00:19:01 2021 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat May 29 14:43:22 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbf63d4f
dev-libs/ocl-icd: Fix ruby BDEP selection
The Makefile sets RUBY=ruby. The active ruby interpreter set via
eselect may not correspond to one that satisfies ${RUBY_DEPS}. Test
for the existence of a versioned ruby from among USE_RUBY, moving from
right to left, and pass it to emake.
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Peter Levine <plevine457 <AT> gmail.com>
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
dev-libs/ocl-icd/ocl-icd-2.2.14-r1.ebuild | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/dev-libs/ocl-icd/ocl-icd-2.2.14-r1.ebuild
b/dev-libs/ocl-icd/ocl-icd-2.2.14-r1.ebuild
index 94aa219cb56..2fe7e214b16 100644
--- a/dev-libs/ocl-icd/ocl-icd-2.2.14-r1.ebuild
+++ b/dev-libs/ocl-icd/ocl-icd-2.2.14-r1.ebuild
@@ -36,6 +36,19 @@ multilib_src_configure() {
ECONF_SOURCE="${S}" econf --enable-pthread-once
--disable-official-khronos-headers
}
+multilib_src_compile() {
+ local candidates=(${USE_RUBY})
+ local ruby=
+ for (( idx=${#candidates[@]}-1 ; idx>=0 ; idx-- )) ; do
+ if ${candidates[idx]} --version &> /dev/null; then
+ ruby=${candidates[idx]} && break
+ fi
+ done
+ [[ -z ${ruby} ]] && die "No ruby executable found"
+
+ emake RUBY=${ruby}
+}
+
multilib_src_install() {
default