homebrew-core/Formula/ammonite-repl.rb
ilovezfs 913755a5ec
ammonite-repl 1.1.2 (#27995)
allow newer Java
2018-05-18 03:18:47 -07:00

21 lines
660 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/1.1.2/2.12-1.1.2", :using => :nounzip
sha256 "2cbbec93b8ace067f9fcaa30615b1d815b3a094b1c2c2ec5c09ef6a3fcc954ad"
bottle :unneeded
depends_on :java => "1.8+"
def install
libexec.install Dir["*"].shift => "amm"
chmod 0555, libexec/"amm"
bin.install_symlink libexec/"amm"
end
test do
output = shell_output("#{bin}/amm -c 'print(\"hello world!\")'")
assert_equal "hello world!", output.lines.last
end
end