diff options
| author | Trevor Stevens | 2010-02-15 16:20:47 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2010-02-15 17:06:55 -0800 |
| commit | 79581c3b99627727ad75080d8a09b46d3d29eb7f (patch) | |
| tree | 139a7238a8fb1f03499dfb80a2dcc32d38840611 /Library/Formula | |
| parent | d896345b261db7bdf1d4d4e2fec38dce93b05382 (diff) | |
| download | homebrew-79581c3b99627727ad75080d8a09b46d3d29eb7f.tar.bz2 | |
New Formula: SPIM
spim is a self-contained simulator that will run MIPS32 assembly language programs.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/spim.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/spim.rb b/Library/Formula/spim.rb new file mode 100644 index 000000000..d4f5f573b --- /dev/null +++ b/Library/Formula/spim.rb @@ -0,0 +1,28 @@ +require 'formula' + +class Spim <Formula + url 'http://www.cs.wisc.edu/~larus/SPIM/spim.tar.gz' + homepage 'http://pages.cs.wisc.edu/~larus/spim.html' + md5 '146558e8256f2b7577fb825fdc76a04f' + version '8.0' + + + def install + Dir.chdir 'spim' + + inreplace "Makefile" do |s| + s.change_make_var! "BIN_DIR", "#{prefix}/bin" + s.change_make_var! "EXCEPTION_DIR", "#{prefix}/lib" + s.change_make_var! "MAN_DIR", "#{prefix}/share/man/man1" + end + + system "make" + system "make install" + system "make install-man" + system "make test" + + Dir.chdir "#{prefix}/share/man/man1" + mv 'spim.man', 'spim.1' + + end +end |
