Merge pull request #207020 from Homebrew/bump-qpdf-11.10.0
[Homebrew/homebrew-core.git] / Formula / e / elfx86exts.rb
blob1630dbf92380794a0e3fdafd813ec229a4d91db2
1 class Elfx86exts < Formula
2   desc "Decodes x86 binaries (ELF and Mach-O) and prints out ISA extensions in use"
3   homepage "https://github.com/pkgw/elfx86exts"
4   url "https://github.com/pkgw/elfx86exts/archive/refs/tags/elfx86exts@0.6.2.tar.gz"
5   sha256 "55e2ee8c6481e46749b622910597a01e86207250d57e4430b7ce31a22b982e1a"
6   license "MIT"
7   head "https://github.com/pkgw/elfx86exts.git", branch: "master"
9   livecheck do
10     url :stable
11     regex(/^(?:elfx86exts@)?v?(\d+(?:\.\d+)+)$/i)
12   end
14   bottle do
15     sha256 cellar: :any_skip_relocation, arm64_sequoia:  "082f25260e328fdec04a35804170ad6f0918521c7f146798c0375ff8ee85e7b1"
16     sha256 cellar: :any_skip_relocation, arm64_sonoma:   "bb47ed9ed1023b1bfe3caef08bd800517cdfcd146a84a928c792e2b0de88bbae"
17     sha256 cellar: :any_skip_relocation, arm64_ventura:  "0abba15bb99c3a98c80fdc8213eb27d497be4d2c6f419c4a8c4868543553f40f"
18     sha256 cellar: :any_skip_relocation, arm64_monterey: "b4dd152a3f044f2d7d80b8af226dccb6757598bc770a8f6fe2d64c44ac25a294"
19     sha256 cellar: :any_skip_relocation, sonoma:         "73d0f2b0c4c4ecc122dac0995af34846a1b140a8c604a417f8cbab2a77363a38"
20     sha256 cellar: :any_skip_relocation, ventura:        "afb4dc9409919287108a2124cbda2c51b5e7577f965262a50e581afdd9dee9f9"
21     sha256 cellar: :any_skip_relocation, monterey:       "6f85234f2d361532a283d8a075325a010facd04013aedb3516cb840c3fcb29b4"
22     sha256 cellar: :any_skip_relocation, x86_64_linux:   "2f2bd41878fda292054b7c900726aa690f55791e7d541aea2c9cb2cf85b8a0e0"
23   end
25   depends_on "rust" => :build
26   depends_on "capstone"
28   def install
29     system "cargo", "install", *std_cargo_args
30   end
32   test do
33     expected = <<~EOS
34       File format and CPU architecture: Elf, X86_64
35       MODE64 (call)
36       Instruction set extensions used: MODE64
37       CPU Generation: Intel Core
38     EOS
39     actual = shell_output("#{bin}/elfx86exts #{test_fixtures("elf/hello")}")
40     assert_equal expected, actual
41   end
42 end