28 lines
856 B
Ruby
28 lines
856 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.10/orc-tools-1.6.10-uber.jar"
|
|
sha256 "fda47ceb1754490ef800d97e43e691705c3386f9b33e27996c04179452da1206"
|
|
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: "cae0d8cb619153d89afebf5d2963559ce3e5294fe0527cd71d0f1690b3eebd04"
|
|
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
|