blob: 12314b8fa7196115f936ddcbce799a3500b66eae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
require 'formula'
class Scalate < Formula
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
# 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
prefix.install_metafiles
libexec.install Dir['*']
bin.write_exec_script libexec/'bin/scalate'
end
def caveats; <<-EOS.undent
Scalate was installed to:
#{libexec}
EOS
end
end
|