homebrew-core/Formula/pure.rb
howthebodyworks 7c04af5216 pure 0.59
Closes Homebrew/homebrew#27183.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-03-04 08:23:17 +00:00

34 lines
886 B
Ruby

require 'formula'
class Pure < Formula
homepage 'http://purelang.bitbucket.org/'
url 'https://bitbucket.org/purelang/pure-lang/downloads/pure-0.59.tar.gz'
sha1 '22614d77fff9937a53cf513767fdc5e8eeb4aae1'
depends_on :automake
depends_on :libtool
depends_on 'llvm'
depends_on 'gmp'
depends_on 'readline'
depends_on 'mpfr'
resource 'docs' do
url 'https://bitbucket.org/purelang/pure-lang/downloads/pure-docs-0.59.tar.gz'
sha1 '55794cea62dcdec093c37bbf68dba6f2dc2e9f9f'
end
def install
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--enable-release",
"--without-elisp"
system "make"
system "make install"
resource('docs').stage { system "make", "prefix=#{prefix}", "install" }
end
test do
system "#{bin}/pure", "--version"
end
end