homebrew-core/Formula/mmix.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

39 lines
933 B
Ruby

class Mmix < Formula
desc "64-bit RISC architecture designed by Donald Knuth"
homepage "http://mmix.cs.hm.edu/"
url "http://mmix.cs.hm.edu/src/mmix-20131017.tgz"
sha256 "aa64c4b9dc3cf51f07b330791f8ce542b0ae8a1132e098fa95a19b31350050b4"
bottle do
cellar :any
sha1 "3203586ea18c63f2332cd7d52e739f87c6bf71c6" => :mavericks
sha1 "cc8eeb7fe526992122ddf3a42fc422837b18a0d4" => :mountain_lion
sha1 "d1cddd4fff7468c8234f3362d42b2a4bfbd17cee" => :lion
end
depends_on "cweb" => :build
def install
ENV.deparallelize
system "make", "all"
bin.install "mmix", "mmixal", "mmmix", "mmotype"
end
test do
(testpath/"hello.mms").write <<-EOS
LOC Data_Segment
GREG @
txt BYTE "Hello world!",0
LOC #100
Main LDA $255,txt
TRAP 0,Fputs,StdOut
TRAP 0,Halt,0
EOS
system bin/"mmixal", "hello.mms"
assert_equal "Hello world!", `mmix hello.mmo`
end
end