Skip to content

Commit e59d33d

Browse files
authored
Merge pull request #203728 from Homebrew/jj-libgit2-1.9
jj: update to use libgit2 1.9
2 parents 98e961d + 4980d5e commit e59d33d

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

Formula/j/jj.rb

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,30 @@ class Jj < Formula
44
url "https://github.com/jj-vcs/jj/archive/refs/tags/v0.25.0.tar.gz"
55
sha256 "3a99528539e414a3373f24eb46a0f153d4e52f7035bb06df47bd317a19912ea3"
66
license "Apache-2.0"
7-
revision 1
7+
revision 2
88
head "https://github.com/martinvonz/jj.git", branch: "main"
99

1010
bottle do
11-
sha256 cellar: :any, arm64_sequoia: "3584b23773db2bcc2f17d0e9ab7e43cbcb75666a7c426f30bb2353c502dd692a"
12-
sha256 cellar: :any, arm64_sonoma: "180144fac0063ecebad0df2e169d1454242b9d289e0926c939a0af66d0615f31"
13-
sha256 cellar: :any, arm64_ventura: "c465e088aac79ff328457d4343408944f1cb6398a67ed4fb1d9af6029ddc78ae"
14-
sha256 cellar: :any, sonoma: "751941e6f433db1ea77b7a6dfc5680c45ebdefba203901fdaa73d37c83c6707a"
15-
sha256 cellar: :any, ventura: "3f105c85f77c9f739f958b280613afccfb54477710d8085d3f18169d4b40e4c9"
16-
sha256 cellar: :any_skip_relocation, x86_64_linux: "e78f9c71743a969303d52e0a493aaee12b954df16ed1e0a85a03b2241a61cf00"
11+
sha256 cellar: :any, arm64_sequoia: "e3a956a8e62358766302d59d592f6555fe9a97173c1dd9143534172ff6ba0e9f"
12+
sha256 cellar: :any, arm64_sonoma: "420d66af2270b1c3c5f6fae781537ebd0dbacd0d61f5cdd8ed6db77ca527989c"
13+
sha256 cellar: :any, arm64_ventura: "6dc19cc8fbfd30e51b4d17eec7ee08559f01cdb9719128d026e07ba92830d1c6"
14+
sha256 cellar: :any, sonoma: "fdba90d9cbfa97802c6650f5007744e40ebbedd9e514688ac7fc5a0db614ea6f"
15+
sha256 cellar: :any, ventura: "1ac2997276b2d2b4f39ca0423df4a117736016554ad59e26bb607041f2bd2b59"
16+
sha256 cellar: :any_skip_relocation, x86_64_linux: "1d7cd0534b257658bb96ad207550a7f09e045ac3f4a3fb5e4e3771af49be3416"
1717
end
1818

1919
depends_on "pkgconf" => :build
2020
depends_on "rust" => :build
21-
depends_on "libgit2@1.8" # needs https://github.com/rust-lang/git2-rs/issues/1109 to support libgit2 1.9
21+
depends_on "libgit2"
2222
depends_on "openssl@3"
2323
uses_from_macos "zlib"
2424

25+
# patch to use libgit2 1.9, upstream pr ref, https://github.com/jj-vcs/jj/pull/5315
26+
patch do
27+
url "https://github.com/jj-vcs/jj/commit/b4f936ac302ee835aa274e4dd186b436781d5d2f.patch?full_index=1"
28+
sha256 "7b2f84de2c6bbdce9934384af2f7f2d0b7f7116c4726aeef87581010cdf1564e"
29+
end
30+
2531
def install
2632
ENV["LIBGIT2_NO_VENDOR"] = "1"
2733

@@ -45,7 +51,7 @@ def check_binary_linkage(binary, library)
4551
assert_predicate testpath/".jj", :exist?
4652

4753
[
48-
Formula["libgit2@1.8"].opt_lib/shared_library("libgit2"),
54+
Formula["libgit2"].opt_lib/shared_library("libgit2"),
4955
Formula["openssl@3"].opt_lib/shared_library("libcrypto"),
5056
Formula["openssl@3"].opt_lib/shared_library("libssl"),
5157
].each do |library|

0 commit comments

Comments
 (0)