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 <[email protected]>
  • Loading branch information
chenrui333 authored and daeho-ro committed Jan 9, 2025
1 parent 9fd48be commit 213ce11
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 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,18 @@ 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 do
url "https://github.com/jrmoulton/tmux-sessionizer/commit/13310f17d766fb2499ddb18c9b1bc46e7861a178.patch?full_index=1"
sha256 "de5ebbc6ed772fb23ab8d4aa3c2526085fc929e055c5cffdcd95c5d2ee4b9ef5"
end

def install

Check failure on line 32 in Formula/t/tmux-sessionizer.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew install --verbose --formula --build-bottle tmux-sessionizer` failed on Linux!

::error::tmux-sessionizer 0.4.4 did not build

Check failure on line 32 in Formula/t/tmux-sessionizer.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

`brew install --verbose --formula --build-bottle tmux-sessionizer` failed on macOS Sequoia (15) on Apple Silicon!

::error::tmux-sessionizer 0.4.4 did not build
# Ensure that the `openssl` crate picks up the intended library.
ENV["OPENSSL_DIR"] = Formula["openssl@3"].opt_prefix
Expand All @@ -49,7 +55,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 Down

0 comments on commit 213ce11

Please sign in to comment.