aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorZhitong He2012-01-12 01:38:23 +0800
committerAdam Vandenberg2012-03-15 21:11:29 -0700
commit2f5248f36f6ff292e3e68c09c96693b226ac3ccd (patch)
tree8f5d694fe0b6b3912bab196914a94dccaeba8654 /Library/Formula
parent4dd562e8933b9ef6d1ccce8da26b8392c5a4b6d9 (diff)
downloadhomebrew-2f5248f36f6ff292e3e68c09c96693b226ac3ccd.tar.bz2
nu 2.0.1
Closes #9539. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/nu.rb18
1 files changed, 16 insertions, 2 deletions
diff --git a/Library/Formula/nu.rb b/Library/Formula/nu.rb
index 6f048ab7b..a6113fae1 100644
--- a/Library/Formula/nu.rb
+++ b/Library/Formula/nu.rb
@@ -1,13 +1,27 @@
require 'formula'
+class NeedsLion < Requirement
+ def satisfied?
+ MacOS.lion?
+ end
+ def message
+ "Nu requires Mac OS X 10.7 or newer"
+ end
+ def fatal?
+ true
+ end
+end
+
class Nu < Formula
- url 'http://programming.nu/releases/Nu-0.4.0.tgz'
homepage 'http://programming.nu'
- md5 '94d181e94cd661569103290183e89477'
+ url 'http://programming.nu/releases/Nu-2.0.1.tgz'
+ md5 '8ceee36a3e89cab8d00f543fb61f7ffb'
+ depends_on NeedsLion.new
depends_on 'pcre'
def install
+
ENV['PREFIX'] = prefix
inreplace "Makefile" do |s|