Skip to content

Commit

Permalink
yaz: revision bump to migrate to icu4c@75
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Apr 17, 2024
1 parent 25d9400 commit d99589e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Formula/y/yaz.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Yaz < Formula
url "https://ftp.indexdata.com/pub/yaz/yaz-5.34.0.tar.gz"
sha256 "bcbea894599a13342910003401c17576f0fb910092aecb51cb54065d0cd2d613"
license "BSD-3-Clause"
revision 2
revision 3

# The latest version text is currently omitted from the homepage for this
# software, so we have to check the related directory listing page.
Expand Down Expand Up @@ -37,7 +37,7 @@ class Yaz < Formula

depends_on "pkg-config" => :build
depends_on "gnutls"
depends_on "icu4c"
depends_on "icu4c@75"
depends_on "readline" # Possible opportunistic linkage. TODO: Check if this can be removed.

uses_from_macos "libxml2"
Expand All @@ -63,9 +63,10 @@ def install

# Replace dependencies' cellar paths, which can break build for dependents
# (like `metaproxy` and `zebra`) after a dependency is version/revision bumped
icu4c = deps.map(&:to_formula).find { |f| f.name.match?(/^icu4c@\d+$/) }
inreplace bin/"yaz-config" do |s|
s.gsub! Formula["gnutls"].prefix.realpath, Formula["gnutls"].opt_prefix
s.gsub! Formula["icu4c"].prefix.realpath, Formula["icu4c"].opt_prefix
s.gsub! icu4c.prefix.realpath, icu4c.opt_prefix
end
unless OS.mac?
inreplace [bin/"yaz-config", lib/"pkgconfig/yaz.pc"] do |s|
Expand Down

0 comments on commit d99589e

Please sign in to comment.