2010-05-16 17:15:29 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pure < Formula
|
2013-06-02 03:58:14 +00:00
|
|
|
homepage 'http://purelang.bitbucket.org/'
|
2014-05-05 02:48:54 +00:00
|
|
|
url 'https://bitbucket.org/purelang/pure-lang/downloads/pure-0.60.tar.gz'
|
|
|
|
sha1 'ef930868e8ba2b8e1a65c782d8b04828c3d0d255'
|
2010-05-16 17:15:29 +00:00
|
|
|
|
2014-05-05 03:21:27 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "75cfcd8adf10e49d2d1d8277c74ec2151b2047a5" => :mavericks
|
|
|
|
sha1 "017dedafd0e79bd7ae0e782adf8fdbe5a01f9456" => :mountain_lion
|
|
|
|
sha1 "f8fd5804cdf52cb45321fedeb5d4ba42a219a08d" => :lion
|
|
|
|
end
|
|
|
|
|
2010-05-16 17:15:29 +00:00
|
|
|
depends_on 'llvm'
|
|
|
|
depends_on 'gmp'
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2012-03-10 21:48:48 +00:00
|
|
|
depends_on 'mpfr'
|
2010-05-16 17:15:29 +00:00
|
|
|
|
2013-08-07 04:00:13 +00:00
|
|
|
resource 'docs' do
|
2014-05-05 02:48:54 +00:00
|
|
|
url 'https://bitbucket.org/purelang/pure-lang/downloads/pure-docs-0.60.tar.gz'
|
|
|
|
sha1 '6a5644bc674db8a481c7db5181cf44d6be590645'
|
2013-09-10 10:31:19 +00:00
|
|
|
end
|
|
|
|
|
2010-05-16 17:15:29 +00:00
|
|
|
def install
|
2010-10-22 03:50:45 +00:00
|
|
|
system "./configure", "--disable-debug",
|
2010-04-07 05:58:35 +00:00
|
|
|
"--prefix=#{prefix}",
|
2011-04-05 03:54:06 +00:00
|
|
|
"--enable-release",
|
|
|
|
"--without-elisp"
|
2010-05-16 17:15:29 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
2013-08-07 04:00:13 +00:00
|
|
|
resource('docs').stage { system "make", "prefix=#{prefix}", "install" }
|
2010-05-16 17:15:29 +00:00
|
|
|
end
|
2013-09-10 10:31:19 +00:00
|
|
|
|
2013-11-15 02:56:37 +00:00
|
|
|
test do
|
|
|
|
system "#{bin}/pure", "--version"
|
|
|
|
end
|
|
|
|
end
|