homebrew-core/Formula/elfutils.rb

40 lines
1.2 KiB
Ruby

class Elfutils < Formula
desc "Libraries and utilities for handling ELF objects"
homepage "https://fedorahosted.org/elfutils/"
url "https://sourceware.org/elfutils/ftp/0.186/elfutils-0.186.tar.bz2"
sha256 "7f6fb9149b1673d38d9178a0d3e0fb8a1ec4f53a9f4c2ff89469609879641177"
license all_of: ["GPL-2.0-or-later", "GPL-3.0-or-later", "LGPL-2.0-only"]
livecheck do
url "https://sourceware.org/elfutils/ftp/"
regex(%r{href=(?:["']?v?(\d+(?:\.\d+)+)/?["' >]|.*?elfutils[._-]v?(\d+(?:\.\d+)+)\.t)}i)
end
bottle do
sha256 x86_64_linux: "222193ae92560a671e2a4fb9c3623d705948bacf414cc8fcf0d452bde936585f"
end
depends_on "m4" => :build
depends_on "bzip2"
depends_on :linux
depends_on "xz"
depends_on "zlib"
def install
system "./configure",
"--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--disable-libdebuginfod",
"--disable-debuginfod",
"--program-prefix=elfutils-",
"--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
assert_match "elf_kind", shell_output("#{bin}/elfutils-nm #{bin}/elfutils-nm")
end
end