Closes Homebrew/homebrew#9539.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Zhitong He 2012-01-12 01:38:23 +08:00 committed by Adam Vandenberg
parent 1c2e55247c
commit ff85052ea5

View file

@ -1,13 +1,27 @@
require 'formula'
class Nu < Formula
url 'http://programming.nu/releases/Nu-0.4.0.tgz'
homepage 'http://programming.nu'
md5 '94d181e94cd661569103290183e89477'
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
homepage 'http://programming.nu'
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|