Clojure 1.4.0

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Julien Blanchard 2012-04-16 17:53:37 +02:00 committed by Adam Vandenberg
parent 57548dd29e
commit 5d94cf0534

View file

@ -1,8 +1,8 @@
require 'formula'
class Clojure < Formula
url 'http://repo1.maven.org/maven2/org/clojure/clojure/1.3.0/clojure-1.3.0.zip'
md5 'de91ee9914017a38c7cc391ab8fcbc1a'
url 'http://repo1.maven.org/maven2/org/clojure/clojure/1.4.0/clojure-1.4.0.zip'
md5 'db17baaea5bc90687c6293260499cca8'
head 'https://github.com/clojure/clojure.git'
homepage 'http://clojure.org/'
@ -12,7 +12,7 @@ class Clojure < Formula
# With no arguments runs Clojure's REPL.
# Put the Clojure jar from the cellar and the current folder in the classpath.
CLOJURE=$CLASSPATH:#{prefix}/clojure-1.3.0.jar:${PWD}
CLOJURE=$CLASSPATH:#{prefix}/clojure-1.4.0.jar:${PWD}
if [ "$#" -eq 0 ]; then
java -cp "$CLOJURE" clojure.main --repl
@ -24,8 +24,8 @@ class Clojure < Formula
def install
system "ant" if ARGV.build_head?
prefix.install 'clojure-1.3.0.jar'
(prefix+'clojure-1.3.0.jar').chmod(0644) # otherwise it's 0600
prefix.install 'clojure-1.4.0.jar'
(prefix+'clojure-1.4.0.jar').chmod(0644) # otherwise it's 0600
(prefix+'classes').mkpath
(bin+'clj').write script
end