diff options
| author | Chris Allen | 2013-08-17 12:28:25 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-08-17 12:29:53 +0100 |
| commit | e8e8e9251b221f5ba76cbf5632b6652cacb9de40 (patch) | |
| tree | a9d6ebfa836633a1224b48324baef081aaa9edbe /Library/Formula | |
| parent | 306f91ede7203ed87ef1689ca189ba16a46e4388 (diff) | |
| download | homebrew-e8e8e9251b221f5ba76cbf5632b6652cacb9de40.tar.bz2 | |
clojure: remove, blacklist in favour of leiningen.
Closes #21733.
Closes #21782.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/clojure.rb | 49 | ||||
| -rw-r--r-- | Library/Formula/leiningen.rb | 1 |
2 files changed, 1 insertions, 49 deletions
diff --git a/Library/Formula/clojure.rb b/Library/Formula/clojure.rb deleted file mode 100644 index 7b665849f..000000000 --- a/Library/Formula/clojure.rb +++ /dev/null @@ -1,49 +0,0 @@ -require 'formula' - -class Clojure < Formula - homepage 'http://clojure.org/' - url 'http://repo1.maven.org/maven2/org/clojure/clojure/1.5.1/clojure-1.5.1.zip' - sha1 '90d09dff6e6ded4382d06ff3b3ab03be471fcab2' - - head 'https://github.com/clojure/clojure.git' - - depends_on 'rlwrap' => :optional - - def script - if build.with? 'rlwrap' - rlwrap = "rlwrap " - else - rlwrap = "" - end - <<-EOS.undent - #!/bin/sh - # Clojure wrapper script. - # With no arguments runs Clojure's REPL. - - # Put the Clojure jar from the cellar and the current folder in the classpath. - CLOJURE=$CLASSPATH:#{prefix}/#{jar}:${PWD} - - if [ "$#" -eq 0 ]; then - #{rlwrap}java -cp "$CLOJURE" clojure.main --repl - else - java -cp "$CLOJURE" clojure.main "$@" - fi - EOS - end - - def jar - "clojure-#{version}.jar" - end - - def install - system "ant" if build.head? - prefix.install jar - (prefix+jar).chmod(0644) # otherwise it's 0600 - (prefix+'classes').mkpath - (bin+'clj').write script - end - - def test - system "#{bin}/clj", "-e", '(println "Hello World")' - end -end diff --git a/Library/Formula/leiningen.rb b/Library/Formula/leiningen.rb index 03a30b962..dec406f43 100644 --- a/Library/Formula/leiningen.rb +++ b/Library/Formula/leiningen.rb @@ -26,6 +26,7 @@ class Leiningen < Formula def caveats; <<-EOS.undent Dependencies will be installed to: $HOME/.m2/repository + To play around with Clojure run `lein repl` or `lein help`. EOS end end |
