homebrew-core/Formula/savana.rb

27 lines
779 B
Ruby

class Savana < Formula
desc "Transactional workspaces for SVN"
homepage "https://github.com/codehaus/savana"
url "https://bintray.com/artifact/download/bintray/jcenter/org/codehaus/savana/1.2/savana-1.2-install.tar.gz"
sha256 "608242a0399be44f41ff324d40e82104b3c62908bc35177f433dcfc5b0c9bf55"
license "LGPL-3.0"
bottle :unneeded
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.write_exec_script libexec/"bin/sav"
bash_completion.install "etc/bash_completion" => "savana-completion.bash"
end
test do
system "#{bin}/sav", "help"
end
end