homebrew-core/Formula/ammonite-repl.rb
Rui Chen 06b637d8e4 ammonite-repl 2.0.4
Closes #48997.

Signed-off-by: Alexander Bayandin <a.bayandin@gmail.com>
2020-01-14 22:48:14 +00:00

21 lines
640 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/2.0.4/2.13-2.0.4"
sha256 "3ad1ccbf799c7b228ae61662bc46f11db84dee35bc56a1b9c89901306dc24039"
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