33 lines
783 B
Ruby
33 lines
783 B
Ruby
require 'formula'
|
|
|
|
class Gmp < Formula
|
|
homepage 'http://gmplib.org/'
|
|
url 'ftp://ftp.gmplib.org/pub/gmp/gmp-5.1.3.tar.bz2'
|
|
mirror 'http://ftp.gnu.org/gnu/gmp/gmp-5.1.3.tar.bz2'
|
|
sha1 'b35928e2927b272711fdfbf71b7cfd5f86a6b165'
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 'ce121187fc35199c2657c126e079c273dee5865a' => :mountain_lion
|
|
sha1 '766fa63518250395e686b581af1f2f00892b1519' => :lion
|
|
end
|
|
|
|
option '32-bit'
|
|
|
|
def install
|
|
args = ["--prefix=#{prefix}", "--enable-cxx"]
|
|
|
|
if build.build_32_bit?
|
|
ENV.m32
|
|
ENV.append 'ABI', '32'
|
|
# https://github.com/mxcl/homebrew/issues/20693
|
|
args << "--disable-assembly"
|
|
end
|
|
|
|
system "./configure", *args
|
|
system "make"
|
|
system "make check"
|
|
ENV.deparallelize
|
|
system "make install"
|
|
end
|
|
end
|