09bf933e5d
Closes #7549. Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
17 lines
567 B
Ruby
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/416/javarepl-416.jar"
|
|
sha256 "5787208afcd8bbc11bec1a200cf49e96d526466ae999e364f5616fbf5b87b43b"
|
|
|
|
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
|