homebrew-core/Formula/clojurescript.rb
Brett Koonce a2fcf1fa72 clojurescript r2030
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-11-19 14:40:40 +00:00

27 lines
799 B
Ruby

require 'formula'
class Clojurescript < Formula
homepage 'https://github.com/clojure/clojurescript'
url 'https://github.com/clojure/clojurescript/archive/r2030.tar.gz'
sha1 '9d6ec56da87ab514496e95dc1ee05b6966e92e98'
head "https://github.com/clojure/clojurescript.git"
def install
system "./script/bootstrap"
inreplace %w(bin/cljsc script/repl script/repljs script/browser-repl),
"#!/bin/sh", "#!/bin/sh\nCLOJURESCRIPT_HOME=#{libexec}"
libexec.install Dir['*']
bin.write_exec_script libexec/'bin/cljsc'
end
def caveats; <<-EOS.undent
This formula is useful if you need to use the ClojureScript compiler directly.
For a more integrated workflow, Leiningen with lein-cljsbuild is recommended.
EOS
end
test do
system "#{bin}/cljsc"
end
end