18 lines
537 B
Ruby
18 lines
537 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.2/orc-tools-1.6.2-uber.jar"
|
|
sha256 "1b0aade855761574e073fdb21d6a58f1d8ba945174730a4200f557527f88b4f0"
|
|
|
|
bottle :unneeded
|
|
|
|
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
|