Skip to content

Commit e70eef8

Browse files
authored
Merge pull request #252206 from Homebrew/[email protected]
icu4c@78 78.1 (new formula)
2 parents a08083a + 07a8e60 commit e70eef8

File tree

4 files changed

+65
-26
lines changed

4 files changed

+65
-26
lines changed

Aliases/icu4c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../Formula/i/icu4c@77.rb
1+
../Formula/i/icu4c@78.rb

Formula/i/[email protected]

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,20 @@ class Icu4cAT77 < Formula
55
version "77.1"
66
sha256 "588e431f77327c39031ffbb8843c0e3bc122c211374485fa87dc5f3faff24061"
77
license "ICU"
8-
9-
# We allow the livecheck to detect new `icu4c` major versions in order to
10-
# automate version bumps. To make sure PRs are created correctly, we output
11-
# an error during installation to notify when a new formula is needed.
12-
livecheck do
13-
url :stable
14-
regex(/^release[._-]v?(\d+(?:[.-]\d+)+)$/i)
15-
strategy :git do |tags, regex|
16-
tags.filter_map { |tag| tag[regex, 1]&.tr("-", ".") }
17-
end
18-
end
19-
20-
no_autobump! because: :requires_manual_review
8+
revision 1
219

2210
bottle do
23-
sha256 cellar: :any, arm64_tahoe: "57af4061e0e0d0b6266470343d2db56fc51a0cbaa1bd459bd3bee3c916c0fab9"
24-
sha256 cellar: :any, arm64_sequoia: "19f6b5fef0cdf1dfc7f136ca103348ec8530ffdf8012273f6ee4a6159cdfaf75"
25-
sha256 cellar: :any, arm64_sonoma: "f2b3a9d78e046b3b1ca1f06227272c0ea25490bd8efa4c98a33ffdcc734452ff"
26-
sha256 cellar: :any, arm64_ventura: "425a38eb7a7a1bb54dd25ac58194ef89d79caf1777a01fb244ed37487c1f7d80"
27-
sha256 cellar: :any, sonoma: "54d609febedd08e8a4a825435d85f6d4db045f586523edb8965434e8e9c93fa6"
28-
sha256 cellar: :any, ventura: "6f04d1757707495212ff68722bab629766329874ef7d0531e756903dff5022cb"
29-
sha256 cellar: :any_skip_relocation, arm64_linux: "6d633e676a17c418e7e1e6e58d41a7c61856f06cf198a3efa97e4a5489ab0196"
30-
sha256 cellar: :any_skip_relocation, x86_64_linux: "f82d4ca07fbdcf99cb5553ae9cf298bbff475a465f13e1c5d934dcbcb1e14741"
11+
sha256 cellar: :any, arm64_tahoe: "e48aa1a83777472421aeeb4d8163fed5b6012c4882b6024e3025edff3dde69f7"
12+
sha256 cellar: :any, arm64_sequoia: "d81c23dafe82a94efc115335fd292b849fa8e4809bb333764971e8f20001ded8"
13+
sha256 cellar: :any, arm64_sonoma: "9cdb1eeea1514d12a167a01688b43072ed358e8a0df0e1110e123cc13d214210"
14+
sha256 cellar: :any, sonoma: "919cc9bb093792d0a37354eb95974feec4d36c89b422484ac1b83f142a8780c1"
15+
sha256 cellar: :any_skip_relocation, arm64_linux: "7cb1b29d05dbb75baf6068403a8b04131e5d0eb5ac0d36da8453506908ee6a46"
16+
sha256 cellar: :any_skip_relocation, x86_64_linux: "ab9144b3d86a3f6ddee00e53aa7d0aa6ea6d0037f454078f6dd1b336057679ee"
3117
end
3218

33-
keg_only :shadowed_by_macos, "macOS provides libicucore.dylib (but nothing else)"
19+
keg_only :versioned_formula
3420

3521
def install
36-
odie "Major version bumps need a new formula!" if version.major.to_s != name[/@(\d+)$/, 1]
37-
3822
args = %w[
3923
--disable-samples
4024
--disable-tests

Formula/i/[email protected]

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
class Icu4cAT78 < Formula
2+
desc "C/C++ and Java libraries for Unicode and globalization"
3+
homepage "https://icu.unicode.org/home"
4+
url "https://github.com/unicode-org/icu/releases/download/release-78.1/icu4c-78.1-sources.tgz"
5+
sha256 "6217f58ca39b23127605cfc6c7e0d3475fe4b0d63157011383d716cb41617886"
6+
license "ICU"
7+
8+
# We allow the livecheck to detect new `icu4c` major versions in order to
9+
# automate version bumps. To make sure PRs are created correctly, we output
10+
# an error during installation to notify when a new formula is needed.
11+
livecheck do
12+
url :stable
13+
regex(/^release[._-]v?(\d+(?:[.-]\d+)+)$/i)
14+
strategy :git do |tags, regex|
15+
tags.filter_map { |tag| tag[regex, 1]&.tr("-", ".") }
16+
end
17+
end
18+
19+
bottle do
20+
sha256 cellar: :any, arm64_tahoe: "21cb6bc12dba28870ae05577dd4b8ec3019e6c2d7d8813518a068deccbff2bd5"
21+
sha256 cellar: :any, arm64_sequoia: "020c5b916bec54ecc4b767886c5077401245cde08ffee81e1d08b393fc907376"
22+
sha256 cellar: :any, arm64_sonoma: "108f8e427aa09d1f639c1675e5477197f65081e5a9dfa9c3ce3327fa896711ea"
23+
sha256 cellar: :any, sonoma: "36ae0d43501c1a63baf42bf9574684a3d64b58bcc034f641bcb1b68efac4ff74"
24+
sha256 cellar: :any_skip_relocation, arm64_linux: "75e1823a9b274e7d97377ee681a6a54509125b3350e060fca17b4bd344f7a10e"
25+
sha256 cellar: :any_skip_relocation, x86_64_linux: "74b3f8216aba75f00256dc91e060e2569f65908acbb705a2dd8f61af4022da1b"
26+
end
27+
28+
keg_only :shadowed_by_macos, "macOS provides libicucore.dylib (but nothing else)"
29+
30+
def install
31+
odie "Major version bumps need a new formula!" if version.major.to_s != name[/@(\d+)$/, 1]
32+
33+
args = %w[
34+
--disable-samples
35+
--disable-tests
36+
--enable-static
37+
--with-library-bits=64
38+
]
39+
40+
cd "source" do
41+
system "./configure", *args, *std_configure_args
42+
system "make"
43+
system "make", "install"
44+
end
45+
end
46+
47+
test do
48+
if File.exist? "/usr/share/dict/words"
49+
system bin/"gendict", "--uchars", "/usr/share/dict/words", "dict"
50+
else
51+
(testpath/"hello").write "hello\nworld\n"
52+
system bin/"gendict", "--uchars", "hello", "dict"
53+
end
54+
end
55+
end

audit_exceptions/versioned_keg_only_allowlist.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"gcc@14",
1313
1414
15-
"icu4c@77",
15+
"icu4c@78",
1616
"libpeas@1",
1717
"libsigc++@2",
1818
"libxml++@3",

0 commit comments

Comments
 (0)