aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2011-04-13 22:38:02 -0500
committerAdam Vandenberg2011-04-13 20:46:30 -0700
commit83c889b63434a7c14fa4c85d1cf4f384fd9da910 (patch)
tree2ca80449f3ceb180f83c5210e259932434f3de7e /Library/Formula
parente6bac19b3aa1d607657eaf006fd47b7110cba2c2 (diff)
downloadhomebrew-83c889b63434a7c14fa4c85d1cf4f384fd9da910.tar.bz2
Fix error in mpfr formula and update to 3.0.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mpfr.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/Library/Formula/mpfr.rb b/Library/Formula/mpfr.rb
index de19c3bb2..2139e3b1b 100644
--- a/Library/Formula/mpfr.rb
+++ b/Library/Formula/mpfr.rb
@@ -1,9 +1,9 @@
require 'formula'
class Mpfr < Formula
- url 'http://www.mpfr.org/mpfr-3.0.0/mpfr-3.0.0.tar.bz2'
+ url 'http://www.mpfr.org/mpfr-3.0.1/mpfr-3.0.1.tar.bz2'
homepage 'http://www.mpfr.org/'
- md5 'f45bac3584922c8004a10060ab1a8f9f'
+ md5 'bfbecb2eacb6d48432ead5cfc3f7390a'
depends_on 'gmp'
@@ -12,10 +12,12 @@ class Mpfr < Formula
end
def patches
- {:p1 => ['http://www.mpfr.org/mpfr-3.0.0/allpatches']}
+ {: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"
@@ -23,7 +25,7 @@ class Mpfr < Formula
ENV.m64
end
- system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
+ system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", *args
system "make install"
end
end