aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Strachan2010-04-28 12:47:13 +0100
committerAdam Vandenberg2010-04-29 08:46:31 -0700
commit5ded6382038439be1aadd8bd7b61babfbfd39f2b (patch)
treeb317991e17d842e06cdd96d403e5c13b98e774e5
parent56d6e5da0e4831922ca4b2560ce753f067d9ae51 (diff)
downloadhomebrew-5ded6382038439be1aadd8bd7b61babfbfd39f2b.tar.bz2
Scalate 1.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com> * Tweaked comments and whitespace
-rw-r--r--Library/Formula/scalate.rb34
1 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/scalate.rb b/Library/Formula/scalate.rb
new file mode 100644
index 000000000..d271b2922
--- /dev/null
+++ b/Library/Formula/scalate.rb
@@ -0,0 +1,34 @@
+require 'formula'
+
+class Scalate <Formula
+ url 'http://repo1.maven.org/maven2/org/fusesource/scalate/scalate-distro/1.1/scalate-distro-1.1-unix-bin.tar.gz'
+ version '1.1'
+ homepage 'http://scalate.fusesource.org/'
+ md5 'fbbca51775da58464e1eddd30c736596'
+
+ def startup_script
+ <<-EOS.undent
+ #!/usr/bin/env bash
+ # 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