class Zydis < Formula desc "Fast and lightweight x86/x86_64 disassembler library" homepage "https://zydis.re" url "https://github.com/zyantific/zydis/archive/v2.0.3.tar.gz" sha256 "9a49b179ee2c787e1887e789867ca5c3a6c5e1fc929548c0a64f81272990ab01" head "https://github.com/zyantific/zydis.git" depends_on "cmake" => :build def install mkdir "build" do system "cmake", "..", *std_cmake_args system "make", "install" end end test do output = shell_output("#{bin}/ZydisInfo -64 66 3E 65 2E F0 F2 F3 48 01 A4 98 2C 01 00 00") assert_match "xrelease lock add qword ptr gs:[rax+rbx*4+0x12C], rsp", output end end