homebrew-core/Formula/avro-tools.rb

19 lines
631 B
Ruby

class AvroTools < Formula
desc "Avro command-line tools and utilities"
homepage "https://avro.apache.org/"
url "https://www.apache.org/dyn/closer.lua?path=avro/avro-1.9.2/java/avro-tools-1.9.2.jar"
mirror "https://archive.apache.org/dist/avro/avro-1.9.2/java/avro-tools-1.9.2.jar"
sha256 "ca771b70d53852735da9132bfe0c2651cfcbe38bba8094d8beb0a13bb8f43529"
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