From 8e459ce00d8e5e3032ced260d8fbbc9b1dbc2c7a Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 4 Sep 2020 01:34:48 +0100 Subject: [PATCH] fix(requirements): make script compatible with Ruby 2.3.0 and later --- README.md | 6 ++++++ build-emacs-for-macos | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a8c19e1..6c079f1 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,12 @@ The build produced does have some limitations: ``` brew bundle ``` +- Ruby 2.3.0 or later is needed to execute the build script itself. macOS comes + with Ruby, check your version with `ruby --version`. If it's too old, you can + install a newer version with: + ``` + brew install ruby + ``` ## Usage diff --git a/build-emacs-for-macos b/build-emacs-for-macos index 805e274..01f29f1 100755 --- a/build-emacs-for-macos +++ b/build-emacs-for-macos @@ -172,11 +172,11 @@ class Build end def supports_native_comp? - @supports_native_comp ||= configure_help.match?(/\s+--with-nativecomp\s+/) + @supports_native_comp ||= !!configure_help.match(/\s+--with-nativecomp\s+/) end def supports_xwidgets? - @supports_xwidgets ||= configure_help.match?(/\s+--with-xwidgets\s+/) + @supports_xwidgets ||= !!configure_help.match(/\s+--with-xwidgets\s+/) end def detect_native_comp