2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-11 21:32:10 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Sbt < Formula
|
2012-10-10 20:02:37 +00:00
|
|
|
homepage 'http://www.scala-sbt.org'
|
2014-04-14 23:34:48 +00:00
|
|
|
url 'http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.2/sbt-launch.jar'
|
|
|
|
version '0.13.2'
|
|
|
|
sha1 'd3237161dc38afd796d9e84ff202f8418cff98e2'
|
2013-03-19 12:16:30 +00:00
|
|
|
|
2013-11-23 19:56:37 +00:00
|
|
|
devel do
|
2014-05-15 09:29:25 +00:00
|
|
|
url 'http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.5-RC3/sbt-launch.jar'
|
|
|
|
version '0.13.5-RC3'
|
|
|
|
sha1 '7dfc21df7ae3c3a60752bcc4fe424543836d144b'
|
2013-11-23 19:56:37 +00:00
|
|
|
end
|
|
|
|
|
2009-09-11 21:32:10 +00:00
|
|
|
def install
|
2010-12-31 07:33:59 +00:00
|
|
|
(bin+'sbt').write <<-EOS.undent
|
|
|
|
#!/bin/sh
|
2011-06-04 03:03:21 +00:00
|
|
|
test -f ~/.sbtconfig && . ~/.sbtconfig
|
2014-04-28 21:39:45 +00:00
|
|
|
exec java -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M ${SBT_OPTS} -jar #{libexec}/sbt-launch.jar "$@"
|
2010-12-31 07:33:59 +00:00
|
|
|
EOS
|
2009-09-11 21:32:10 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
libexec.install Dir['*']
|
2009-09-11 21:32:10 +00:00
|
|
|
end
|
2010-12-31 07:33:59 +00:00
|
|
|
|
2011-06-04 03:03:21 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
You can use $SBT_OPTS to pass additional JVM options to SBT.
|
2014-04-30 08:28:39 +00:00
|
|
|
For convenience, this can be specified in `~/.sbtconfig`.
|
2010-12-31 07:33:59 +00:00
|
|
|
|
2011-06-04 03:03:21 +00:00
|
|
|
For example:
|
|
|
|
SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"
|
2010-12-31 07:33:59 +00:00
|
|
|
EOS
|
|
|
|
end
|
2009-09-11 21:32:10 +00:00
|
|
|
end
|