homebrew-core/Formula/clojurescript.rb

34 lines
1 KiB
Ruby
Raw Normal View History

2014-06-21 20:22:10 +00:00
require "formula"
class Clojurescript < Formula
2014-06-21 20:22:10 +00:00
homepage "https://github.com/clojure/clojurescript"
head "https://github.com/clojure/clojurescript.git"
url "https://github.com/clojure/clojurescript/archive/r2371.tar.gz"
sha1 "63284f043f2f61adcc78de60998520b382b5f135"
2014-08-21 08:13:25 +00:00
bottle do
cellar :any
2014-10-12 12:59:38 +00:00
sha1 "05a29dcf4e9c92b0a0eee7045c25e7265d10241c" => :mavericks
sha1 "dc804f7b868c8ca634fdc8793608c1730c50cbc6" => :mountain_lion
sha1 "d2ff39cccff549ebf65b230b09b99f81b8ec6a36" => :lion
2014-08-21 08:13:25 +00:00
end
def install
system "./script/bootstrap"
inreplace %w(bin/cljsc script/repl script/repljs script/browser-repl),
"#!/bin/sh", "#!/bin/sh\nCLOJURESCRIPT_HOME=#{libexec}"
2014-06-21 20:22:10 +00:00
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