homebrew-core/Formula/valgrind.rb

46 lines
1.1 KiB
Ruby

class Valgrind < Formula
desc "Dynamic analysis tools (memory, debug, profiling)"
homepage "https://www.valgrind.org/"
url "https://sourceware.org/pub/valgrind/valgrind-3.18.1.tar.bz2"
sha256 "00859aa13a772eddf7822225f4b46ee0d39afbe071d32778da4d99984081f7f5"
license "GPL-2.0-or-later"
livecheck do
url "https://sourceware.org/pub/valgrind/"
regex(/href=.*?valgrind[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 x86_64_linux: "298a721d4314e9c2a250e9296c88cd81e4ba0e4c439bee379f222dc89907abec"
end
head do
url "https://sourceware.org/git/valgrind.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on :linux
def install
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--enable-only64bit
--without-mpicc
]
system "./autogen.sh" if build.head?
system "./configure", *args
system "make"
system "make", "install"
end
test do
assert_match "usage", shell_output("#{bin}/valgrind --help")
end
end