homebrew-core/Formula/sbt.rb

19 lines
366 B
Ruby
Raw Normal View History

require 'formula'
class Sbt <Formula
JAR = 'sbt-launch-0.7.0.jar'
2009-09-30 15:18:16 +00:00
url "http://simple-build-tool.googlecode.com/files/#{JAR}"
homepage 'http://code.google.com/p/simple-build-tool'
md5 '19275aa32369683c6a92de9394da822b'
2009-09-30 15:18:16 +00:00
def install
2009-09-30 15:18:16 +00:00
(bin+'sbt').write <<-EOS
#!/bin/sh
2009-09-30 15:18:16 +00:00
java -Xmx512M -jar #{prefix}/#{JAR} "$@"
EOS
prefix.install Dir['*']
end
end