scalate 1.5.0
Fix the UNIX archive file permissions after extracting the files. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
de58aeca70
commit
658f246135
1 changed files with 14 additions and 5 deletions
|
@ -1,10 +1,11 @@
|
||||||
require 'formula'
|
require 'formula'
|
||||||
|
require 'find'
|
||||||
|
|
||||||
class Scalate < Formula
|
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'
|
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.4.1'
|
version '1.5.0'
|
||||||
homepage 'http://scalate.fusesource.org/'
|
homepage 'http://scalate.fusesource.org/'
|
||||||
md5 'ed58ac43592bdbb15148a5453b254cee'
|
md5 '7574d29b29c05c086f1fa977f23ed4a5'
|
||||||
|
|
||||||
def startup_script
|
def startup_script
|
||||||
<<-EOS.undent
|
<<-EOS.undent
|
||||||
|
@ -17,9 +18,17 @@ class Scalate < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
def install
|
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['*']
|
libexec.install Dir['*']
|
||||||
|
|
||||||
(bin+'scalate').write startup_script
|
(bin+'scalate').write startup_script
|
||||||
|
|
Loading…
Reference in a new issue