Skip to content

Commit

Permalink
tmux-sessionizer: update to use libgit2 1.9
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <rui@chenrui.dev>

tmux-sessionizer: update patch

Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
chenrui333 committed Jan 9, 2025
1 parent 066b661 commit 06a094b
Showing 1 changed file with 57 additions and 3 deletions.
60 changes: 57 additions & 3 deletions Formula/t/tmux-sessionizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class TmuxSessionizer < Formula
url "https://github.com/jrmoulton/tmux-sessionizer/archive/refs/tags/v0.4.4.tar.gz"
sha256 "9dfbe99a3c1fe7f48be0c1ab9056e49f36c4f85d023e24f874254f6791a9894e"
license "MIT"
revision 1
revision 2

bottle do
sha256 cellar: :any, arm64_sequoia: "4042bf4b217a95b253ea859c8c4426950ec8b0653fe873f8b5b2624399e36186"
Expand All @@ -17,12 +17,15 @@ class TmuxSessionizer < Formula

depends_on "pkgconf" => :build
depends_on "rust" => :build
depends_on "libgit2@1.8" # needs https://github.com/rust-lang/git2-rs/issues/1109 to support libgit2 1.9
depends_on "libgit2"
depends_on "libssh2"
depends_on "openssl@3"

uses_from_macos "zlib"

# patch to use libgit2 1.9, upstream pr ref, https://github.com/jrmoulton/tmux-sessionizer/pull/144
patch :DATA

def install
# Ensure that the `openssl` crate picks up the intended library.
ENV["OPENSSL_DIR"] = Formula["openssl@3"].opt_prefix
Expand All @@ -49,7 +52,7 @@ def check_binary_linkage(binary, library)
assert_match version.to_s, shell_output("#{bin}/tms --version")

[
Formula["libgit2@1.8"].opt_lib/shared_library("libgit2"),
Formula["libgit2"].opt_lib/shared_library("libgit2"),
Formula["libssh2"].opt_lib/shared_library("libssh2"),
Formula["openssl@3"].opt_lib/shared_library("libssl"),
Formula["openssl@3"].opt_lib/shared_library("libcrypto"),
Expand All @@ -59,3 +62,54 @@ def check_binary_linkage(binary, library)
end
end
end

__END__
diff --git a/Cargo.lock b/Cargo.lock
index 2274afd..18ec520 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
-version = 3
+version = 4

[[package]]
name = "aho-corasick"
@@ -392,9 +392,9 @@ dependencies = [

[[package]]
name = "git2"
-version = "0.19.0"
+version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b903b73e45dc0c6c596f2d37eccece7c1c8bb6e4407b001096387c63d0d93724"
+checksum = "3fda788993cc341f69012feba8bf45c0ba4f3291fcc08e214b4d5a7332d88aff"
dependencies = [
"bitflags",
"libc",
@@ -496,9 +496,9 @@ checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1"

[[package]]
name = "libgit2-sys"
-version = "0.17.0+1.8.1"
+version = "0.18.0+1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "10472326a8a6477c3c20a64547b0059e4b0d086869eee31e6d7da728a8eb7224"
+checksum = "e1a117465e7e1597e8febea8bb0c410f1c7fb93b1e1cddf34363f8390367ffec"
dependencies = [
"cc",
"libc",
diff --git a/Cargo.toml b/Cargo.toml
index d1ebcd4..bbf59e3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,7 +17,7 @@ exclude = ["images/*"]

[dependencies]

-git2 = { version= "0.19", features = [ "vendored-openssl" ] }
+git2 = { version= "0.20", features = [ "vendored-openssl" ] }
clap = { version = "4.5", features = ["cargo", "derive"] }
serde_derive = "1.0"
serde = "1.0"

0 comments on commit 06a094b

Please sign in to comment.