blob: c6a39a2edcb736fe7e03817f015abf002d87088c (
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 ClojureContrib <Formula
head 'git://github.com/richhickey/clojure-contrib.git'
homepage 'http://github.com/richhickey/clojure-contrib'
depends_on 'clojure'
depends_on 'maven'
def install
system "mvn package"
prefix.install Dir["target/clojure-contrib-*.jar"]
end
def caveats
<<-END_CAVEATS
For Clojure to detect the contrib libs, the following path must be in your
CLASSPATH ENV variable:
#{prefix}
To do this with bash, add the following to your ~/.profile file:
export CLASSPATH=$CLASSPATH:#{prefix}
END_CAVEATS
end
end
|