homebrew-core/Formula/frotz.rb

31 lines
1.0 KiB
Ruby

class Frotz < Formula
desc "Infocom-style interactive fiction player"
homepage "https://gitlab.com/DavidGriffith/frotz"
url "https://gitlab.com/DavidGriffith/frotz/-/archive/2.50/frotz-2.50.tar.gz"
sha256 "0352dfc458fb5cc7a932c568bd86aabdde943bee25ea0cce58c46f8c893f554f"
head "https://gitlab.com/DavidGriffith/frotz.git"
bottle do
sha256 "9e152d332b98fa59ac24f12c965b7b8130abf02157bed73c82a1d1379962409b" => :catalina
sha256 "d3c4e36ef1eb239daabf8aa4dc29bb8c0b6fada88d7f1924f561c0a0515d0b5d" => :mojave
sha256 "33ee071a81fb2fd18d4222659fb522115a9afa3e15228a5005df25713ac69b3e" => :high_sierra
end
def install
inreplace "Makefile" do |s|
s.change_make_var! "PREFIX", prefix
s.change_make_var! "MANDIR", man
s.change_make_var! "SYSCONFDIR", etc
s.change_make_var! "SOUND_TYPE", "none"
s.gsub! " ", " "
end
system "make", "frotz"
system "make", "install"
end
test do
assert_match "FROTZ", shell_output("#{bin}/frotz --version").strip
end
end