File webkit2gtk3-old-ruby.patch of Package webkit2gtk3.30069
diff -urp webkitgtk-2.39.90.atk/Source/cmake/WebKitCommon.cmake webkitgtk-2.39.90.ruby/Source/cmake/WebKitCommon.cmake
--- webkitgtk-2.39.90.atk/Source/cmake/WebKitCommon.cmake 2023-02-20 03:22:22.489757800 -0600
+++ webkitgtk-2.39.90.ruby/Source/cmake/WebKitCommon.cmake 2023-02-27 14:18:06.114374412 -0600
@@ -191,9 +191,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 2.5)
- if (NOT RUBY_EXECUTABLE OR RUBY_VERSION VERSION_LESS 2.5)
- message(FATAL_ERROR "Ruby 2.5 or higher is required.")
+ find_package(Ruby 2.1)
+ if (NOT RUBY_EXECUTABLE OR RUBY_VERSION VERSION_LESS 2.1)
+ message(FATAL_ERROR "Ruby 2.1 or higher is required.")
endif ()
# -----------------------------------------------------------------------------