homebrew-core/Formula/ammonite-repl.rb
andystanton 2091d963ba ammonite-repl 0.8.1
Closes #7756.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2016-12-10 16:03:43 -08:00

20 lines
636 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.1/0.8.1", :using => :nounzip
sha256 "a1e8561c492baa747ab9aeffc9ea040683ca81a9962735af772d64ec7c019e77"
bottle :unneeded
depends_on :java => "1.7+"
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