homebrew-core/Formula/gmp.rb
Max Howell 61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00

20 lines
506 B
Ruby

require 'formula'
class Gmp <Formula
url 'ftp://ftp.gnu.org/gnu/gmp/gmp-4.3.1.tar.bz2'
homepage 'http://gmplib.org/'
sha1 'acbd1edc61230b1457e9742136994110e4f381b2'
def install
if MACOS_VERSION == 10.6
# On OS X 10.6, some tests fail under LLVM
ENV.gcc_4_2
end
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
# Verify that the library compiled correctly.
system "make check"
end
end