SBT formula
A simple build tool for Scala projects that aims to do the basics well. It requires Java 1.5 or later.
This commit is contained in:
parent
70796e44a6
commit
8a8359159a
1 changed files with 27 additions and 0 deletions
27
Formula/sbt.rb
Normal file
27
Formula/sbt.rb
Normal file
|
@ -0,0 +1,27 @@
|
|||
require 'brewkit'
|
||||
|
||||
# even though "file -b" reports this as a zip archive, it's just a binary
|
||||
class 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'
|
||||
|
||||
def install
|
||||
sbt_exec = bin+'sbt'
|
||||
sbt_exec.write <<-EOS
|
||||
#!/bin/sh
|
||||
|
||||
java -Xmx512M -jar #{prefix}/sbt-launcher-0.5.3.jar "$@"
|
||||
EOS
|
||||
|
||||
File.chmod(0755, sbt_exec)
|
||||
|
||||
prefix.install Dir['*']
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue