7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
25 lines
567 B
Ruby
25 lines
567 B
Ruby
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", bin
|
|
s.change_make_var! "EXCEPTION_DIR", libexec
|
|
s.change_make_var! "MAN_DIR", man1
|
|
end
|
|
|
|
system "make"
|
|
system "make install"
|
|
system "make install-man"
|
|
system "make test"
|
|
|
|
mv "#{man1}/spim.man", "#{man1}/spim.1"
|
|
end
|
|
end
|