2010-02-15 21:20:47 +00:00
|
|
|
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|
|
2010-03-07 06:27:19 +00:00
|
|
|
s.change_make_var! "BIN_DIR", bin
|
|
|
|
s.change_make_var! "EXCEPTION_DIR", libexec
|
|
|
|
s.change_make_var! "MAN_DIR", man1
|
2010-02-15 21:20:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
system "make install-man"
|
|
|
|
system "make test"
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-02-15 22:38:55 +00:00
|
|
|
mv "#{man1}/spim.man", "#{man1}/spim.1"
|
2010-02-15 21:20:47 +00:00
|
|
|
end
|
|
|
|
end
|