homebrew-core/Formula/javarepl.rb
Viktor Szakáts 52e51d5892 javarepl: modernize, https, sha256
Closes Homebrew/homebrew#37477.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-07 15:44:55 +00:00

14 lines
515 B
Ruby

class Javarepl < Formula
homepage "https://github.com/albertlatacz/java-repl"
url "https://s3.amazonaws.com/albertlatacz.published/repo/javarepl/javarepl/272/javarepl-272.jar"
sha256 "f23a2635adee8dee17099a857d4544105ac1bb21d2bb05480162f1c1e0c525fd"
def install
libexec.install "javarepl-#{version}.jar"
bin.write_jar_script libexec/"javarepl-#{version}.jar", "javarepl"
end
test do
assert pipe_output("#{bin}/javarepl", "System.out.println(64*1024)\n:quit\n").include?("65536")
end
end