From 4ce171207cb434efe5b50f8a8805832deaacbced Mon Sep 17 00:00:00 2001 From: Andy Stanton Date: Thu, 4 Feb 2016 14:42:38 +0000 Subject: [PATCH] ammonite-repl 0.5.4 Closes Homebrew/homebrew#48826. Signed-off-by: Mike McQuaid --- Formula/ammonite-repl.rb | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Formula/ammonite-repl.rb b/Formula/ammonite-repl.rb index cb66d54463c..2c2db5c6f02 100644 --- a/Formula/ammonite-repl.rb +++ b/Formula/ammonite-repl.rb @@ -1,8 +1,8 @@ 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/archive/0.5.3.tar.gz" - sha256 "e55215d68820e8be176c86942cf082b5efbbad39ed61a89af97c99557ef61fe8" + url "https://github.com/lihaoyi/Ammonite/archive/0.5.4.tar.gz" + sha256 "9cd2c1d19561c443a3e8eeec123461533deb98b26346b78077dc2540b26ce4c5" bottle do cellar :any_skip_relocation @@ -18,7 +18,14 @@ class AmmoniteRepl < Formula ENV.java_cache system "sbt", "repl/assembly" - bin.install "repl/target/scala-2.11/ammonite-repl-#{version}-2.11.7" => "amm" + + # Ammonite REPL 0.5.4 incorrectly generates an executable with version 0.5.3 in the name + # see: https://github.com/lihaoyi/Ammonite/blob/0.5.4/project/Constants.scala + + # Please use the derived version instead of an explicit version for the next release: + # bin.install "repl/target/scala-2.11/ammonite-repl-#{version}-2.11.7" => "amm" + bin.install "repl/target/scala-2.11/ammonite-repl-0.5.3-2.11.7" => "amm" + end test do