blob: 87f93d945a83289c880175a9aa4d2006e397a6bd (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
|
require 'formula'
require 'find'
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'
md5 '5114f611836957f479c1f2060b20beb3'
# This startup script for Scalate calls the real startup script installed
# to Homebrew's cellar. This avoids issues with local vs. absolute symlinks.
def startup_script; <<-EOS.undent
#!/bin/bash
"#{libexec}/bin/scalate" "$@"
EOS
end
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|
Find.find(name) do |path|
if File.file?(path)
File.chmod(0644, path)
end
end
end
prefix.install %w{ license.txt readme.html }
libexec.install Dir['*']
(bin+'scalate').write startup_script
end
def caveats; <<-EOS.undent
Scalate was installed to:
#{libexec}
EOS
end
end
|