homebrew-core/Formula/gmp.rb

34 lines
789 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Gmp < Formula
homepage 'http://gmplib.org/'
url 'ftp://ftp.gmplib.org/pub/gmp-5.1.2/gmp-5.1.2.tar.bz2'
mirror 'http://ftp.gnu.org/gnu/gmp/gmp-5.1.2.tar.bz2'
sha1 '2cb498322b9be4713829d94dee944259c017d615'
2013-09-24 23:25:19 +00:00
bottle do
cellar :any
sha1 '65dc7505fe80c1ac3fd502a2bfdc09fcfa40a66e' => :mountain_lion
sha1 '186c0b5627fc0af1114d9bea543dc19bd657df0c' => :lion
end
option '32-bit'
2009-12-03 06:40:08 +00:00
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"
2009-12-03 06:40:08 +00:00
end
system "./configure", *args
2009-12-03 06:40:08 +00:00
system "make"
system "make check"
ENV.deparallelize
system "make install"
end
end