homebrew-core/Formula/z80dasm.rb

20 lines
493 B
Ruby
Raw Normal View History

require 'formula'
class Z80dasm < Formula
homepage 'http://www.tablix.org/~avian/blog/articles/z80dasm/'
url 'http://www.tablix.org/~avian/z80dasm/z80dasm-1.1.3.tar.gz'
sha1 'da1e2525bc0db1b86e28f65ba510196998448ed1'
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
2013-10-14 21:55:54 +00:00
test do
path = testpath/"a.bin"
2014-07-27 23:23:54 +00:00
path.binwrite [0xcd, 0x34, 0x12].pack("c*")
2014-05-04 19:12:41 +00:00
assert shell_output("#{bin}/z80dasm #{path}").include?("call 01234h")
2013-10-14 21:55:54 +00:00
end
end