File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,20 @@ class GitAbsorb < Formula
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 use libgit2 1.9, upstream pr ref, https://github.com/tummychow/git-absorb/pull/138
23+ patch do
24+ url "https://github.com/tummychow/git-absorb/commit/a7d5688f426490a92b5bb73e3a2cfccc565747f8.patch?full_index=1"
25+ sha256 "cb6bf13ec90de7c434addf1467a259537d9a993f5d2481e6cba86b3543d38eed"
26+ end
2127
2228 def install
2329 ENV [ "LIBGIT2_NO_VENDOR" ] = "1"
30+
2431 system "cargo" , "install" , *std_cargo_args
25- man1 . install "Documentation/git-absorb.1"
2632
33+ man1 . install "Documentation/git-absorb.1"
2734 generate_completions_from_executable ( bin /"git-absorb" , "--gen-completions" )
2835 end
2936
@@ -46,7 +53,7 @@ def install
4653 linkage_with_libgit2 = ( bin /"git-absorb" ) . dynamically_linked_libraries . any? do |dll |
4754 next false unless dll . start_with? ( HOMEBREW_PREFIX . to_s )
4855
49- File . realpath ( dll ) == ( Formula [ "libgit2@1.8 " ] . opt_lib /shared_library ( "libgit2" ) ) . realpath . to_s
56+ File . realpath ( dll ) == ( Formula [ "libgit2" ] . opt_lib /shared_library ( "libgit2" ) ) . realpath . to_s
5057 end
5158
5259 assert linkage_with_libgit2 , "No linkage with libgit2! Cargo is likely using a vendored version."
You can’t perform that action at this time.
0 commit comments