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.0/orc-tools-1.8.0-uber.jar"
sha256 "4f320ae642071f2514cfc996f6a8e9b8f06272822eef141e7b063e5636194dcb"
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: "018b34e4c2ba5e0df099200574d9f27db8f433ee5fe490397a15254ec9a4a58c"
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