Skip to content

Commit 09f4f0d

Browse files
committed
eza: update to use libgit2 1.9
Signed-off-by: Rui Chen <[email protected]>
1 parent 9fd48be commit 09f4f0d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Formula/e/eza.rb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Eza < Formula
44
url "https://github.com/eza-community/eza/archive/refs/tags/v0.20.15.tar.gz"
55
sha256 "cbb50e61b35b06ccf487ee6cc88d3b624931093546194dd5a2bbd509ed1786d6"
66
license "EUPL-1.2"
7-
revision 1
7+
revision 2
88

99
bottle do
1010
sha256 cellar: :any, arm64_sequoia: "505abe73711da7a64e6a16552872ca759ed535ed3e3a15be323a7a0ee54fbbc6"
@@ -18,7 +18,13 @@ class Eza < Formula
1818
depends_on "pandoc" => :build
1919
depends_on "pkgconf" => :build
2020
depends_on "rust" => :build
21-
depends_on "[email protected]" # needs https://github.com/rust-lang/git2-rs/issues/1109 to support libgit2 1.9
21+
depends_on "libgit2"
22+
23+
# libgit2 1.9 build patch
24+
patch do
25+
url "https://github.com/eza-community/eza/commit/7241ea4d128ca47b8f5e756a65fa3d4f1d5b5ce7.patch?full_index=1"
26+
sha256 "e8b0a22c552d746936c332ff0558192578a8016aa6f5cb060535c5d1adeddcc7"
27+
end
2228

2329
def install
2430
ENV["LIBGIT2_NO_VENDOR"] = "1"
@@ -60,7 +66,7 @@ def install
6066
linkage_with_libgit2 = (bin/"eza").dynamically_linked_libraries.any? do |dll|
6167
next false unless dll.start_with?(HOMEBREW_PREFIX.to_s)
6268

63-
File.realpath(dll) == (Formula["libgit2@1.8"].opt_lib/shared_library("libgit2")).realpath.to_s
69+
File.realpath(dll) == (Formula["libgit2"].opt_lib/shared_library("libgit2")).realpath.to_s
6470
end
6571

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

0 commit comments

Comments
 (0)