homebrew-core/Formula/dmalloc.rb

32 lines
1.5 KiB
Ruby

class Dmalloc < Formula
desc "Debug versions of system memory management routines"
homepage "https://dmalloc.com/"
url "https://dmalloc.com/releases/dmalloc-5.6.5.tgz"
sha256 "480e3414ab6cedca837721c756b7d64b01a84d2d0e837378d98444e2f63a7c01"
license "ISC"
livecheck do
url "https://dmalloc.com/releases/"
regex(/href=.*?dmalloc[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "2f328197f63c96ff0ce40846bb242b3e1d04985567893adefd2d47f79f6f96d6"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "c8e1beff8a66f4a5d7a90fa8c5f9836ed79b9241ab642966d82550916a3af5c1"
sha256 cellar: :any_skip_relocation, monterey: "e81b6c8a327baa3612aed45f6dfc157885344bb64f925dcf1cb00d12acfb2f9d"
sha256 cellar: :any_skip_relocation, big_sur: "300f9e7b54c15071bc36fb861cc6b75ef671052c8be6096a99314b1ca0077565"
sha256 cellar: :any_skip_relocation, catalina: "770699ff908a65026ecdebbe57272a50e57f60341c2918302ee4b6729e866533"
sha256 cellar: :any_skip_relocation, mojave: "40c8cf6501477c243064179e7b634da0d9d32348155d3aee9fbf6631ffdc7ba7"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c170666de851ea2229c7c7e5dbd2d45960d8033bae31ceffd7eaf5289c1c7aba"
end
def install
system "./configure", "--enable-threads", "--prefix=#{prefix}"
system "make", "install", "installth", "installcxx", "installthcxx"
end
test do
system "#{bin}/dmalloc", "-b", "runtime"
end
end