homebrew-core/Formula/ammonite-repl.rb

21 lines
537 B
Ruby
Raw Normal View History

class AmmoniteRepl < Formula
desc "Ammonite is a cleanroom re-implementation of the Scala REPL"
homepage "https://lihaoyi.github.io/Ammonite/#Ammonite-REPL"
2016-04-05 07:59:37 +00:00
url "https://git.io/vVfy5", :using => :nounzip
version "0.5.7"
2016-04-10 17:09:31 +00:00
sha256 "ef410dc843391c6b3199f2552a24f5fe3f3c79a7558d813089c8dce8b4ab97b6"
2016-04-05 07:59:37 +00:00
bottle :unneeded
2015-11-08 14:33:44 +00:00
2016-04-05 07:59:37 +00:00
depends_on :java => "1.7+"
def install
2016-04-05 07:59:37 +00:00
bin.install "vVfy5" => "amm"
end
test do
2015-12-07 21:28:49 +00:00
ENV.java_cache
assert_equal "hello world!", shell_output("#{bin}/amm -c 'print(\"hello world!\")'")
end
end