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-03-04 07:43:11 +00:00
|
|
|
url 'https://bitbucket.org/purelang/pure-lang/downloads/pure-0.59.tar.gz'
|
|
|
|
sha1 '22614d77fff9937a53cf513767fdc5e8eeb4aae1'
|
2010-05-16 17:15:29 +00:00
|
|
|
|
2013-08-07 04:00:13 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
|
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-03-04 07:43:11 +00:00
|
|
|
url 'https://bitbucket.org/purelang/pure-lang/downloads/pure-docs-0.59.tar.gz'
|
|
|
|
sha1 '55794cea62dcdec093c37bbf68dba6f2dc2e9f9f'
|
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
|