parent
2377ec13b3
commit
049989af0a
1 changed files with 18 additions and 13 deletions
|
@ -1,9 +1,9 @@
|
|||
require 'formula'
|
||||
require "formula"
|
||||
|
||||
class Pure < Formula
|
||||
homepage 'http://purelang.bitbucket.org/'
|
||||
url 'https://bitbucket.org/purelang/pure-lang/downloads/pure-0.60.tar.gz'
|
||||
sha1 'ef930868e8ba2b8e1a65c782d8b04828c3d0d255'
|
||||
homepage "http://purelang.bitbucket.org/"
|
||||
url "https://bitbucket.org/purelang/pure-lang/downloads/pure-0.64.tar.gz"
|
||||
sha1 "738d25de30a20bbdd0722aeb923d6be9051b730f"
|
||||
|
||||
bottle do
|
||||
sha1 "75cfcd8adf10e49d2d1d8277c74ec2151b2047a5" => :mavericks
|
||||
|
@ -11,24 +11,29 @@ class Pure < Formula
|
|||
sha1 "f8fd5804cdf52cb45321fedeb5d4ba42a219a08d" => :lion
|
||||
end
|
||||
|
||||
depends_on 'llvm'
|
||||
depends_on 'gmp'
|
||||
depends_on 'readline'
|
||||
depends_on 'mpfr'
|
||||
needs :cxx11
|
||||
|
||||
resource 'docs' do
|
||||
url 'https://bitbucket.org/purelang/pure-lang/downloads/pure-docs-0.60.tar.gz'
|
||||
sha1 '6a5644bc674db8a481c7db5181cf44d6be590645'
|
||||
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.64.tar.gz"
|
||||
sha1 "a7cea453195046621497be5ea1d33dce3cb677cc"
|
||||
end
|
||||
|
||||
def install
|
||||
ENV.cxx11
|
||||
|
||||
system "./configure", "--disable-debug",
|
||||
"--prefix=#{prefix}",
|
||||
"--enable-release",
|
||||
"--without-elisp"
|
||||
|
||||
system "make"
|
||||
system "make install"
|
||||
resource('docs').stage { system "make", "prefix=#{prefix}", "install" }
|
||||
system "make", "install"
|
||||
resource("docs").stage { system "make", "prefix=#{prefix}", "install" }
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue