335194c9b4
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
27 lines
799 B
Ruby
27 lines
799 B
Ruby
require 'formula'
|
|
|
|
class Clojurescript < Formula
|
|
homepage 'https://github.com/clojure/clojurescript'
|
|
url 'https://github.com/clojure/clojurescript/archive/r1934.tar.gz'
|
|
sha1 'e1b48dc9409410d7557f9e0c0769fba290e2a6c3'
|
|
|
|
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
|