26 lines
742 B
Ruby
26 lines
742 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.6.7/orc-tools-1.6.7-uber.jar"
|
|
sha256 "ade496bf92a2a52f6008e18e1431d770801a93c74dfa0f863cb66b7e9f06b44e"
|
|
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 :unneeded
|
|
|
|
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
|