From 365deadd6f32042ba709029f13fa8e2638d80e8a Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 25 Dec 2012 15:54:29 -0600 Subject: mu: emacs requirement needs userpaths --- Library/Formula/mu.rb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3