homebrew-core/Formula/javarepl.rb
ilovezfs 2b0c35cc97 javarepl 425
Closes #7619.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-12-07 01:00:27 -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/425/javarepl-425.jar"
sha256 "eba8991d57ce9722fd94e4fa2dae2fc25b372887b3b6ad2db170f7cf215b8049"
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