homebrew-core/Formula/vault-cli.rb

32 lines
1022 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.10/vault-cli-3.4.10-bin.tar.gz"
sha256 "ff50b7f38b4398ffbc215f5f10113c1700ac2ab1960644b31601da3d6cef23ae"
license "Apache-2.0"
head "https://github.com/apache/jackrabbit-filevault.git"
livecheck do
url "https://search.maven.org/remotecontent?filepath=org/apache/jackrabbit/vault/vault-cli/"
regex(%r{href=["']?v?(\d+(?:\.\d+)+)/?["' >]}i)
end
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