homebrew-core/Formula/sz81.rb

29 lines
857 B
Ruby
Raw Normal View History

2017-02-06 10:27:01 +00:00
class Sz81 < Formula
desc "ZX80/81 emulator"
2017-02-13 23:55:44 +00:00
homepage "https://sz81.sourceforge.io/"
2017-02-06 10:27:01 +00:00
url "https://downloads.sourceforge.net/project/sz81/sz81/2.1.7/sz81-2.1.7-source.tar.gz"
sha256 "4ad530435e37c2cf7261155ec43f1fc9922e00d481cc901b4273f970754144e1"
2017-03-10 09:05:25 +00:00
head "https://svn.code.sf.net/p/sz81/code/sz81"
2017-02-06 10:27:01 +00:00
bottle do
2017-02-08 08:28:18 +00:00
sha256 "853475dfc7991beea12b01669e81fc35ce10e6a9b067716eb026e0ff693d5c4c" => :sierra
sha256 "7a9b6ffa108486dea9514df6fbdd820a0e7b829c893ecb1b76a1b69ca8f39a21" => :el_capitan
sha256 "a7f7cc5af1a1a42449da3169e18587df907369c94debf6bb15edba62acf0e199" => :yosemite
2017-02-06 10:27:01 +00:00
end
depends_on "sdl"
def install
args = %W[
PREFIX=#{prefix}
BINDIR=#{bin}
]
system "make", *args
system "make", "install", *args
end
test do
assert_match /sz81 #{version} -/, shell_output("#{bin}/sz81 -h", 1)
end
end