homebrew-core/Formula/savana.rb
Brandon Beck 57c8c564c2 savana 1.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-02-18 14:53:50 -08:00

31 lines
893 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'
version '1.2'
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