homebrew-core/Formula/mpfr.rb
Jack Nagel 714b535d38 Fix error in mpfr formula and update to 3.0.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-13 20:46:30 -07:00

31 lines
625 B
Ruby

require 'formula'
class Mpfr < Formula
url 'http://www.mpfr.org/mpfr-3.0.1/mpfr-3.0.1.tar.bz2'
homepage 'http://www.mpfr.org/'
md5 'bfbecb2eacb6d48432ead5cfc3f7390a'
depends_on 'gmp'
def options
[["--32-bit", "Force 32-bit."]]
end
def patches
{:p1 => ['http://www.mpfr.org/mpfr-3.0.1/allpatches']}
end
def install
args = []
if Hardware.is_32_bit? or ARGV.include? "--32-bit"
ENV.m32
args << "--host=none-apple-darwin"
else
ENV.m64
end
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", *args
system "make install"
end
end