ammonite-repl 0.5.7
This commit is contained in:
parent
dd7415bafe
commit
ec671a5095
1 changed files with 6 additions and 16 deletions
|
@ -1,30 +1,20 @@
|
||||||
class AmmoniteRepl < Formula
|
class AmmoniteRepl < Formula
|
||||||
desc "Ammonite is a cleanroom re-implementation of the Scala REPL"
|
desc "Ammonite is a cleanroom re-implementation of the Scala REPL"
|
||||||
homepage "https://lihaoyi.github.io/Ammonite/#Ammonite-REPL"
|
homepage "https://lihaoyi.github.io/Ammonite/#Ammonite-REPL"
|
||||||
url "https://github.com/lihaoyi/Ammonite/archive/0.5.6.tar.gz"
|
url "https://git.io/vVfy5", :using => :nounzip
|
||||||
sha256 "c131a984aa101b927e34a84832b85f8e9f54c1d4a5a1f2e45d18d26a3c6122cb"
|
sha256 "ef410dc843391c6b3199f2552a24f5fe3f3c79a7558d813089c8dce8b4ab97b6"
|
||||||
|
version "0.5.7"
|
||||||
|
|
||||||
bottle do
|
bottle :unneeded
|
||||||
cellar :any_skip_relocation
|
|
||||||
sha256 "02fab559ad7837181378cf622476049808ba3eb02af2dacdf3ab651e6cb4d103" => :el_capitan
|
|
||||||
sha256 "95d030040a6fd69368b052f53c25cb8ec6ac0c84e422fe4a8f765d9d36459334" => :yosemite
|
|
||||||
sha256 "40f14e8805cb7b33fb685463bc77c1ab0e1c7e8e54eb15817c604d65b7dd984b" => :mavericks
|
|
||||||
end
|
|
||||||
|
|
||||||
depends_on :java => "1.6+"
|
depends_on :java => "1.7+"
|
||||||
depends_on "sbt" => :build
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
ENV.java_cache
|
bin.install "vVfy5" => "amm"
|
||||||
|
|
||||||
system "sbt", "repl/assembly"
|
|
||||||
|
|
||||||
bin.install "repl/target/scala-2.11/ammonite-repl-#{version}-2.11.7" => "amm"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
ENV.java_cache
|
ENV.java_cache
|
||||||
|
|
||||||
assert_equal "hello world!", shell_output("#{bin}/amm -c 'print(\"hello world!\")'")
|
assert_equal "hello world!", shell_output("#{bin}/amm -c 'print(\"hello world!\")'")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue