2014-05-28 15:13:43 +00:00
|
|
|
require "formula"
|
2009-12-27 11:30:02 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mpfr < Formula
|
2014-05-28 15:13:43 +00:00
|
|
|
homepage "http://www.mpfr.org/"
|
2013-01-07 04:51:47 +00:00
|
|
|
# Upstream is down a lot, so use the GNU mirror + Gist for patches
|
2014-05-28 15:13:43 +00:00
|
|
|
url "http://ftpmirror.gnu.org/mpfr/mpfr-3.1.2.tar.bz2"
|
|
|
|
mirror "http://ftp.gnu.org/gnu/mpfr/mpfr-3.1.2.tar.bz2"
|
|
|
|
sha1 "46d5a11a59a4e31f74f73dd70c5d57a59de2d0b4"
|
2014-10-05 23:04:27 +00:00
|
|
|
version "3.1.2-p10"
|
2013-03-25 23:27:09 +00:00
|
|
|
|
2013-04-15 10:35:17 +00:00
|
|
|
bottle do
|
2014-10-05 23:15:34 +00:00
|
|
|
cellar :any
|
2014-10-21 20:14:12 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "7950d0c8f2e68673099516b7c2026055e75d1f9d" => :yosemite
|
|
|
|
sha1 "6e63f815013d281187fd6017aeb8ee9f24ca9ad2" => :mavericks
|
|
|
|
sha1 "40956fd01c8882333cdaf447eb637480ac8520e8" => :mountain_lion
|
2013-04-15 10:35:17 +00:00
|
|
|
end
|
|
|
|
|
2014-05-28 15:13:43 +00:00
|
|
|
# http://www.mpfr.org/mpfr-current/allpatches
|
|
|
|
patch do
|
2014-10-05 23:04:27 +00:00
|
|
|
url "https://gist.githubusercontent.com/jacknagel/7f276cd60149a1ffc9a7/raw/39116c674a8c340fef880a393d7c7bdc6d73c59e/mpfr-3.1.2-p10.diff"
|
|
|
|
sha1 "c101708c6f7d86a3f7309c2e046d907ac36d6aa4"
|
2014-05-28 15:13:43 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
depends_on "gmp"
|
2009-12-27 11:30:02 +00:00
|
|
|
|
2014-05-28 15:13:43 +00:00
|
|
|
option "32-bit"
|
2011-03-06 12:04:36 +00:00
|
|
|
|
2013-04-01 00:51:29 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 421
|
|
|
|
cause <<-EOS.undent
|
|
|
|
clang build 421 segfaults while building in superenv;
|
2013-12-14 18:13:11 +00:00
|
|
|
see https://github.com/Homebrew/homebrew/issues/15061
|
2013-04-01 00:51:29 +00:00
|
|
|
EOS
|
|
|
|
end
|
2012-10-05 14:49:57 +00:00
|
|
|
|
2009-12-27 11:30:02 +00:00
|
|
|
def install
|
2014-05-22 14:18:34 +00:00
|
|
|
ENV.m32 if build.build_32_bit?
|
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
2012-05-08 03:19:44 +00:00
|
|
|
system "make"
|
|
|
|
system "make check"
|
2009-12-27 11:30:02 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|