homebrew-core/Formula/acme.rb
Baptiste Fontaine c610391433 acme 0.93 (devel)
Closes Homebrew/homebrew#34914.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-12-12 09:51:09 +00:00

31 lines
826 B
Ruby

require 'formula'
class Acme < Formula
homepage 'http://www.esw-heim.tu-clausthal.de/~marco/smorbrod/acme/'
url 'http://www.esw-heim.tu-clausthal.de/~marco/smorbrod/acme/current/acme091src.tar.gz'
version '0.91'
sha1 '7104ea01a2ca2962294aaac4974e10c6486534a8'
devel do
url "http://www.esw-heim.tu-clausthal.de/~marco/smorbrod/acme/current/acme093testing.tar.bz2"
sha1 "59bde69dcbb3242fc29fc019052cbdff10dbb8f8"
version "0.93"
end
def install
system "make", "-C", "src", "install", "BINDIR=#{bin}"
end
test do
path = testpath/"a.asm"
path.write <<-EOS
!to "a.out", cbm
* = $c000
jmp $fce2
EOS
system bin/"acme", path
code = File.open(testpath/"a.out", "rb") { |f| f.read.unpack("C*") }
assert_equal [0x00, 0xc0, 0x4c, 0xe2, 0xfc], code
end
end