26 lines
610 B
Ruby
26 lines
610 B
Ruby
require 'formula'
|
|
|
|
class Valgrind < Formula
|
|
homepage 'http://www.valgrind.org/'
|
|
|
|
url "http://valgrind.org/downloads/valgrind-3.6.1.tar.bz2"
|
|
md5 "2c3aa122498baecc9d69194057ca88f5"
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
skip_clean 'lib'
|
|
|
|
def install
|
|
fails_with_llvm "Makes applications segfault on startup", :build => 2326
|
|
|
|
system "./autogen.sh" if File.exists? "autogen.sh"
|
|
|
|
args = ["--prefix=#{prefix}", "--mandir=#{man}"]
|
|
if MacOS.prefer_64_bit?
|
|
args << "--enable-only64bit" << "--build=amd64-darwin"
|
|
end
|
|
|
|
system "./configure", *args
|
|
system "make install"
|
|
end
|
|
end
|