require 'formula' class Clojure < Formula url 'https://github.com/downloads/clojure/clojure/clojure-1.2.1.zip' md5 'c5724c624fd6ce6a1d00252c27d53ebe' head 'https://github.com/clojure/clojure.git' homepage 'http://clojure.org/' def jar 'clojure.jar' end def script <<-EOS #!/bin/sh # Runs clojure. # With no arguments, runs Clojure's REPL. # resolve links - $0 may be a softlink CLOJURE=$CLASSPATH:$(brew --cellar)/#{name}/#{version}/#{jar} java -cp $CLOJURE clojure.main "$@" EOS end def install system "ant" if ARGV.build_head? prefix.install jar (bin+'clj').write script end def caveats; <<-EOS.undent If you `brew install repl` then you may find this wrapper script from MacPorts useful: http://trac.macports.org/browser/trunk/dports/lang/clojure/files/clj-rlwrap.sh?format=txt EOS end end option value='go'>go :beer: The missing package manager for OS X.
aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/clean.rb
blob: 2330ad0d6bea4a6b86fe3fb119b0fac42bea6e9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13