9d3a64cab4
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
36 lines
937 B
Ruby
36 lines
937 B
Ruby
require 'formula'
|
|
|
|
class ClojureContrib <Formula
|
|
url 'http://github.com/downloads/clojure/clojure-contrib/clojure-contrib-1.2.0.zip'
|
|
md5 '83cc86fd2929ca417a9ab9f2a0dedadb'
|
|
head 'git://github.com/clojure/clojure-contrib.git'
|
|
homepage 'http://richhickey.github.com/clojure-contrib/branch-1.1.x/index.html'
|
|
|
|
depends_on 'clojure'
|
|
depends_on 'maven' if ARGV.build_head?
|
|
|
|
def jar
|
|
'clojure-contrib.jar'
|
|
end
|
|
|
|
def install
|
|
if ARGV.build_head?
|
|
system "mvn package -Dclojure.jar=#{HOMEBREW_PREFIX}/Cellar/clojure/HEAD/clojure.jar"
|
|
end
|
|
system "mv target/clojure-contrib-*.jar #{jar}"
|
|
prefix.install jar
|
|
end
|
|
|
|
def caveats
|
|
<<-END_CAVEATS
|
|
For Clojure to detect the contrib libs, the following path must be in your
|
|
CLASSPATH ENV variable:
|
|
|
|
#{prefix}/#{jar}
|
|
|
|
To do this with bash, add the following to your ~/.profile file:
|
|
|
|
export CLASSPATH=$CLASSPATH:#{prefix}/#{jar}
|
|
END_CAVEATS
|
|
end
|
|
end
|