Skip to content

Commit

Permalink
mu: emacs requirement needs userpaths
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Dec 26, 2012
1 parent bb03a39 commit 365dead
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions 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.
Expand All @@ -11,13 +19,6 @@ def message; <<-EOS.undent
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
Expand Down

0 comments on commit 365dead

Please sign in to comment.