17 lines
578 B
Ruby
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/339/javarepl-339.jar"
|
|
sha256 "c858c1a714990807b0c0595eb1658225fecee63bb19b697459c657ce49a7b59f"
|
|
|
|
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
|