34 lines
1.1 KiB
Ruby
34 lines
1.1 KiB
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.6.6/vault-cli-3.6.6-bin.tar.gz"
|
|
sha256 "196a61d448b3a4bb9ecca0eae9efa21f9900215cfea6d4e936f55b2728f193fc"
|
|
license "Apache-2.0"
|
|
head "https://github.com/apache/jackrabbit-filevault.git", branch: "master"
|
|
|
|
livecheck do
|
|
url "https://search.maven.org/remotecontent?filepath=org/apache/jackrabbit/vault/vault-cli/"
|
|
regex(%r{href=["']?v?(\d+(?:\.\d+)+)/?["' >]}i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "5927cf764c4af987fdcbe3df4700b05241085d022442c612a17bc9f2e508da43"
|
|
end
|
|
|
|
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
|