Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icu4c@75 75.1 (new formula) #169239

Merged
merged 91 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
0929f8d
icu4c@75 75.1 (new formula)
cho-m Apr 16, 2024
0e0371d
icu4c: add `icu4c@74` alias
cho-m Apr 16, 2024
63e8e71
apngasm: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
e62c1ca
boost: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
ef26798
dotnet@6: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
f4e63a1
easyrpg-player: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
d3d5583
freeciv: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
91c7bbf
freeling: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
9035190
gspell: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
b76ad46
harfbuzz: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
7b532a8
libcdr: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
f820001
liblcf: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
50933b7
libmspub: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
a9acb68
libphonenumber: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
554db31
libpq: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
260bba2
libvisio: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
c38f10d
libxml2: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
2aa12f7
libxslt: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
f9240b6
manticoresearch: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
07ab627
mapnik: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
e0f96b2
mpd: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
c409b8b
mysql: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
522fb6b
ncmpcpp: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
c45f38b
node: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
6e7564c
pazpar2: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
fd22dc4
percona-server: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
aa20054
php: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
2eddeeb
[email protected]: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
bd8c347
[email protected]: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
e70d641
postgis: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
393298b
postgresql@14: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
8ac915f
qt: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
6d55253
sile: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
f53f3d9
tectonic: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
29958b7
libgedit-tepl: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
7417e50
tesseract: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
4a639c3
tracker: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
f9b92c7
vte3: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
e3a8ed0
webkitgtk: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
74eacb0
widelands: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
d759243
yaz: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
adb4483
zebra: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
46e24f9
znc: revision bump to migrate to `icu4c@75`
cho-m Apr 16, 2024
848ea53
libspelling: revision bump to migrate to `icu4c@75`
cho-m Aug 23, 2024
38b8acd
texlive: revision bump to migrate to `icu4c@75`
cho-m Aug 23, 2024
b348c34
spidermonkey: revision bump to migrate to `icu4c@75`
cho-m Sep 27, 2024
a410548
apngasm: update 3.1.10_13 bottle.
carlocab Oct 7, 2024
ad51dd9
boost: update 1.86.0_1 bottle.
carlocab Oct 7, 2024
8fef467
dotnet@6: update 6.0.133_1 bottle.
carlocab Oct 7, 2024
8344eee
easyrpg-player: update 0.8_5 bottle.
carlocab Oct 7, 2024
464b994
freeciv: update 3.1.2_1 bottle.
carlocab Oct 7, 2024
4aca6a7
freeling: update 4.2.1_6 bottle.
carlocab Oct 7, 2024
2b251f4
gspell: update 1.14.0_1 bottle.
carlocab Oct 7, 2024
bed76ad
harfbuzz: update 10.0.1_1 bottle.
carlocab Oct 7, 2024
a8adb69
icu4c@75: add 75.1 bottle.
carlocab Oct 7, 2024
90a6634
libcdr: update 0.1.7_7 bottle.
carlocab Oct 7, 2024
9a992ad
libgedit-tepl: update 6.10.0_1 bottle.
carlocab Oct 7, 2024
0b97f66
liblcf: update 0.8_3 bottle.
carlocab Oct 7, 2024
4ed3694
libmspub: update 0.1.4_16 bottle.
carlocab Oct 7, 2024
513c67e
libphonenumber: update 8.13.47_1 bottle.
carlocab Oct 7, 2024
d89823e
libpq: update 17.0_1 bottle.
carlocab Oct 7, 2024
b1ef5e7
libspelling: update 0.2.1_1 bottle.
carlocab Oct 7, 2024
621135f
libvisio: update 0.1.7_10 bottle.
carlocab Oct 7, 2024
8d7c254
libxml2: update 2.13.4_1 bottle.
carlocab Oct 7, 2024
2084384
libxslt: update 1.1.42_1 bottle.
carlocab Oct 7, 2024
c487a00
manticoresearch: update 6.3.6_1 bottle.
carlocab Oct 7, 2024
4ed3c13
mapnik: update 4.0.2_1 bottle.
carlocab Oct 7, 2024
7ebd0cf
mpd: update 0.23.15_4 bottle.
carlocab Oct 7, 2024
1e2480d
mysql: update 9.0.1_4 bottle.
carlocab Oct 7, 2024
e0eebcf
ncmpcpp: update 0.9.2_18 bottle.
carlocab Oct 7, 2024
9793f24
node: update 22.9.0_1 bottle.
carlocab Oct 7, 2024
8fe0a2d
pazpar2: update 1.14.1_6 bottle.
carlocab Oct 7, 2024
2463e11
percona-server: update 8.0.36-28_1 bottle.
carlocab Oct 7, 2024
b6ab7c8
php: update 8.3.12_1 bottle.
carlocab Oct 7, 2024
0f0d4c6
[email protected]: update 8.1.30_1 bottle.
carlocab Oct 7, 2024
fc80697
[email protected]: update 8.2.24_1 bottle.
carlocab Oct 7, 2024
134e646
postgis: update 3.5.0_1 bottle.
carlocab Oct 7, 2024
4cfe2bd
postgresql@14: update 14.13_1 bottle.
carlocab Oct 7, 2024
fbd4d82
qt: update 6.7.2_1 bottle.
carlocab Oct 7, 2024
1511299
sile: update 0.15.5_1 bottle.
carlocab Oct 7, 2024
48a520e
spidermonkey: update 128.2.0_1 bottle.
carlocab Oct 7, 2024
e58d18b
tectonic: update 0.15.0_2 bottle.
carlocab Oct 7, 2024
59b6f48
tesseract: update 5.4.1_1 bottle.
carlocab Oct 7, 2024
0378ef6
texlive: update 20240312_2 bottle.
carlocab Oct 7, 2024
7a1c0dc
tracker: update 3.6.0_2 bottle.
carlocab Oct 7, 2024
d791a28
vte3: update 0.76.4_1 bottle.
carlocab Oct 7, 2024
47118f9
webkitgtk: update 2.46.1_1 bottle.
carlocab Oct 7, 2024
e25f332
widelands: update 1.2_1 bottle.
carlocab Oct 7, 2024
81b75d8
yaz: update 5.34.2_1 bottle.
carlocab Oct 7, 2024
3ba7b0e
zebra: update 2.2.7_3 bottle.
carlocab Oct 7, 2024
fe49f82
znc: update 1.9.1_1 bottle.
carlocab Oct 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Aliases/icu4c@74
4 changes: 2 additions & 2 deletions Formula/a/apngasm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Apngasm < Formula
url "https://github.com/apngasm/apngasm/archive/refs/tags/3.1.10.tar.gz"
sha256 "8171e2c1d37ab231a2061320cb1e5d15cee37642e3ce78e8ab0b8dfc45b80f6c"
license "Zlib"
revision 12
revision 13
head "https://github.com/apngasm/apngasm.git", branch: "master"

bottle do
Expand All @@ -20,7 +20,7 @@ class Apngasm < Formula

depends_on "cmake" => :build
depends_on "boost"
depends_on "icu4c"
depends_on "icu4c@75"
depends_on "libpng"
depends_on "lzlib"
depends_on macos: :catalina
Expand Down
14 changes: 8 additions & 6 deletions Formula/b/boost.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class Boost < Formula
desc "Collection of portable C++ source libraries"
homepage "https://www.boost.org/"
license "BSL-1.0"
revision 1
head "https://github.com/boostorg/boost.git", branch: "master"

stable do
Expand Down Expand Up @@ -41,7 +42,7 @@ class Boost < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "9b54de744fca5203371e41bbe08f18fe347d9873558b9b0e1c40b60e4bc5515c"
end

depends_on "icu4c"
depends_on "icu4c@75"
depends_on "xz"
depends_on "zstd"

Expand All @@ -59,11 +60,11 @@ def install
end

# libdir should be set by --prefix but isn't
icu4c_prefix = Formula["icu4c"].opt_prefix
icu4c = deps.map(&:to_formula).find { |f| f.name.match?(/^icu4c@\d+$/) }
bootstrap_args = %W[
--prefix=#{prefix}
--libdir=#{lib}
--with-icu=#{icu4c_prefix}
--with-icu=#{icu4c.opt_prefix}
]

# Handle libraries that will not be built.
Expand All @@ -88,9 +89,10 @@ def install
link=shared,static
]

# Boost is using "clang++ -x c" to select C compiler which breaks C++14
# handling using ENV.cxx14. Using "cxxflags" and "linkflags" still works.
args << "cxxflags=-std=c++14"
# Boost is using "clang++ -x c" to select C compiler which breaks C++
# handling in superenv. Using "cxxflags" and "linkflags" still works.
# C++17 is due to `icu4c`.
args << "cxxflags=-std=c++17"
carlocab marked this conversation as resolved.
Show resolved Hide resolved
args << "cxxflags=-stdlib=libc++" << "linkflags=-stdlib=libc++" if ENV.compiler == :clang

system "./bootstrap.sh", *bootstrap_args
Expand Down
6 changes: 4 additions & 2 deletions Formula/d/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
tag: "v6.0.133",
revision: "48ad8f7176f00900ff49df9fb936bc7c8c79d345"
license "MIT"
revision 1

bottle do
sha256 cellar: :any, arm64_sonoma: "2f732d33c49d2549ca9bd05907d4e86d7c54cb5264b9bc27844118cde98fe5ea"
Expand All @@ -23,7 +24,7 @@
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "[email protected]" => :build
depends_on "icu4c"
depends_on "icu4c@75"
depends_on "openssl@3"

uses_from_macos "llvm" => :build
Expand Down Expand Up @@ -104,9 +105,10 @@
EOS
end

def install

Check warning on line 108 in Formula/d/[email protected]

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

`brew install --verbose --formula --build-bottle dotnet@6` failed on macOS Sequoia (15) on Apple Silicon!

dotnet-install: - The SDK needs to be installed without user interaction and without admin rights. dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs. dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer. dotnet-install: Attempting to download using primary link https://dotnetcli.azureedge.net/dotnet/Runtime/2.1.0/dotnet-runtime-2.1.0-osx-arm64.tar.gz curl: (56) The requested URL returned error: 404 dotnet-install: The resource at primary link 'https://dotnetcli.azureedge.net/dotnet/Runtime/2.1.0/dotnet-runtime-2.1.0-osx-arm64.tar.gz' is not available. dotnet-install: Attempting to download using legacy link https://dotnetcli.azureedge.net/dotnet/Runtime/2.1.0/dotnet-osx-arm64.2.1.0.tar.gz curl: (56) The requested URL returned error: 404 dotnet-install: The resource at legacy link 'https://dotnetcli.azureedge.net/dotnet/Runtime/2.1.0/dotnet-osx-arm64.2.1.0.tar.gz' is not available. dotnet-install: Attempting to download using primary link https://dotnetbuilds.azureedge.net/public/Runtime/2.1.0/dotnet-runtime-2.1.0-osx-arm64.tar.gz curl: (56) The requested URL returned error: 404 dotnet-install: The resource at primary link 'https://dotnetbuilds.azureedge.net/public/Runtime/2.1.0/dotnet-runtime-2.1.0-osx-arm64.tar.gz' is not available. dotnet-install: Attempting to download using legacy link https://dotnetbuilds.azureedge.net/public/Runtime/2.1.0/dotnet-osx-arm64.2.1.0.tar.gz curl: (56) The requested URL returned error: 404 dotnet-install: The resource at legacy link 'https://dotnetbuilds.azureedge.net/public/Runtime/2.1.0/dotnet-osx-arm64.2.1.0.tar.gz' is not available. dotnet_install: Error: Could not find `.NET Core Runtime` with version = 2.1.0 dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support Determining projects to restore... Restored /private/tmp/dotnetA6-20241005-66522-k86t4u/installer/.nuget/packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.24367.5/tools/Tools.proj (in 3.46 sec). Attempting to install dotnet from public_location. dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where: dotnet-install: - The SDK needs to be installed without user interaction and without admin rights. dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs. dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer. dotnet-install: Attempting to download using primary link https://dotnetcli.azureedge.net/dotnet/Runtime/6.0.33-servicing.24366.10/dotnet-runtime-6.0.33-osx-arm64.tar.gz dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Runtime/6.0.33-servicing.24366.10/dotnet-runtime-6.0.33-osx-arm64.tar.gz dotnet-install: Installed version is 6.0.33 dotnet-install: Adding to current process PATH: `/private/tmp/dotnetA6-20241005-66522-k86t4u/installer/.dotnet`. Note: This change will be visible only when sourcing script. dotnet-install: Note that the script does not resolve dependencies during installation. dotnet-install: To check the list of dependencies, go to https://docs.microsoft.com/dotnet/core/install, select your operating system and check the "Dependencies" section. dotnet-install: Installation finished successfully. Determining projects to restore... Restored /private/tmp/dotnetA6-20241005-66522-k86t4u/installer/src/SourceBuild/Arcade/src/SourceBuild.Tasks.csproj (in 7.36 sec). SourceBuild.Tasks -> /private/tmp/dotnetA6-20241005-66522-k86t4u/installer/artifacts/bin/SourceBuild.Tasks/Debug/net6.0/SourceBuild.Tasks.dll 48ad8f7176f00900ff49df9fb936bc7c8c79d345 https://github.com/dotnet/installer.git 48ad8f7176f00900ff49df9fb936bc7c8c79d345 23322 --> Start Cloning Repo installer Cloning into '/private/tmp/dotnetA6-20241005-66522-k86t4u/sour
if OS.linux?
ENV.append_path "LD_LIBRARY_PATH", Formula["icu4c"].opt_lib
icu4c = deps.map(&:to_formula).find { |f| f.name.match?(/^icu4c@\d+$/) }
ENV.append_path "LD_LIBRARY_PATH", icu4c.opt_lib if OS.linux?
ENV.append_to_cflags "-I#{Formula["krb5"].opt_include}"
ENV.append_to_cflags "-I#{Formula["zlib"].opt_include}"
end
Expand Down Expand Up @@ -175,7 +177,7 @@
EOS
end

test do

Check warning on line 180 in Formula/d/[email protected]

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew test --verbose dotnet@6` failed on macOS Ventura (13) on Apple Silicon!

/opt/homebrew/Library/Homebrew/test.rb:52:in `<main>'

Check warning on line 180 in Formula/d/[email protected]

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

`brew test --verbose dotnet@6` failed on macOS Ventura (13)!

/usr/local/Homebrew/Library/Homebrew/test.rb:52:in `<main>'
target_framework = "net#{version.major_minor}"
(testpath/"test.cs").write <<~EOS
using System;
Expand Down
4 changes: 2 additions & 2 deletions Formula/e/easyrpg-player.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class EasyrpgPlayer < Formula
url "https://easyrpg.org/downloads/player/0.8/easyrpg-player-0.8.tar.xz"
sha256 "06e6d034348d1c52993d0be6b88fc3502a6c7718e366f691401539d5a2195c79"
license "GPL-3.0-or-later"
revision 4
revision 5

livecheck do
url "https://github.com/EasyRPG/Player.git"
Expand All @@ -26,7 +26,7 @@ class EasyrpgPlayer < Formula
depends_on "fmt"
depends_on "freetype"
depends_on "harfbuzz"
depends_on "icu4c"
depends_on "icu4c@75"
depends_on "liblcf"
depends_on "libpng"
depends_on "libsndfile"
Expand Down
3 changes: 2 additions & 1 deletion Formula/f/freeciv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Freeciv < Formula
url "https://downloads.sourceforge.net/project/freeciv/Freeciv%203.1/3.1.2/freeciv-3.1.2.tar.xz"
sha256 "7ab19d218a023306091a34e5c3bc3fd70981d8ebc4b9542c1646827dede55828"
license "GPL-2.0-or-later"
revision 1

livecheck do
url :stable
Expand Down Expand Up @@ -40,7 +41,7 @@ class Freeciv < Formula
depends_on "glib"
depends_on "gtk+3"
depends_on "harfbuzz"
depends_on "icu4c"
depends_on "icu4c@75"
depends_on "pango"
depends_on "readline"
depends_on "sdl2"
Expand Down
8 changes: 5 additions & 3 deletions Formula/f/freeling.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
class Freeling < Formula

Check warning on line 1 in Formula/f/freeling.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew linkage --cached --test --strict freeling` failed on Linux!

zlib
desc "Suite of language analyzers"
homepage "https://nlp.lsi.upc.edu/freeling/"
url "https://github.com/TALP-UPC/FreeLing/releases/download/4.2/FreeLing-src-4.2.1.tar.gz"
sha256 "c672a6379142ac2e872741e7662f17eccd8230bffc680564d2843d87480f1600"
license "AGPL-3.0-only"
revision 5
revision 6

bottle do
sha256 cellar: :any, arm64_sequoia: "247d7a29b0f294b2907de43d169bc1a248675b87b7981c211b8283a0e4fe72a5"
Expand All @@ -19,16 +19,18 @@

depends_on "cmake" => :build
depends_on "boost"
depends_on "icu4c"
depends_on "icu4c@75"

conflicts_with "dynet", because: "freeling ships its own copy of dynet"
conflicts_with "eigen", because: "freeling ships its own copy of eigen"
conflicts_with "foma", because: "freeling ships its own copy of foma"
conflicts_with "hunspell", because: "both install 'analyze' binary"

conflicts_with "crfsuite", because: "both install `crfsuite` binaries"

def install
# icu4c 75+ needs C++17
inreplace "CMakeLists.txt", "set(CMAKE_CXX_STANDARD 11)", "set(CMAKE_CXX_STANDARD 17)"

system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
Expand Down
7 changes: 5 additions & 2 deletions Formula/g/gspell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Gspell < Formula
url "https://download.gnome.org/sources/gspell/1.14/gspell-1.14.0.tar.xz"
sha256 "64ea1d8e9edc1c25b45a920e80daf67559d1866ffcd7f8432fecfea6d0fe8897"
license "LGPL-2.1-or-later"
revision 1

bottle do
sha256 arm64_sequoia: "a3d28d4743f36aa5324d601af39343d2cb0b927576f46de016bd52c1f1cf13fb"
Expand All @@ -27,7 +28,7 @@ class Gspell < Formula
depends_on "glib"
depends_on "gtk+3"
depends_on "harfbuzz"
depends_on "icu4c"
depends_on "icu4c@75"
depends_on "pango"

on_macos do
Expand Down Expand Up @@ -55,7 +56,9 @@ def install
return 0;
}
EOS
ENV.prepend_path "PKG_CONFIG_PATH", Formula["icu4c"].opt_lib/"pkgconfig" if OS.mac?

icu4c = deps.map(&:to_formula).find { |f| f.name.match?(/^icu4c@\d+$/) }
ENV.prepend_path "PKG_CONFIG_PATH", icu4c.opt_lib/"pkgconfig"
flags = shell_output("pkg-config --cflags --libs gspell-1").chomp.split
system ENV.cc, "test.c", "-o", "test", *flags
ENV["G_DEBUG"] = "fatal-warnings"
Expand Down
3 changes: 2 additions & 1 deletion Formula/h/harfbuzz.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Harfbuzz < Formula
url "https://github.com/harfbuzz/harfbuzz/archive/refs/tags/10.0.1.tar.gz"
sha256 "e7358ea86fe10fb9261931af6f010d4358dac64f7074420ca9bc94aae2bdd542"
license "MIT"
revision 1
head "https://github.com/harfbuzz/harfbuzz.git", branch: "main"

bottle do
Expand All @@ -25,7 +26,7 @@ class Harfbuzz < Formula
depends_on "freetype"
depends_on "glib"
depends_on "graphite2"
depends_on "icu4c"
depends_on "icu4c@75"

resource "homebrew-test-ttf" do
url "https://github.com/harfbuzz/harfbuzz/raw/fc0daafab0336b847ac14682e581a8838f36a0bf/test/shaping/fonts/sha1sum/270b89df543a7e48e206a2d830c0e10e5265c630.ttf"
Expand Down
44 changes: 44 additions & 0 deletions Formula/i/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
class Icu4cAT75 < Formula

Check notice on line 1 in Formula/i/[email protected]

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

Bottle cache hit

Bottle for icu4c@75 built at 6c0573c866c (Merge 1ebd1d9573f275daf6ab550e6b5d9220fbe182d9 into 9f47354e6807bd3d0156729af23e9971c43b54c2, 2024-09-27)

Check notice on line 1 in Formula/i/[email protected]

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

Bottle cache hit

Bottle for icu4c@75 built at 6c0573c866c (Merge 1ebd1d9573f275daf6ab550e6b5d9220fbe182d9 into 9f47354e6807bd3d0156729af23e9971c43b54c2, 2024-09-27)

Check notice on line 1 in Formula/i/[email protected]

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

Bottle cache hit

Bottle for icu4c@75 built at 6c0573c866c (Merge 1ebd1d9573f275daf6ab550e6b5d9220fbe182d9 into 9f47354e6807bd3d0156729af23e9971c43b54c2, 2024-09-27)

Check notice on line 1 in Formula/i/[email protected]

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

Bottle cache hit

Bottle for icu4c@75 built at 6c0573c866c (Merge 1ebd1d9573f275daf6ab550e6b5d9220fbe182d9 into 9f47354e6807bd3d0156729af23e9971c43b54c2, 2024-09-27)

Check notice on line 1 in Formula/i/[email protected]

View workflow job for this annotation

GitHub Actions / Linux

Bottle cache hit

Bottle for icu4c@75 built at 6c0573c866c (Merge 1ebd1d9573f275daf6ab550e6b5d9220fbe182d9 into 9f47354e6807bd3d0156729af23e9971c43b54c2, 2024-09-27)

Check notice on line 1 in Formula/i/[email protected]

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

Bottle cache hit

Bottle for icu4c@75 built at 6c0573c866c (Merge 1ebd1d9573f275daf6ab550e6b5d9220fbe182d9 into 9f47354e6807bd3d0156729af23e9971c43b54c2, 2024-09-27)
cho-m marked this conversation as resolved.
Show resolved Hide resolved
desc "C/C++ and Java libraries for Unicode and globalization"
homepage "https://icu.unicode.org/home"
url "https://github.com/unicode-org/icu/releases/download/release-75-1/icu4c-75_1-src.tgz"
version "75.1"
sha256 "cb968df3e4d2e87e8b11c49a5d01c787bd13b9545280fc6642f826527618caef"
license "ICU"

livecheck do
url :stable
regex(/^release[._-]v?(\d+(?:[.-]\d+)+)$/i)
strategy :git do |tags, regex|
tags.filter_map { |tag| tag[regex, 1]&.tr("-", ".") }
end
end

# TODO: Switch keg_only reason after renaming `icu4c` formula to `icu4c@74` and updating alias to `icu4c@75`
# keg_only :provided_by_macos, "macOS provides libicucore.dylib (but nothing else)"
keg_only :versioned_formula

def install
args = %w[
--disable-samples
--disable-tests
--enable-static
--with-library-bits=64
]

cd "source" do
system "./configure", *args, *std_configure_args
system "make"
system "make", "install"
end
end

test do
if File.exist? "/usr/share/dict/words"
system bin/"gendict", "--uchars", "/usr/share/dict/words", "dict"
else
(testpath/"hello").write "hello\nworld\n"
system bin/"gendict", "--uchars", "hello", "dict"
end
end
end
7 changes: 5 additions & 2 deletions Formula/lib/libcdr.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
class Libcdr < Formula

Check warning on line 1 in Formula/lib/libcdr.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew linkage --cached --test --strict libcdr` failed on Linux!

zlib
desc "C++ library to parse the file format of CorelDRAW documents"
homepage "https://wiki.documentfoundation.org/DLP/Libraries/libcdr"
url "https://dev-www.libreoffice.org/src/libcdr/libcdr-0.1.7.tar.xz"
sha256 "5666249d613466b9aa1e987ea4109c04365866e9277d80f6cd9663e86b8ecdd4"
license "MPL-2.0"
revision 6
revision 7

livecheck do
url "https://dev-www.libreoffice.org/src/"
Expand All @@ -25,11 +25,14 @@

depends_on "boost" => :build
depends_on "pkg-config" => :build
depends_on "icu4c"
depends_on "icu4c@75"
depends_on "librevenge"
depends_on "little-cms2"

def install
# icu4c 75+ needs C++17
ENV.append "CXXFLAGS", "-std=gnu++17"

system "./configure", "--disable-silent-rules",
"--disable-tests",
"--disable-werror",
Expand Down
12 changes: 10 additions & 2 deletions Formula/lib/libgedit-tepl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class LibgeditTepl < Formula
url "https://gitlab.gnome.org/World/gedit/libgedit-tepl/-/archive/6.10.0/libgedit-tepl-6.10.0.tar.bz2"
sha256 "bfaf68a4c81b7e32ff69d102dad1d656c49b5ef8570db15327a3c5479c8c3164"
license "LGPL-2.1-or-later"
revision 1
head "https://gitlab.gnome.org/World/gedit/libgedit-tepl.git", branch: "main"

# https://gitlab.gnome.org/swilmet/tepl/-/blob/main/docs/more-information.md
Expand Down Expand Up @@ -33,7 +34,7 @@ class LibgeditTepl < Formula
depends_on "cairo"
depends_on "glib"
depends_on "gtk+3"
depends_on "icu4c"
depends_on "icu4c@75"
depends_on "libgedit-amtk"
depends_on "libgedit-gfls"
depends_on "libgedit-gtksourceview"
Expand All @@ -48,6 +49,14 @@ def install
system "meson", "setup", "build", "-Dgtk_doc=false", *std_meson_args
system "meson", "compile", "-C", "build", "--verbose"
system "meson", "install", "-C", "build"

# `pkg-config --libs libgedit-tepl-6` includes icu-uc and icu-i18n but modules
# are from keg-only `icu4c@75` so pkg-config needs to look in the opt path.
# TODO: Remove after https://github.com/Homebrew/brew/pull/18229
icu4c_pc_dir = Formula["icu4c@75"].opt_lib/"pkgconfig"
inreplace lib/"pkgconfig/libgedit-tepl-6.pc",
/^(Requires\.private:.*) icu-uc, icu-i18n,/,
"\\1 #{icu4c_pc_dir}/icu-uc.pc, #{icu4c_pc_dir}/icu-i18n.pc,"
end

test do
Expand All @@ -60,7 +69,6 @@ def install
}
EOS

ENV.prepend_path "PKG_CONFIG_PATH", Formula["icu4c"].opt_lib/"pkgconfig" if OS.mac?
flags = shell_output("pkg-config --cflags --libs libgedit-tepl-6").chomp.split
system ENV.cc, "test.c", "-o", "test", *flags
system "./test"
Expand Down
17 changes: 13 additions & 4 deletions Formula/lib/liblcf.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
class Liblcf < Formula
desc "Library for RPG Maker 2000/2003 games data"
homepage "https://easyrpg.org/"
url "https://easyrpg.org/downloads/player/0.8/liblcf-0.8.tar.xz"
sha256 "6b0d8c7fefe3d66865336406f69ddf03fe59e52b5601687265a4d1e47a25c386"
license "MIT"
revision 2
revision 3
head "https://github.com/EasyRPG/liblcf.git", branch: "master"

stable do
url "https://easyrpg.org/downloads/player/0.8/liblcf-0.8.tar.xz"
sha256 "6b0d8c7fefe3d66865336406f69ddf03fe59e52b5601687265a4d1e47a25c386"

# Backport C++17 for `icu4c` 75. Remove in the next release.
patch do
url "https://github.com/EasyRPG/liblcf/commit/8c782e54ba244981141d91e7d44922952563677c.patch?full_index=1"
sha256 "593f729e7f9a5411e6d8548aaac0039e09eee437f525409a9ca8513a0ee15cd0"
end
end

bottle do
sha256 cellar: :any, arm64_sequoia: "1ccfa697b76af2be4dc824897e01f19930b77d38064b1f68db20eec27ab9f57b"
sha256 cellar: :any, arm64_sonoma: "e6b2a50537cda6de3f2de66da5eab8887b60e2fe89b773737b5f18b936305244"
Expand All @@ -20,7 +29,7 @@ class Liblcf < Formula

depends_on "cmake" => :build
depends_on "expat" # Building against `liblcf` fails with `uses_from_macos`
depends_on "icu4c"
depends_on "icu4c@75"

def install
system "cmake", "-S", ".", "-B", "build",
Expand Down
17 changes: 10 additions & 7 deletions Formula/lib/libmspub.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
class Libmspub < Formula

Check warning on line 1 in Formula/lib/libmspub.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew linkage --cached --test --strict libmspub` failed on Linux!

zlib
desc "Interpret and import Microsoft Publisher content"
homepage "https://wiki.documentfoundation.org/DLP/Libraries/libmspub"
url "https://dev-www.libreoffice.org/src/libmspub/libmspub-0.1.4.tar.xz"
sha256 "ef36c1a1aabb2ba3b0bedaaafe717bf4480be2ba8de6f3894be5fd3702b013ba"
license "MPL-2.0"
revision 15
revision 16

livecheck do
url "https://dev-www.libreoffice.org/src/"
Expand All @@ -25,7 +25,7 @@
depends_on "boost" => :build
depends_on "libwpg" => :build
depends_on "pkg-config" => :build
depends_on "icu4c"
depends_on "icu4c@75"
depends_on "librevenge"
depends_on "libwpd"

Expand All @@ -36,12 +36,15 @@
end

def install
system "./configure", "--without-docs",
"--disable-dependency-tracking",
"--enable-static=no",
"--disable-werror",
# icu4c 75+ needs C++17
ENV.append "CXXFLAGS", "-std=gnu++17"

system "./configure", "--disable-silent-rules",
"--disable-static",
"--disable-tests",
"--prefix=#{prefix}"
"--disable-werror",
"--without-docs",
*std_configure_args
system "make", "install"
end

Expand Down
Loading
Loading