homebrew-core/Formula/valgrind.rb

42 lines
975 B
Ruby

class Valgrind < Formula
desc "Dynamic analysis tools (memory, debug, profiling)"
homepage "https://www.valgrind.org/"
url "https://sourceware.org/pub/valgrind/valgrind-3.17.0.tar.bz2"
sha256 "ad3aec668e813e40f238995f60796d9590eee64a16dff88421430630e69285a2"
license "GPL-2.0-or-later"
livecheck do
url "https://sourceware.org/pub/valgrind/"
regex(/href=.*?valgrind[._-]v?(\d+(?:\.\d+)+)\.t/i)
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