2010-04-28 11:47:13 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Scalate <Formula
|
2010-07-30 14:35:09 +00:00
|
|
|
url 'http://repo1.maven.org/maven2/org/fusesource/scalate/scalate-distro/1.2/scalate-distro-1.2-unix-bin.tar.gz'
|
|
|
|
version '1.2'
|
2010-04-28 11:47:13 +00:00
|
|
|
homepage 'http://scalate.fusesource.org/'
|
2010-07-30 14:35:09 +00:00
|
|
|
md5 '20b8c3922f24043ae5118aa35efb5791'
|
2010-04-28 11:47:13 +00:00
|
|
|
|
|
|
|
def startup_script
|
|
|
|
<<-EOS.undent
|
2010-04-07 05:58:35 +00:00
|
|
|
#!/bin/bash
|
2010-04-28 11:47:13 +00:00
|
|
|
# This startup script for Scalate calls the real startup script installed
|
|
|
|
# to Homebrew's cellar. This avoids issues with local vs. absolute symlinks.
|
|
|
|
|
|
|
|
#{libexec}/bin/scalate $*
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
rm_f Dir["bin/*.bat"]
|
|
|
|
|
|
|
|
prefix.install %w{ LICENSE.txt ReadMe.html }
|
|
|
|
libexec.install Dir['*']
|
|
|
|
|
|
|
|
(bin+'scalate').write startup_script
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
<<-EOS.undent
|
|
|
|
Software was installed to:
|
|
|
|
#{libexec}
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|