Skip to content

Commit

Permalink
avro-tools 1.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Nov 19, 2024
1 parent 32da1c3 commit 9801e08
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions Formula/a/avro-tools.rb
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
class AvroTools < Formula
desc "Avro command-line tools and utilities"
homepage "https://avro.apache.org/"
# Upstreams tar.gz can't be opened by bsdtar on macOS
# https://github.com/Homebrew/homebrew-core/pull/146296#issuecomment-1737945877
# https://apple.stackexchange.com/questions/197839/why-is-extracting-this-tgz-throwing-an-error-on-my-mac-but-not-on-linux
url "https://github.com/apache/avro.git",
tag: "release-1.11.3",
revision: "35ff8b997738e4d983871902d47bfb67b3250734"
url "https://www.apache.org/dyn/closer.lua?path=avro/avro-1.12.0/java/avro-tools-1.12.0.jar"
mirror "https://archive.apache.org/dist/avro/avro-1.12.0/java/avro-tools-1.12.0.jar"
sha256 "63b6c890a3aceba69c2ea7d2033c9d1e62d0837d13121b4ce01aea856f72a018"
license "Apache-2.0"

bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, all: "0c9a211ec08bf395ec8ee998b5ba200da009d31918e1046b8fc4560d8c6fb57a"
end

depends_on "maven" => :build
depends_on "openjdk"

def install
cd "lang/java" do
system "mvn", "clean", "--projects", "tools", "package", "-DskipTests"
libexec.install "#{buildpath}/lang/java/tools/target/avro-tools-#{version}.jar"
bin.write_jar_script libexec/"avro-tools-#{version}.jar", "avro-tools"
end
libexec.install "avro-tools-#{version}.jar"
bin.write_jar_script libexec/"avro-tools-#{version}.jar", "avro-tools"
end

test do
Expand Down

0 comments on commit 9801e08

Please sign in to comment.