homebrew-core/Formula/ammonite-repl.rb
ilovezfs e7534b285a ammonite-repl 0.8.2
Closes #9218.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
2017-01-24 18:21:20 +01:00

20 lines
641 B
Ruby

class AmmoniteRepl < Formula
desc "Ammonite is a cleanroom re-implementation of the Scala REPL"
homepage "https://lihaoyi.github.io/Ammonite/#Ammonite-REPL"
url "https://github.com/lihaoyi/Ammonite/releases/download/0.8.2/2.12-0.8.2", :using => :nounzip
sha256 "4084101271944253d0528587d437e9f15c2661c3289b50bb69925a3077c3fc39"
bottle :unneeded
depends_on :java => "1.8+"
def install
bin.install Dir["*"].shift => "amm"
end
test do
ENV["_JAVA_OPTIONS"] = "-Duser.home=#{testpath}"
output = shell_output("#{bin}/amm -c 'print(\"hello world!\")'")
assert_equal "hello world!", output.lines.last
end
end