aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2012-12-25 15:54:29 -0600
committerJack Nagel2012-12-26 14:37:03 -0600
commit365deadd6f32042ba709029f13fa8e2638d80e8a (patch)
treed2736b0ceaa193f0bcd1f0241d9d270ccdab1ec5
parentbb03a39ad88a367f2ad17c496038652610a8e3cc (diff)
downloadhomebrew-365deadd6f32042ba709029f13fa8e2638d80e8a.tar.bz2
mu: emacs requirement needs userpaths
-rw-r--r--Library/Formula/mu.rb15
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