homebrew-core/Formula/boot-clj.rb
Caleb Land 3685d1b466 Fix shebang boot scripts (#47446)
Added a java property `boot.app.path` which is needed by boot when
running "shebang" scripts.

`boot.app.path` is set to the location of the boot shell script itself
2019-12-03 20:49:50 -05:00

19 lines
502 B
Ruby

class BootClj < Formula
desc "Build tooling for Clojure"
homepage "https://boot-clj.com/"
url "https://github.com/boot-clj/boot/releases/download/2.8.3/boot.jar"
sha256 "31f001988f580456b55a9462d95a8bf8b439956906c8aca65d3656206aa42ec7"
bottle :unneeded
depends_on :java
def install
libexec.install "boot.jar"
bin.write_jar_script libexec/"boot.jar", "boot", %Q(-Dboot.app.path="#{bin}/boot")
end
test do
system "#{bin}/boot", "repl", "-e", "(System/exit 0)"
end
end