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"
7 head "https://github.com/pkgw/elfx86exts.git", branch: "master"
11 regex(/^(?:elfx86exts@)?v?(\d+(?:\.\d+)+)$/i)
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"
25 depends_on "rust" => :build
29 system "cargo", "install", *std_cargo_args
34 File format and CPU architecture: Elf, X86_64
36 Instruction set extensions used: MODE64
37 CPU Generation: Intel Core
39 actual = shell_output("#{bin}/elfx86exts #{test_fixtures("elf/hello")}")
40 assert_equal expected, actual