homebrew-core/Formula/avro-tools.rb
2019-05-15 16:33:00 +02:00

17 lines
546 B
Ruby

class AvroTools < Formula
desc "Avro command-line tools and utilities"
homepage "https://avro.apache.org/"
url "https://www.apache.org/dyn/closer.cgi?path=avro/avro-1.9.0/java/avro-tools-1.9.0.jar"
sha256 "09e2556753c0c0a6983b43a198f1bdd0487d33095bd6f4e563851e6f6e53901e"
bottle :unneeded
def install
libexec.install "avro-tools-#{version}.jar"
bin.write_jar_script libexec/"avro-tools-#{version}.jar", "avro-tools"
end
test do
assert_match "Version #{version}", shell_output("#{bin}/avro-tools 2>&1", 1)
end
end