homebrew-core/Formula/valgrind.rb

34 lines
744 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
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
2011-03-21 21:24:22 +00:00
skip_clean 'lib'
def install
2010-08-24 17:28:40 +00:00
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