From 049989af0ac8e3c4c301ee33b07ed2dc0bf54150 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 17 Dec 2014 21:30:04 -0500 Subject: [PATCH] pure 0.64 Fixes Homebrew/homebrew#34648. --- Formula/pure.rb | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/Formula/pure.rb b/Formula/pure.rb index ad27e7721b..01d178282f 100644 --- a/Formula/pure.rb +++ b/Formula/pure.rb @@ -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