git: eb6e7079decc - main - devel/libzim: Support ICU 76.1

From: Olivier Certner <olce_at_FreeBSD.org>
Date: Thu, 16 Jan 2025 13:49:38 UTC
The branch main has been updated by olce:

URL: https://cgit.FreeBSD.org/ports/commit/?id=eb6e7079deccdb7b8b7376f6df1c4af91eed68b8

commit eb6e7079deccdb7b8b7376f6df1c4af91eed68b8
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2025-01-16 13:09:50 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2025-01-16 13:48:23 +0000

    devel/libzim: Support ICU 76.1
    
    The added patch is an upstream's candidate to fix the build against ICU
    76.1, and will make it in the next release in this or another form.
    
    In the meantime, adopt it in the ports tree as is as it does not disturb
    the build against older versions of ICU.
    
    This is a maintainer update (olce.freebsd.ports@certner.fr).
    
    PR:             283542
    Sponsored by:   The FreeBSD Foundation
---
 devel/libzim/files/patch-meson.build | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/devel/libzim/files/patch-meson.build b/devel/libzim/files/patch-meson.build
new file mode 100644
index 000000000000..0bbe8c48a233
--- /dev/null
+++ b/devel/libzim/files/patch-meson.build
@@ -0,0 +1,24 @@
+Candidate patch coming from https://github.com/openzim/libzim/pull/936, likely
+to make it in one way or the other into next release (in which case, remove this
+local patch).
+
+--- meson.build.orig	2024-08-28 18:56:57 UTC
++++ meson.build
+@@ -77,9 +77,15 @@ if xapian_dep.found()
+ endif
+ 
+ if xapian_dep.found()
+-    icu_dep = dependency('icu-i18n', static:static_linkage)
++    icu_dep = [
++        dependency('icu-i18n', static:static_linkage),
++        dependency('icu-uc', static:static_linkage)
++    ]
+ else
+-    icu_dep = dependency('icu-i18n', required:false, static:static_linkage)
++    icu_dep = [
++        dependency('icu-i18n', required:false, static:static_linkage),
++        dependency('icu-uc', required:false, static:static_linkage)
++    ]
+ endif
+ 
+ gtest_dep = dependency('gtest', version: '>=1.10.0', main:true, fallback:['gtest', 'gtest_main_dep'], required:false)