aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/clojure.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/clojure.rb')
-rw-r--r--Library/Formula/clojure.rb18
1 files changed, 6 insertions, 12 deletions
diff --git a/Library/Formula/clojure.rb b/Library/Formula/clojure.rb
index 741657592..d40b7e93e 100644
--- a/Library/Formula/clojure.rb
+++ b/Library/Formula/clojure.rb
@@ -2,24 +2,18 @@ require 'formula'
class Clojure <Formula
url 'http://clojure.googlecode.com/files/clojure_1.0.0.zip'
+ md5 'e7a50129040df7fe52287006988ecbb2'
head 'git://github.com/richhickey/clojure.git'
homepage 'http://clojure.org/'
- md5 'e7a50129040df7fe52287006988ecbb2'
JAR = "clojure-1.0.0.jar"
+ def script
+ DATA.read.gsub 'CLOJURE_JAR_PATH_PLACEHOLDER', prefix+JAR
+ end
+
def install
prefix.install JAR
-
- # create helpful scripts to start clojure
- bin.mkdir
- clojure_exec = bin + 'clj'
-
- script = DATA.read
- script.sub! "CLOJURE_JAR_PATH_PLACEHOLDER", "#{prefix}/#{JAR}"
-
- clojure_exec.write script
-
- File.chmod(0755, clojure_exec)
+ (bin+'clj').write(script)
end
end