aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/clojure-contrib.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/clojure-contrib.rb')
-rw-r--r--Library/Formula/clojure-contrib.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/clojure-contrib.rb b/Library/Formula/clojure-contrib.rb
index 576e84f20..f99729307 100644
--- a/Library/Formula/clojure-contrib.rb
+++ b/Library/Formula/clojure-contrib.rb
@@ -7,14 +7,14 @@ class ClojureContrib <Formula
homepage 'http://richhickey.github.com/clojure-contrib/branch-1.1.x/index.html'
depends_on 'clojure'
- depends_on 'maven' if ARGV.include? '--HEAD'
+ depends_on 'maven' if ARGV.build_head?
def jar
'clojure-contrib.jar'
end
def install
- if ARGV.include? '--HEAD'
+ if ARGV.build_head?
system "mvn package -Dclojure.jar=#{HOMEBREW_PREFIX}/Cellar/clojure/HEAD/clojure.jar"
system "mv target/clojure-contrib-*.jar #{jar}"
end