d633230bac
Reaps the rewards of Homebrew/brew#744.
20 lines
591 B
Ruby
20 lines
591 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.7.4/0.7.4", :using => :nounzip
|
|
sha256 "d64021649484cf77bef58e1e21da755df932ccb1a0512c694a672a9acfcd2bd2"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on :java => "1.7+"
|
|
|
|
def install
|
|
bin.install Dir["*"].shift => "amm"
|
|
end
|
|
|
|
test do
|
|
ENV.java_cache
|
|
output = shell_output("#{bin}/amm -c 'print(\"hello world!\")'")
|
|
assert_equal "hello world!", output
|
|
end
|
|
end
|