diff options
| -rw-r--r-- | Library/Formula/mu.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Library/Formula/mu.rb b/Library/Formula/mu.rb index de0611cac..4c4dda530 100644 --- a/Library/Formula/mu.rb +++ b/Library/Formula/mu.rb @@ -1,6 +1,14 @@ require 'formula' class Emacs23Installed < Requirement + fatal true + env :userpaths + + def satisfied? + `emacs --version 2>/dev/null` =~ /^GNU Emacs (\d{2})/ + $1.to_i >= 23 + end + def message; <<-EOS.undent Emacs 23 or greater is required to build this software. @@ -11,13 +19,6 @@ class Emacs23Installed < Requirement that provides version 23 or greater. EOS end - def satisfied? - `emacs --version 2>/dev/null` =~ /^GNU Emacs (\d{2})/ - $1.to_i >= 23 - end - def fatal? - true - end end class Mu < Formula |
