homebrew-core/Formula/savana.rb
Jack Nagel 0c89a5c8dd Remove redundant versions and update version tests
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-11 15:18:56 -05:00

30 lines
877 B
Ruby

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'
md5 'cb0d5907540799d7d48fc23ca80f6b0f'
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
# Install the Savana bash completion file, renaming it to be specific to savana.
(prefix+'etc/bash_completion.d').install 'etc/bash_completion' => 'savana-completion.bash'
end
def caveats; <<-EOS.undent
Bash completion has been installed to:
#{etc}/bash_completion.d
EOS
end
end