homebrew-core/Formula/orc-tools.rb

28 lines
854 B
Ruby

class OrcTools < Formula
desc "ORC java command-line tools and utilities"
homepage "https://orc.apache.org/"
url "https://search.maven.org/remotecontent?filepath=org/apache/orc/orc-tools/1.8.1/orc-tools-1.8.1-uber.jar"
sha256 "5014773914c975145003b01b3231ded6cf7ecf070def6d66156df882d035f7ca"
license "Apache-2.0"
livecheck do
url "https://search.maven.org/remotecontent?filepath=org/apache/orc/orc-tools/"
regex(%r{href=["']?v?(\d+(?:\.\d+)+)/?["' >]}i)
end
bottle do
sha256 cellar: :any_skip_relocation, all: "8cc905935e60d9fcb68dae57779a167c938dce8298fb20888df4f39d4c4c44b7"
end
depends_on "openjdk"
def install
libexec.install "orc-tools-#{version}-uber.jar"
bin.write_jar_script libexec/"orc-tools-#{version}-uber.jar", "orc-tools"
end
test do
system "#{bin}/orc-tools", "meta", "-h"
end
end