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-03-09 12:45:48 +00:00
|
|
|
url "https://github.com/lihaoyi/Ammonite/archive/0.5.6.tar.gz"
|
|
|
|
sha256 "c131a984aa101b927e34a84832b85f8e9f54c1d4a5a1f2e45d18d26a3c6122cb"
|
2015-10-20 20:48:22 +00:00
|
|
|
|
2015-11-08 14:33:44 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-03-09 13:02:00 +00:00
|
|
|
sha256 "02fab559ad7837181378cf622476049808ba3eb02af2dacdf3ab651e6cb4d103" => :el_capitan
|
|
|
|
sha256 "95d030040a6fd69368b052f53c25cb8ec6ac0c84e422fe4a8f765d9d36459334" => :yosemite
|
|
|
|
sha256 "40f14e8805cb7b33fb685463bc77c1ab0e1c7e8e54eb15817c604d65b7dd984b" => :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-04 14:42:38 +00:00
|
|
|
|
2016-02-22 11:59:32 +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
|