diff options
| author | Jon Buffington | 2011-06-11 10:18:40 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-13 13:50:40 -0700 |
| commit | feb0e1e57a263a2b50599295406baf2368018aeb (patch) | |
| tree | 493f9c88de6083c2c88b2eaf47877e1aafb94ca4 /Library/Formula | |
| parent | 36b7066ae38f6633a045b8da3726d4d0b6abc6fe (diff) | |
| download | homebrew-feb0e1e57a263a2b50599295406baf2368018aeb.tar.bz2 | |
scalate 1.5.0
Fix the UNIX archive file permissions after extracting the files.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/scalate.rb | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/Library/Formula/scalate.rb b/Library/Formula/scalate.rb index 894c9fa87..04e411b83 100644 --- a/Library/Formula/scalate.rb +++ b/Library/Formula/scalate.rb @@ -1,10 +1,11 @@ require 'formula' +require 'find' class Scalate < Formula - url 'http://repo.fusesource.com/nexus/content/repositories/public/org/fusesource/scalate/scalate-distro/1.4.1/scalate-distro-1.4.1-unix-bin.tar.gz' - version '1.4.1' + url 'http://repo.fusesource.com/nexus/content/repositories/public/org/fusesource/scalate/scalate-distro/1.5.0/scalate-distro-1.5.0-unix-bin.tar.gz' + version '1.5.0' homepage 'http://scalate.fusesource.org/' - md5 'ed58ac43592bdbb15148a5453b254cee' + md5 '7574d29b29c05c086f1fa977f23ed4a5' def startup_script <<-EOS.undent @@ -17,9 +18,17 @@ class Scalate < Formula end def install - rm_f Dir["bin/*.bat"] - prefix.install %w{ LICENSE.txt ReadMe.html } + # 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 |
