homebrew-core/Formula/z80dasm.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

18 lines
571 B
Ruby

class Z80dasm < Formula
desc "Disassembler for the Zilog Z80 microprocessor and compatibles"
homepage "http://www.tablix.org/~avian/blog/articles/z80dasm/"
url "http://www.tablix.org/~avian/z80dasm/z80dasm-1.1.3.tar.gz"
sha256 "1d6966bf7bddd0965421455e666872607019cfa43352188f5580304dd1039539"
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
path = testpath/"a.bin"
path.binwrite [0xcd, 0x34, 0x12].pack("c*")
assert shell_output("#{bin}/z80dasm #{path}").include?("call 01234h")
end
end