26 lines
923 B
Ruby
26 lines
923 B
Ruby
class Z80dasm < Formula
|
|
desc "Disassembler for the Zilog Z80 microprocessor and compatibles"
|
|
homepage "https://www.tablix.org/~avian/blog/articles/z80dasm/"
|
|
url "https://www.tablix.org/~avian/z80dasm/z80dasm-1.1.6.tar.gz"
|
|
sha256 "76d3967bb028f380a0c4db704a894c2aa939951faa5c5630b3355c327c0bd360"
|
|
license "GPL-2.0-or-later"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "5012e33c0fc342ec32a22462f9a75897fd69d44cf2918c64a593d268fa365c86" => :catalina
|
|
sha256 "0650fc5eadf8ee791201886bd39356af1365f9258c2222e27824fe63500b6eac" => :mojave
|
|
sha256 "a6d8e1d4caa612567de07580a353c82040e5c8005a08117386633e9a11f0df2e" => :high_sierra
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
path = testpath/"a.bin"
|
|
path.binwrite [0xcd, 0x34, 0x12].pack("c*")
|
|
assert_match /call 01234h/, shell_output("#{bin}/z80dasm #{path}")
|
|
end
|
|
end
|