homebrew-core/Formula/javarepl.rb
2016-12-02 09:33:35 -08:00

17 lines
567 B
Ruby

class Javarepl < Formula
desc "Read Eval Print Loop (REPL) for Java"
homepage "https://github.com/albertlatacz/java-repl"
url "https://github.com/albertlatacz/java-repl/releases/download/399/javarepl-399.jar"
sha256 "5be72650dea1537676ad5f613dbb53bcd8684939ac942cfad9ceda45e28e8d51"
bottle :unneeded
def install
libexec.install "javarepl-#{version}.jar"
bin.write_jar_script libexec/"javarepl-#{version}.jar", "javarepl"
end
test do
assert_match "65536", pipe_output("#{bin}/javarepl", "System.out.println(64*1024)\n:quit\n")
end
end