aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorLuke Amdor2009-09-30 10:18:16 -0500
committerMax Howell2009-09-30 17:45:34 +0100
commit9909fd44a4748d25e14fcca79e6289fdf2b8063f (patch)
treee0f451140d5f9066f734e46a6c747a34cb54e44f /Library/Formula
parentf3d1d10045b44003a305666c9c3bcce784289bdb (diff)
downloadhomebrew-9909fd44a4748d25e14fcca79e6289fdf2b8063f.tar.bz2
Updated sbt to 0.5.5
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sbt.rb20
1 files changed, 11 insertions, 9 deletions
diff --git a/Library/Formula/sbt.rb b/Library/Formula/sbt.rb
index a47566a30..0ffa20b9d 100644
--- a/Library/Formula/sbt.rb
+++ b/Library/Formula/sbt.rb
@@ -1,27 +1,29 @@
require 'brewkit'
# even though "file -b" reports this as a zip archive, it's just a binary
-class HttpDownloadStrategy
+class SbtHttpDownloadStrategy <HttpDownloadStrategy
def stage
FileUtils.mv @dl, File.basename(@url)
end
end
class Sbt <Formula
- @url='http://simple-build-tool.googlecode.com/files/sbt-launcher-0.5.3.jar'
- @homepage='http://code.google.com/p/simple-build-tool'
- @md5='ff1a0b6da067573b8a06e4b07707b562'
+ JAR = 'sbt-launcher-0.5.5.jar'
+ url "http://simple-build-tool.googlecode.com/files/#{JAR}"
+ homepage 'http://code.google.com/p/simple-build-tool'
+ md5 'e3593448b3be17ce1666c6241b8d2f90'
+
+ def download_strategy
+ SbtHttpDownloadStrategy
+ end
def install
- sbt_exec = bin+'sbt'
- sbt_exec.write <<-EOS
+ (bin+'sbt').write <<-EOS
#!/bin/sh
-java -Xmx512M -jar #{prefix}/sbt-launcher-0.5.3.jar "$@"
+java -Xmx512M -jar #{prefix}/#{JAR} "$@"
EOS
- File.chmod(0755, sbt_exec)
-
prefix.install Dir['*']
end
end