2010-04-28 11:47:13 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Scalate < Formula
|
2012-03-11 21:57:52 +00:00
|
|
|
homepage 'http://scalate.fusesource.org/'
|
2011-11-19 13:08:04 +00:00
|
|
|
url 'http://repo.fusesource.com/nexus/content/repositories/public/org/fusesource/scalate/scalate-distro/1.5.3/scalate-distro-1.5.3-unix-bin.tar.gz'
|
|
|
|
version '1.5.3'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '17e3cd6252b36c9cf80566738299c7e19df957bf'
|
2010-04-28 11:47:13 +00:00
|
|
|
|
|
|
|
def install
|
2012-03-11 21:57:52 +00:00
|
|
|
# Recursively fix the permissions of extracted regular files
|
|
|
|
# excluding the bin directory contents.
|
2011-06-11 14:18:40 +00:00
|
|
|
%w{ archetypes docs lib samples license.txt readme.html }.each do |name|
|
2012-08-20 00:25:15 +00:00
|
|
|
Pathname.new(name).find { |path| path.chmod(0644) if path.file? }
|
2011-06-11 14:18:40 +00:00
|
|
|
end
|
|
|
|
|
2012-11-11 19:20:09 +00:00
|
|
|
prefix.install_metafiles
|
2010-04-28 11:47:13 +00:00
|
|
|
libexec.install Dir['*']
|
2012-10-30 18:36:36 +00:00
|
|
|
bin.write_exec_script libexec/'bin/scalate'
|
2010-04-28 11:47:13 +00:00
|
|
|
end
|
|
|
|
|
2012-03-11 21:57:52 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Scalate was installed to:
|
2010-04-28 11:47:13 +00:00
|
|
|
#{libexec}
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|