homebrew-core/Formula/vtable-dumper.rb

24 lines
734 B
Ruby

class VtableDumper < Formula
desc "List contents of virtual tables in a shared library"
homepage "https://github.com/lvc/vtable-dumper"
url "https://github.com/lvc/vtable-dumper/archive/1.2.tar.gz"
sha256 "6993781b6a00936fc5f76dc0db4c410acb46b6d6e9836ddbe2e3c525c6dd1fd2"
license "LGPL-2.1-or-later"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "25d515fa79afefdabc3aa8020499f4092815f3857e891e3e5c88328eaa221b27"
end
depends_on "elfutils"
depends_on :linux
def install
system "make", "prefix=#{prefix}", "install"
end
test do
libstdcxx = Pathname.glob("/usr/**/libstdc++.so.6").first
assert_match(/: \d+ entries/, shell_output("#{bin}/vtable-dumper #{libstdcxx}"))
end
end