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.7.3/orc-tools-1.7.3-uber.jar"
sha256 "269e58e097401d07b994c0b1f5397a9b8ab92d43fad3a1bdf0f9e1b96d6fc86e"
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: "1d5e857435c24e6e80ac746679e6ad0e7abe1fb75b7db0ea6690e72cc5356594"
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