From 86e1e96484deeed1769d1243555e21b8684ac18d Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 22 Jun 2023 00:56:53 -0400 Subject: [PATCH] spotify-tui: switch to `openssl@3` Signed-off-by: Rui Chen --- Formula/spotify-tui.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Formula/spotify-tui.rb b/Formula/spotify-tui.rb index 49581e3c5db86..03387d1332bbb 100644 --- a/Formula/spotify-tui.rb +++ b/Formula/spotify-tui.rb @@ -2,6 +2,7 @@ class SpotifyTui < Formula desc "Terminal-based client for Spotify" homepage "https://github.com/Rigellute/spotify-tui" license "MIT" + revision 1 head "https://github.com/Rigellute/spotify-tui.git", branch: "master" stable do @@ -32,7 +33,7 @@ class SpotifyTui < Formula on_linux do depends_on "pkg-config" => :build depends_on "libxcb" - depends_on "openssl@1.1" + depends_on "openssl@3" end # Fix build with Rust 1.64+ by updating socket2 using open dependabot PR. @@ -43,6 +44,12 @@ class SpotifyTui < Formula end def install + if OS.linux? + # Ensure that the `openssl` crate picks up the intended library. + ENV["OPENSSL_DIR"] = Formula["openssl@3"].opt_prefix + ENV["OPENSSL_NO_VENDOR"] = "1" + end + system "cargo", "install", *std_cargo_args end