homebrew-core/Formula/scalate.rb

27 lines
794 B
Ruby
Raw Normal View History

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/'
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'
sha1 '17e3cd6252b36c9cf80566738299c7e19df957bf'
def install
2012-03-11 21:57:52 +00:00
# Recursively fix the permissions of extracted regular files
# excluding the bin directory contents.
%w{ archetypes docs lib samples license.txt readme.html }.each do |name|
Pathname.new(name).find { |path| path.chmod(0644) if path.file? }
end
2012-11-11 19:20:09 +00:00
prefix.install_metafiles
libexec.install Dir['*']
bin.write_exec_script libexec/'bin/scalate'
end
2012-03-11 21:57:52 +00:00
def caveats; <<-EOS.undent
Scalate was installed to:
#{libexec}
EOS
end
end