summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/ocl-icd/ocl-icd-2.2.14-r1.ebuild13
1 files changed, 13 insertions, 0 deletions
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 94aa219cb560..2fe7e214b169 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