homebrew-core/Formula/javarepl.rb

17 lines
507 B
Ruby
Raw Normal View History

require 'formula'
class Javarepl < Formula
homepage "https://github.com/albertlatacz/java-repl"
2014-07-31 14:42:15 +00:00
url "http://albertlatacz.published.s3.amazonaws.com/repo/javarepl/javarepl/272/javarepl-272.jar"
sha1 "d9528b0def103694c83bdded0a8d103edb175b4e"
def install
libexec.install "javarepl-#{version}.jar"
bin.write_jar_script libexec/"javarepl-#{version}.jar", "javarepl"
end
test do
2014-05-04 19:12:41 +00:00
assert pipe_output("#{bin}/javarepl", "System.out.println(64*1024)\n:quit\n").include?("65536")
end
end