homebrew-core/Formula/frege-repl.rb

22 lines
618 B
Ruby

class FregeRepl < Formula
desc "REPL (read-eval-print loop) for Frege"
homepage "https://github.com/Frege/frege-repl"
url "https://github.com/Frege/frege-repl/releases/download/1.4-SNAPSHOT/frege-repl-1.4-SNAPSHOT.zip"
version "1.4-SNAPSHOT"
sha256 "2cf1c2a8f7b64c9d70b21fbfd25b2af3f5e3bebe3662f724afd435d01bddafec"
bottle :unneeded
depends_on :java => "1.8+"
def install
rm_f Dir["bin/*.bat"]
libexec.install "bin", "lib"
bin.install_symlink "#{libexec}/bin/frege-repl"
end
test do
assert_match "65536", pipe_output("#{bin}/frege-repl", "println $ 64*1024\n:quit\n")
end
end