homebrew-core/Formula/javarepl.rb
ilovezfs 1942a46f42 javarepl 348
Closes #7312.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-11-28 13:33:54 -08:00

17 lines
578 B
Ruby

class Javarepl < Formula
desc "Read Eval Print Loop (REPL) for Java"
homepage "https://github.com/albertlatacz/java-repl"
url "https://s3.amazonaws.com/albertlatacz.published/repo/javarepl/javarepl/348/javarepl-348.jar"
sha256 "23bebc905ca1ae0d83183595f0fb400934b6256f90b5563ad742dd74c5ec8ae9"
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