Skip to content

Commit a779c21

Browse files
authored
Merge pull request #203752 from Homebrew/git-cliff-libgit2-1.9
git-cliff: update to use libgit2 1.9
2 parents 8329aec + e2cec07 commit a779c21

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

Formula/g/git-cliff.rb

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,26 @@ class GitCliff < Formula
44
url "https://github.com/orhun/git-cliff/archive/refs/tags/v2.7.0.tar.gz"
55
sha256 "7b9a74f0871983bf5c326ffd7358ba46925f14a6feb1638c8c1e5d6b36448eae"
66
license all_of: ["Apache-2.0", "MIT"]
7-
revision 1
7+
revision 2
88

99
bottle do
10-
sha256 cellar: :any, arm64_sequoia: "aedb37147d3717146ef417f2250aa77e73ec5f728b33376e37fe5d1dd05cbfff"
11-
sha256 cellar: :any, arm64_sonoma: "13f0ec24c3b22b8eb69ff5b383c6efb31a44a2e63f5024bc1b4aa564501d9d1e"
12-
sha256 cellar: :any, arm64_ventura: "a25395c75240a577fc7a6c07a38230b151dded1ad86f298ce9bda9391e9c4678"
13-
sha256 cellar: :any, sonoma: "86fcc21689a42c144baa68d22288e76d1e84b7161586b5271b1c407758e9e4eb"
14-
sha256 cellar: :any, ventura: "33909965790ebad4b95b7439df2902232c0541aba3d4ab930d09f57b00952004"
15-
sha256 cellar: :any_skip_relocation, x86_64_linux: "65783fb1e6349664f752ab2d87c3dcd9efae6193ce25f353e9ffd09dfb3f1641"
10+
sha256 cellar: :any, arm64_sequoia: "c0b3c51c4e0acf10cc05d274fe62490f4f71480f304fc99d367ccc05405f9871"
11+
sha256 cellar: :any, arm64_sonoma: "ab69ab2b69d6ced04fbfebfd58f7c0dc8846f9c177398fe00711ae1f9589c5c3"
12+
sha256 cellar: :any, arm64_ventura: "e8087d7374b0e27975691c07dac781330cd335c14469510c03812ef466d94f34"
13+
sha256 cellar: :any, sonoma: "f607863bf8a829f4dd905e90bb66e01b1b6ef2c2a1bba1a3f2cd63abb9b45b88"
14+
sha256 cellar: :any, ventura: "a11a9463dd9f4b7527747ed0f7bd32bdc55672d484bd8f762d4638bcea7edb53"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "dca33fff18fdf624befd45cce3bd2e7ce53a7040bfe0e2c5fddd6d53e55620c5"
1616
end
1717

1818
depends_on "pkgconf" => :build
1919
depends_on "rust" => :build
20-
depends_on "[email protected]" # needs https://github.com/rust-lang/git2-rs/issues/1109 to support libgit2 1.9
20+
depends_on "libgit2"
21+
22+
# patch to build with libgit2 1.9, upstream pr ref, https://github.com/orhun/git-cliff/pull/1002
23+
patch do
24+
url "https://github.com/orhun/git-cliff/commit/ff4bfb112d7ac72cbd759718f6fc96c708684f4f.patch?full_index=1"
25+
sha256 "647235c0db29b56bb54c72c3bf89087bdd0abfe96a65773627d0937e323d1bdb"
26+
end
2127

2228
def install
2329
ENV["LIBGIT2_NO_VENDOR"] = "1"
@@ -62,7 +68,7 @@ def install
6268
linkage_with_libgit2 = (bin/"git-cliff").dynamically_linked_libraries.any? do |dll|
6369
next false unless dll.start_with?(HOMEBREW_PREFIX.to_s)
6470

65-
File.realpath(dll) == (Formula["libgit2@1.8"].opt_lib/shared_library("libgit2")).realpath.to_s
71+
File.realpath(dll) == (Formula["libgit2"].opt_lib/shared_library("libgit2")).realpath.to_s
6672
end
6773

6874
assert linkage_with_libgit2, "No linkage with libgit2! Cargo is likely using a vendored version."

0 commit comments

Comments
 (0)