aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-12-31 03:13:27 +0000
committerMax Howell2009-12-31 03:13:27 +0000
commit7c4d32ae256be9409a168c4bd05fccea6a015b1c (patch)
treeac205d415c103dd8083f38244859655a188f1b04 /Library
parentbd580f263111e3b442a05818d8f939a7f6a39cf3 (diff)
downloadhomebrew-7c4d32ae256be9409a168c4bd05fccea6a015b1c.tar.bz2
Simplified Clojure formula
Just felt like it guv'n'r.
Diffstat (limited to 'Library')
-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