aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mpfr.rb
blob: a0b8e79634ee917a6e3eed73f6248acf96865e44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'formula'

class Mpfr < Formula
  homepage 'http://www.mpfr.org/'
  # Upstream is down a lot, so use the GNU mirror + Gist for patches
  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'

  bottle do
    cellar :any
    revision 1
    sha1 '99b4ddca907f132e803e8a54a48c9e2ba993b5bb' => :mavericks
    sha1 '1763687dd580ac9bd02f31a8b259a1ad568dd3b6' => :mountain_lion
    sha1 '62c126d1d949cb4d545f44d9c45fe4b0bf276fd4' => :lion
  end

  depends_on 'gmp'

  option '32-bit'

  fails_with :clang do
    build 421
    cause <<-EOS.undent
      clang build 421 segfaults while building in superenv;
      see https://github.com/Homebrew/homebrew/issues/15061
      EOS
  end

  def install
    ENV.m32 if build.build_32_bit?
    system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
    system "make"
    system "make check"
    system "make install"
  end
end