homebrew-core/Formula/vault-cli.rb

27 lines
842 B
Ruby

class VaultCli < Formula
desc "Subversion-like utility to work with Jackrabbit FileVault"
homepage "https://jackrabbit.apache.org/filevault/index.html"
url "https://search.maven.org/remotecontent?filepath=org/apache/jackrabbit/vault/vault-cli/3.4.2/vault-cli-3.4.2-bin.tar.gz"
sha256 "316052e9f6bf22f35f3b4b477d46ce6c6e17ff9de6d6788b82eba61506088f75"
revision 1
head "https://github.com/apache/jackrabbit-filevault.git"
bottle :unneeded
depends_on "openjdk"
def install
# Remove windows files
rm_f Dir["bin/*.bat"]
libexec.install Dir["*"]
bin.install Dir["#{libexec}/bin/*"]
bin.env_script_all_files(libexec/"bin", :JAVA_HOME => Formula["openjdk"].opt_prefix)
end
test do
# Bad test, but we're limited without a Jackrabbit repo to speak to...
system "#{bin}/vlt", "--version"
end
end