homebrew-core/Formula/demumble.rb

37 lines
1.9 KiB
Ruby

class Demumble < Formula
desc "More powerful symbol demangler (a la c++filt)"
homepage "https://github.com/nico/demumble"
url "https://github.com/nico/demumble/archive/refs/tags/v1.2.2.tar.gz"
sha256 "663e5d205c83cc36a257bb168d3ecbc2a49693088c0451b2405d25646651c63e"
license "Apache-2.0"
head "https://github.com/nico/demumble.git", branch: "main"
bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "7bfa72834af03942bb6eacc60ec52006997dd1fbdc68351398a78ffe046e19d8"
sha256 cellar: :any_skip_relocation, arm64_monterey: "ff3563d728d6ad3ba851fe1a9e95e599f0fb835ea6e046b30e329537f19aaedc"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "b43c1b4396d845e300f9f5c7746fb6a393ea8a3189c822ba96c35cb1ddd7786b"
sha256 cellar: :any_skip_relocation, ventura: "e98aeeb71355a2125a7e5c7d91c3926e2889864242ca65cf961b2de49900d55d"
sha256 cellar: :any_skip_relocation, monterey: "3677ec9a895d02cd6694710152625d98f903720e891774d292a5ea454d11bbc0"
sha256 cellar: :any_skip_relocation, big_sur: "f7dc50c58c1188bd07b90c0ecb57031f24ad3b463f41befd78ea5b5cfd1577e0"
sha256 cellar: :any_skip_relocation, catalina: "c79b46404de20da59fb13b225006147666199f6a03b56e43820d20ae818dafff"
sha256 cellar: :any_skip_relocation, mojave: "f843e7116cf05d2a7dff4fb8351d0609e8120d49aad84e810f44cc85d6b62811"
sha256 cellar: :any_skip_relocation, x86_64_linux: "addf214742de13338bbbc8f19e8f41593bc66bcacb6870f9add57a9e00c0eca9"
end
depends_on "cmake" => :build
def install
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "cmake", "--build", "build"
# CMakeLists.txt does not contain install rules
bin.install "build/demumble"
end
test do
mangled = "__imp_?FLAGS_logtostderr@fLB@@3_NA"
demangled = "__imp_bool fLB::FLAGS_logtostderr"
assert_equal demangled, pipe_output(bin/"demumble", mangled)
end
end