88779ade49
Closes Homebrew/homebrew#14653.
23 lines
683 B
Ruby
23 lines
683 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'
|
|
sha1 '436523a5fab41f3096748de047ed4ea6d3efa3ef'
|
|
|
|
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
|