$OpenBSD: patch-Source_cmake_WebKitCommon_cmake,v 1.4 2018/03/19 08:13:15 ajacoutot Exp $

Index: Source/cmake/WebKitCommon.cmake
--- Source/cmake/WebKitCommon.cmake.orig
+++ Source/cmake/WebKitCommon.cmake
@@ -28,9 +28,9 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
     # We cannot check for RUBY_FOUND because it is set only when the full package is installed and
     # the only thing we need is the interpreter. Unlike Python, cmake does not provide a macro
     # for finding only the Ruby interpreter.
-    find_package(Ruby 1.9)
-    if (NOT RUBY_EXECUTABLE OR RUBY_VERSION VERSION_LESS 1.9)
-        message(FATAL_ERROR "Ruby 1.9 or higher is required.")
+    find_package(Ruby ${MODRUBY_LIBREV})
+    if (NOT RUBY_EXECUTABLE OR RUBY_VERSION VERSION_LESS ${MODRUBY_LIBREV})
+        message(FATAL_ERROR "Ruby ${MODRUBY_LIBREV} or higher is required.")
     endif ()
 
     # -----------------------------------------------------------------------------
@@ -42,7 +42,7 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
     include(CheckCXXCompilerFlag)
     include(CheckCXXSourceCompiles)
     include(CheckFunctionExists)
-    include(CheckIncludeFile)
+    include(CheckIncludeFiles)
     include(CheckSymbolExists)
     include(CheckStructHasMember)
     include(CheckTypeSize)
