aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/clojurescript.rb
diff options
context:
space:
mode:
authorDaniel Szmulewicz2013-08-18 22:08:25 +0100
committerMike McQuaid2013-08-18 22:08:25 +0100
commitfab5c40e308cefd9fbee9903f9540cf911415e03 (patch)
treec4ac3791ece34c215acd4bb8a83cb8e5a509aa69 /Library/Formula/clojurescript.rb
parent1fe6fa5025342c03cd2d777c7163f4f99e889254 (diff)
downloadhomebrew-fab5c40e308cefd9fbee9903f9540cf911415e03.tar.bz2
clojurescript 1853 (new formula)
Closes #21744.
Diffstat (limited to 'Library/Formula/clojurescript.rb')
-rw-r--r--Library/Formula/clojurescript.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/clojurescript.rb b/Library/Formula/clojurescript.rb
new file mode 100644
index 000000000..27097edf8
--- /dev/null
+++ b/Library/Formula/clojurescript.rb
@@ -0,0 +1,27 @@
+require 'formula'
+
+class Clojurescript < Formula
+ homepage 'https://github.com/clojure/clojurescript'
+ url 'https://github.com/clojure/clojurescript/archive/r1853.tar.gz'
+ sha1 '19e07e266ea189d791bfe06507e4560483b8f0d6'
+
+ 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