homebrew-core/Formula/spim.rb

29 lines
925 B
Ruby

class Spim < Formula
desc "MIPS32 simulator"
homepage "https://spimsimulator.sourceforge.io/"
# No source code tarball exists
url "https://svn.code.sf.net/p/spimsimulator/code", revision: 732
version "9.1.22"
head "https://svn.code.sf.net/p/spimsimulator/code/"
bottle do
sha256 "553aee29312b5b491d20c139652f87d8bd1547abd078285c5c80a13e02a868ff" => :catalina
sha256 "429ed6272e9255d16227b58bbc405c58d19ecb360540d2d228a91029b62506ab" => :mojave
sha256 "dfb4e24f378665fee30af8a3c362b1bc13e83b33196b66b4102c400fcee99b2e" => :high_sierra
end
def install
bin.mkpath
cd "spim" do
system "make", "EXCEPTION_DIR=#{share}"
system "make", "install", "BIN_DIR=#{bin}",
"EXCEPTION_DIR=#{share}",
"MAN_DIR=#{man1}"
end
end
test do
assert_match "__start", pipe_output("#{bin}/spim", "print_symbols")
end
end