2011-10-05 22:07:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Savana < Formula
|
|
|
|
homepage 'http://savana.codehaus.org'
|
|
|
|
url 'http://repository.codehaus.org/org/codehaus/savana/1.2/savana-1.2-install.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '436523a5fab41f3096748de047ed4ea6d3efa3ef'
|
2011-10-05 22:07:50 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# Remove Windows files
|
|
|
|
rm_rf Dir['bin/*.{bat,cmd}']
|
|
|
|
|
|
|
|
prefix.install %w{ COPYING COPYING.LESSER licenses svn-hooks }
|
|
|
|
|
|
|
|
# lib/* and logging.properties are loaded relative to bin
|
|
|
|
libexec.install %w[bin lib logging.properties]
|
|
|
|
(bin+'sav').write <<-EOS.undent
|
|
|
|
#!/bin/bash
|
|
|
|
exec "#{libexec}/bin/sav" "$@"
|
|
|
|
EOS
|
|
|
|
|
|
|
|
(prefix+'etc/bash_completion.d').install 'etc/bash_completion' => 'savana-completion.bash'
|
|
|
|
end
|
|
|
|
end
|