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/'
|
2013-11-15 02:56:37 +00:00
|
|
|
url 'https://bitbucket.org/purelang/pure-lang/downloads/pure-0.58.tar.gz'
|
|
|
|
sha1 '9ec99ed3a8166659153e25efcbfc14a227d9ad95'
|
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
|
2013-11-15 02:56:37 +00:00
|
|
|
url 'https://bitbucket.org/purelang/pure-lang/downloads/pure-docs-0.58.tar.gz'
|
|
|
|
sha1 'f67a2e4723d7bbd92818e75f675e8057a02f3a00'
|
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
|