dev-qt/qtwebkit: works with ruby26
authorAlexey Shvetsov <alexxy@gentoo.org>
Mon, 14 Jan 2019 09:07:20 +0000 (12:07 +0300)
committerAlexey Shvetsov <alexxy@gentoo.org>
Mon, 14 Jan 2019 09:07:20 +0000 (12:07 +0300)
Closes: https://bugs.gentoo.org/674572
Package-Manager: Portage-2.3.55, Repoman-2.3.12
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
dev-qt/qtwebkit/qtwebkit-5.212.0_pre20180120.ebuild

index d520d1f87ea0c02ef9b0cdb215509ae5d832ff3f..49f0ae2bc9904d9a89f0ad085f98b06de1b285b6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -6,7 +6,7 @@ EAPI=6
 COMMIT=72cfbd7664f21fcc0e62b869a6b01bf73eb5e7da
 CMAKE_MAKEFILE_GENERATOR="ninja"
 PYTHON_COMPAT=( python2_7 )
-USE_RUBY="ruby23 ruby24 ruby25"
+USE_RUBY="ruby23 ruby24 ruby25 ruby26"
 
 inherit check-reqs cmake-utils flag-o-matic python-any-r1 qmake-utils ruby-single toolchain-funcs
 
@@ -125,7 +125,9 @@ src_configure() {
                -DENABLE_X11_TARGET=$(usex X)
        )
 
-       if has_version "virtual/rubygems[ruby_targets_ruby25]"; then
+       if has_version "virtual/rubygems[ruby_targets_ruby26]"; then
+               mycmakeargs+=( -DRUBY_EXECUTABLE=$(type -P ruby26) )
+       elif has_version "virtual/rubygems[ruby_targets_ruby25]"; then
                mycmakeargs+=( -DRUBY_EXECUTABLE=$(type -P ruby25) )
        elif has_version "virtual/rubygems[ruby_targets_ruby24]"; then
                mycmakeargs+=( -DRUBY_EXECUTABLE=$(type -P ruby24) )