homebrew-core/Formula/valgrind.rb
Jack Nagel 30077d7883 Valgrind: fix build on 32-bit Snow Leopard
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-09 17:26:43 -06:00

33 lines
744 B
Ruby

require 'formula'
class Valgrind < Formula
homepage 'http://www.valgrind.org/'
# Valgrind 3.7.0 drops support for OS X 10.5
if MACOS_VERSION >= 10.6
url 'http://valgrind.org/downloads/valgrind-3.7.0.tar.bz2'
md5 'a855fda56edf05614f099dca316d1775'
else
url "http://valgrind.org/downloads/valgrind-3.6.1.tar.bz2"
md5 "2c3aa122498baecc9d69194057ca88f5"
end
skip_clean 'lib'
def install
args = ["--prefix=#{prefix}", "--mandir=#{man}"]
if MacOS.prefer_64_bit?
args << "--enable-only64bit" << "--build=amd64-darwin"
else
args << "--enable-only32bit"
end
system "./configure", *args
system "make"
system "make install"
end
def test
system "valgrind ls -l"
end
end