46 lines
1.1 KiB
Ruby
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.20.0.tar.bz2"
|
|
sha256 "8536c031dbe078d342f121fa881a9ecd205cb5a78e639005ad570011bdb9f3c6"
|
|
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: "5564cbedaeb51b4295895cbcd4486ee31c72d1de1dc78bea2aabb30cd204ddc8"
|
|
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
|