homebrew-core/Formula/ammonite-repl.rb
Rui Chen 44a6d6eaa5 ammonite-repl 1.8.2
Closes #47126.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
2019-11-24 13:40:37 -05: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/1.8.2/2.12-1.8.2"
sha256 "378d7a9fa1a8f44f8e27769259a465423cf540658ba42365213a3c00e4a8acc0"
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