Skip to content
This repository
Browse code

gmp 5.0.5

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
commit 7c65dfe0449624388c6a6852d9c18d71f4ea0e54 1 parent 30186e0
Jack Nagel authored May 07, 2012

Showing 1 changed file with 8 additions and 11 deletions. Show diff stats Hide diff stats

  1. 19  Library/Formula/gmp.rb
19  Library/Formula/gmp.rb
@@ -2,9 +2,9 @@
2 2
 
3 3
 class Gmp < Formula
4 4
   homepage 'http://gmplib.org/'
5  
-  url 'http://ftpmirror.gnu.org/gmp/gmp-5.0.4.tar.bz2'
6  
-  mirror 'http://ftp.gnu.org/gnu/gmp/gmp-5.0.4.tar.bz2'
7  
-  sha1 'ea4ea7c3f10436ef5ae7a75b3fad163a8b86edc0'
  5
+  url 'http://ftpmirror.gnu.org/gmp/gmp-5.0.5.tar.bz2'
  6
+  mirror 'http://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.bz2'
  7
+  sha256 '1f588aaccc41bb9aed946f9fe38521c26d8b290d003c5df807f65690f2aadec9'
8 8
 
9 9
   def options
10 10
     [
@@ -18,11 +18,10 @@ def install
18 18
     # https://github.com/mxcl/homebrew/issues/issue/2302
19 19
     # Also force use of 4.2 on 10.6 in case a user has changed the default
20 20
     # Do not force if xcode > 4.2 since it does not have /usr/bin/gcc-4.2 as default
21  
-    unless MacOS.xcode_version >= "4.2"
22  
-      ENV.gcc_4_2
23  
-    end
  21
+    # FIXME convert this to appropriate fails_with annotations
  22
+    ENV.gcc unless MacOS.xcode_version.to_f >= 4.2
24 23
 
25  
-    args = ["--prefix=#{prefix}", "--enable-cxx"]
  24
+    args = %W[--prefix=#{prefix} --enable-cxx]
26 25
 
27 26
     # Build 32-bit where appropriate, and help configure find 64-bit CPUs
28 27
     # see: http://gmplib.org/macos.html
@@ -37,10 +36,8 @@ def install
37 36
     system "./configure", *args
38 37
     system "make"
39 38
     ENV.j1 # Doesn't install in parallel on 8-core Mac Pro
40  
-    system "make install"
41  
-
42  
-    # Different compilers and options can cause tests to fail even
43  
-    # if everything compiles, so yes, we want to do this step.
  39
+    # Upstream implores users to always run the test suite
44 40
     system "make check" unless ARGV.include? "--skip-check"
  41
+    system "make install"
45 42
   end
46 43
 end

0 notes on commit 7c65dfe

Please sign in to comment.
Something went wrong with that request. Please try again.