Skip to content

Commit

Permalink
git-cliff 1.2.0
Browse files Browse the repository at this point in the history
git-cliff: switch to `libgit2`

Co-authored-by: Ruoyu Zhong <zhongruoyu@outlook.com>
  • Loading branch information
chenrui333 and ZhongRuoyu committed Apr 28, 2023
1 parent 0eaf909 commit 2355769
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Formula/git-cliff.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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")
Expand All @@ -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."
Expand Down

0 comments on commit 2355769

Please sign in to comment.