blob: a70f06f9c9c64a55f2f7bbc73a71884938f9180f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
require 'formula'
class Clojurescript < Formula
homepage 'https://github.com/clojure/clojurescript'
url 'https://github.com/clojure/clojurescript/archive/r1889.tar.gz'
sha1 'da8ec2419f4164a3828cb4a86e475efa784a33e8'
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
|