diff options
| author | Stefan | 2013-03-01 02:26:53 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-03-03 10:14:23 +0000 |
| commit | 332d9b2e46d568f100d8b1690821aff092b3e5f6 (patch) | |
| tree | b5f95242f941f3f899711f1975fb9d84d548e2cc /Library/Formula | |
| parent | cfe799a43d41c43dfb1b74c5852e258641a0b30e (diff) | |
| download | homebrew-332d9b2e46d568f100d8b1690821aff092b3e5f6.tar.bz2 | |
gmp 5.1.1
Closes #16906.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gmp.rb | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/Library/Formula/gmp.rb b/Library/Formula/gmp.rb index ba7ee2019..50b3ab042 100644 --- a/Library/Formula/gmp.rb +++ b/Library/Formula/gmp.rb @@ -2,37 +2,22 @@ require 'formula' class Gmp < Formula homepage 'http://gmplib.org/' - url 'http://ftpmirror.gnu.org/gmp/gmp-5.0.5.tar.bz2' - mirror 'http://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.bz2' - sha256 '1f588aaccc41bb9aed946f9fe38521c26d8b290d003c5df807f65690f2aadec9' + url 'ftp://ftp.gmplib.org/pub/gmp-5.1.1/gmp-5.1.1.tar.bz2' + mirror 'http://ftp.gnu.org/gnu/gmp/gmp-5.1.1.tar.bz2' + sha1 '21d037f7fb32ae305a2e4157cff0c8caab06fe84' option '32-bit' def install - # Reports of problems using gcc 4.0 on Leopard - # https://github.com/mxcl/homebrew/issues/issue/2302 - # Also force use of 4.2 on 10.6 in case a user has changed the default - # Do not force if xcode > 4.2 since it does not have /usr/bin/gcc-4.2 as default - # FIXME convert this to appropriate fails_with annotations - ENV.gcc if MacOS::Xcode.provides_gcc? - - args = %W[--prefix=#{prefix} --enable-cxx] - - # Build 32-bit where appropriate, and help configure find 64-bit CPUs - # see: http://gmplib.org/macos.html - if MacOS.prefer_64_bit? and not build.build_32_bit? - ENV.m64 - args << "--build=x86_64-apple-darwin" - else + if build.build_32_bit? ENV.m32 - args << "--build=none-apple-darwin" + ENV.append 'ABI', '32' end - system "./configure", *args + system "./configure --prefix=#{prefix} --enable-cxx" system "make" - ENV.j1 # Doesn't install in parallel on 8-core Mac Pro - # Upstream implores users to always run the test suite system "make check" + ENV.deparallelize system "make install" end end |
