homebrew-core/Formula/gmp.rb

24 lines
514 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.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'
2009-12-03 06:40:08 +00:00
def install
if build.build_32_bit?
ENV.m32
ENV.append 'ABI', '32'
2009-12-03 06:40:08 +00:00
end
2013-03-06 17:30:08 +00:00
system "./configure", "--prefix=#{prefix}", "--enable-cxx"
2009-12-03 06:40:08 +00:00
system "make"
system "make check"
ENV.deparallelize
system "make install"
end
end