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-22 11:59:32 +00:00
|
|
|
url "https://github.com/lihaoyi/Ammonite/archive/0.5.5.tar.gz"
|
|
|
|
sha256 "319517ddb76e21116077bc24646c61ec2989c23bb4da85834133dd52bb448ea9"
|
2015-10-20 20:48:22 +00:00
|
|
|
|
2015-11-08 14:33:44 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-02-22 12:13:30 +00:00
|
|
|
sha256 "260453fa12dd1e61d6c4d5674a57b1be7bb421c0bf44a53039c4b9d2bfcf2083" => :el_capitan
|
|
|
|
sha256 "f98cd77971727ace504470aa5c0fa0ea4b1a3dd5b2b5684fbc15a33af6719506" => :yosemite
|
|
|
|
sha256 "d7a89c8db3953dc3aae0dbcd7f5fd3d53070aa2fc92a6ffd8d9e259510bf9a53" => :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
|