-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
/
Copy pathudis86.rb
48 lines (42 loc) · 2.56 KB
/
udis86.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
class Udis86 < Formula
desc "Minimalistic disassembler library for x86"
homepage "https://sourceforge.net/projects/udis86/"
url "https://downloads.sourceforge.net/project/udis86/udis86/1.7/udis86-1.7.2.tar.gz"
sha256 "9c52ac626ac6f531e1d6828feaad7e797d0f3cce1e9f34ad4e84627022b3c2f4"
license "BSD-2-Clause"
revision 1
livecheck do
url :stable
regex(%r{url=.*?/udis86[._-]v?(\d+(?:\.\d+)+)\.t}i)
end
bottle do
sha256 cellar: :any, arm64_sequoia: "552bcddb3008d7acd654983862ce26f6bf71969bc2e94cc2cd2d1b9e89998815"
sha256 cellar: :any, arm64_sonoma: "0a1f4f4ba4fd2a3187075c2390eab0ac8ea0e3aa49d74e6ca74752269cd383b6"
sha256 cellar: :any, arm64_ventura: "4b94655d1de023c07b206dc196d082d727fb4d912b712e4c43ace873236ec5ed"
sha256 cellar: :any, arm64_monterey: "d21c7de8ded29dbf2218802883f3a2e702e338722345b06aeab3a5146b81b29e"
sha256 cellar: :any, arm64_big_sur: "97a5c453ede751fa70387f5c66f3c618bdc421d29ed1da6ec6e002b0efd7705f"
sha256 cellar: :any, sonoma: "15f7586105f9b0b33dd462d435f94cc746461efa2a74be5f77461b6cf91171c6"
sha256 cellar: :any, ventura: "366578e443141baec010770da4ae054d44d271491c6a93263d2d82b28d4f0c8b"
sha256 cellar: :any, monterey: "d3b5ae26039dad3f35b3ead709fb8ee9be23ccaeb619d0b009830e7d94e151db"
sha256 cellar: :any, big_sur: "d34571cf019e170edc18b80d678db9d27d1cbbeab7e4c1ba9e667868a1d3dd43"
sha256 cellar: :any, catalina: "6e9b87a5a4d1de46246e92bc536113a6a56ec0c4565c2c0c0d122eb34ff4025b"
sha256 cellar: :any_skip_relocation, arm64_linux: "d1cd6298235b1d5564a160a769f28944c1325e34fb836546c1c0362c271baf7f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "a8a15d4f3b8bad23184fdace5ddc482e4d1b5d7f98030791ecf91983ec909d5a"
end
depends_on "python@3.13" => :build
# Fix -flat_namespace being used on Big Sur and later.
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-pre-0.4.2.418-big_sur.diff"
sha256 "83af02f2aa2b746bb7225872cab29a253264be49db0ecebb12f841562d9a2923"
end
def install
system "./configure", "--prefix=#{prefix}",
"--enable-shared",
"--with-python=#{which("python3.13")}"
system "make"
system "make", "install"
end
test do
assert_match("int 0x80", pipe_output("#{bin}/udcli -x", "cd 80").split.last(2).join(" "))
end
end