2015-10-20 20:48:22 +00:00
|
|
|
class AmmoniteRepl < Formula
|
|
|
|
desc "Ammonite is a cleanroom re-implementation of the Scala REPL"
|
|
|
|
homepage "https://lihaoyi.github.io/Ammonite/#Ammonite-REPL"
|
2016-02-02 10:19:55 +00:00
|
|
|
url "https://github.com/lihaoyi/Ammonite/archive/0.5.3.tar.gz"
|
|
|
|
sha256 "e55215d68820e8be176c86942cf082b5efbbad39ed61a89af97c99557ef61fe8"
|
2015-10-20 20:48:22 +00:00
|
|
|
|
2015-11-08 14:33:44 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-02-02 10:43:07 +00:00
|
|
|
sha256 "045f72ca3f02d5d9f30e15a9ae1e5b0499d229a8384462b745a5e660c1c83e4e" => :el_capitan
|
|
|
|
sha256 "f766cf1e3f75b02a40d1b9c8ed8b9d6c49572f9180e7dff06c89b4909cd8bde3" => :yosemite
|
|
|
|
sha256 "532d4a8e5953e5c564e94915f8224328a680a085c51f22ccee5e1f2624a178b4" => :mavericks
|
2015-11-08 14:33:44 +00:00
|
|
|
end
|
|
|
|
|
2015-10-20 20:48:22 +00:00
|
|
|
depends_on :java => "1.6+"
|
|
|
|
depends_on "sbt" => :build
|
|
|
|
|
|
|
|
def install
|
2015-12-07 21:28:49 +00:00
|
|
|
ENV.java_cache
|
|
|
|
|
2015-10-20 20:48:22 +00:00
|
|
|
system "sbt", "repl/assembly"
|
2016-02-02 10:19:55 +00:00
|
|
|
bin.install "repl/target/scala-2.11/ammonite-repl-#{version}-2.11.7" => "amm"
|
2015-10-20 20:48:22 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-12-07 21:28:49 +00:00
|
|
|
ENV.java_cache
|
|
|
|
|
2015-10-20 20:48:22 +00:00
|
|
|
assert_equal "hello world!", shell_output("#{bin}/amm -c 'print(\"hello world!\")'")
|
|
|
|
end
|
|
|
|
end
|