From c83738e70baeab2df370c1c73b13bb8feb99eb11 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 9 Apr 2023 11:34:26 +0100 Subject: gentoo auto-resync : 09:04:2023 - 11:34:26 --- net-libs/webkit-gtk/webkit-gtk-2.40.0-r410.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'net-libs/webkit-gtk/webkit-gtk-2.40.0-r410.ebuild') diff --git a/net-libs/webkit-gtk/webkit-gtk-2.40.0-r410.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.40.0-r410.ebuild index ef3510d3d31e..80ebcb3d8538 100644 --- a/net-libs/webkit-gtk/webkit-gtk-2.40.0-r410.ebuild +++ b/net-libs/webkit-gtk/webkit-gtk-2.40.0-r410.ebuild @@ -174,14 +174,19 @@ src_configure() { # Ruby situation is a bit complicated. See bug 513888 local rubyimpl local ruby_interpreter="" + local RUBY for rubyimpl in ${USE_RUBY}; do if has_version -b "virtual/rubygems[ruby_targets_${rubyimpl}]"; then - ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ${rubyimpl})" + RUBY="$(type -P ${rubyimpl})" + ruby_interpreter="-DRUBY_EXECUTABLE=${RUBY}" fi done # This will rarely occur. Only a couple of corner cases could lead us to # that failure. See bug 513888 - [[ -z $ruby_interpreter ]] && die "No suitable ruby interpreter found" + [[ -z ${ruby_interpreter} ]] && die "No suitable ruby interpreter found" + # JavaScriptCore/Scripts/postprocess-asm invokes another Ruby script directly + # so it doesn't respect RUBY_EXECUTABLE, bug #771744. + sed -i -e "s:#!/usr/bin/env ruby:#!${RUBY}:" $(grep -rl "/usr/bin/env ruby" Source/JavaScriptCore || die) || die # TODO: Check Web Audio support # should somehow let user select between them? -- cgit v1.2.3