From 235576964660fbf63fedd22eb21acd396a3aeac5 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Fri, 28 Apr 2023 10:34:56 -0400 Subject: [PATCH] git-cliff 1.2.0 git-cliff: switch to `libgit2` Co-authored-by: Ruoyu Zhong --- Formula/git-cliff.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Formula/git-cliff.rb b/Formula/git-cliff.rb index f70dbd9e05b71..b4d04e86c2c2d 100644 --- a/Formula/git-cliff.rb +++ b/Formula/git-cliff.rb @@ -1,10 +1,9 @@ class GitCliff < Formula desc "Highly customizable changelog generator" homepage "https://github.com/orhun/git-cliff" - url "https://github.com/orhun/git-cliff/archive/refs/tags/v1.1.2.tar.gz" - sha256 "26f05e4cfea07768d06ae92cd4b34bae786ed354089d9b5b1659d6408bf583c6" + url "https://github.com/orhun/git-cliff/archive/refs/tags/v1.2.0.tar.gz" + sha256 "10db6fd8fe777f384de2e00336b1cb664095a2f068526f8ace4e7944a7ada270" license "GPL-3.0-only" - revision 1 bottle do sha256 cellar: :any, arm64_ventura: "e5dcb55037110786129976cfa7406f37719eceba17df62988f90c1a4470f6b9d" @@ -18,7 +17,7 @@ class GitCliff < Formula depends_on "pkg-config" => :build depends_on "rust" => :build - depends_on "libgit2@1.5" + depends_on "libgit2" def install system "cargo", "install", *std_cargo_args(path: "git-cliff") @@ -43,7 +42,7 @@ def install linkage_with_libgit2 = (bin/"git-cliff").dynamically_linked_libraries.any? do |dll| next false unless dll.start_with?(HOMEBREW_PREFIX.to_s) - File.realpath(dll) == (Formula["libgit2@1.5"].opt_lib/shared_library("libgit2")).realpath.to_s + File.realpath(dll) == (Formula["libgit2"].opt_lib/shared_library("libgit2")).realpath.to_s end assert linkage_with_libgit2, "No linkage with libgit2! Cargo is likely using a vendored version."