diff options
author | Virgil Dupras <vdupras@gentoo.org> | 2018-07-18 09:05:47 -0400 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2018-07-24 01:23:37 +0300 |
commit | 5721aab07bc4778c8667ca9ff8a330eae5d41b2c (patch) | |
tree | e4427ec9bea9e238dc5241738aaaa6bc2cc7edaa /net-libs | |
parent | net-libs/webkit-gtk: bump to 2.20.3 (diff) | |
download | gentoo-5721aab07bc4778c8667ca9ff8a330eae5d41b2c.tar.gz gentoo-5721aab07bc4778c8667ca9ff8a330eae5d41b2c.tar.bz2 gentoo-5721aab07bc4778c8667ca9ff8a330eae5d41b2c.zip |
net-libs/webkit-gtk: add support for ruby25
Also, improve ruby interpreter detection logic.
Closes: https://bugs.gentoo.org/659130
Bug: https://bugs.gentoo.org/513888
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/webkit-gtk/webkit-gtk-2.20.3.ebuild | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.20.3.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.20.3.ebuild index d07aadc54b8d..5990cd0d5eaf 100644 --- a/net-libs/webkit-gtk/webkit-gtk-2.20.3.ebuild +++ b/net-libs/webkit-gtk/webkit-gtk-2.20.3.ebuild @@ -4,7 +4,7 @@ EAPI=6 CMAKE_MAKEFILE_GENERATOR="ninja" PYTHON_COMPAT=( python2_7 ) -USE_RUBY="ruby22 ruby23 ruby24" +USE_RUBY="ruby23 ruby24 ruby25" inherit check-reqs cmake-utils eutils flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs versionator virtualx @@ -188,17 +188,17 @@ src_configure() { # Multiple rendering bugs on youtube, github, etc without this, bug #547224 append-flags $(test-flags -fno-strict-aliasing) + # Ruby situation is a bit complicated. See bug 513888 + local rubyimpl local ruby_interpreter="" - - if has_version "virtual/rubygems[ruby_targets_ruby24]"; then - ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby24)" - elif has_version "virtual/rubygems[ruby_targets_ruby23]"; then - ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby23)" - elif has_version "virtual/rubygems[ruby_targets_ruby22]"; then - ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby22)" - else - ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby21)" - fi + for rubyimpl in ${USE_RUBY}; do + if has_version "virtual/rubygems[ruby_targets_${rubyimpl}]"; then + ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ${rubyimpl})" + 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" # TODO: Check Web Audio support # should somehow let user select between them? |