7a4dabfc1a
This restores 1.8 hash rockets because they look nicer with e.g. `depends_on :foo => :bar`
20 lines
636 B
Ruby
20 lines
636 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.7/0.7.7", :using => :nounzip
|
|
sha256 "c0e9598f49604e3ec8def8357610e278628f0ea20cf150b264b32de1389f6e4e"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on :java => "1.7+"
|
|
|
|
def install
|
|
bin.install Dir["*"].shift => "amm"
|
|
end
|
|
|
|
test do
|
|
ENV["_JAVA_OPTIONS"] = "-Duser.home=#{testpath}"
|
|
output = shell_output("#{bin}/amm -c 'print(\"hello world!\")'")
|
|
assert_equal "hello world!", output.lines.last
|
|
end
|
|
end
|