diff --git a/Formula/orc-tools.rb b/Formula/orc-tools.rb new file mode 100644 index 00000000000..b486c25dd66 --- /dev/null +++ b/Formula/orc-tools.rb @@ -0,0 +1,18 @@ +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.2.3/orc-tools-1.2.3-uber.jar" + version "1.2.3" + sha256 "6969df89f24eab45ed4f1471b0296b7eaef9853e4e76c273e820170b6f18506d" + + 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