git: 6df66a299232 - main - devel/mongo-c-driver: add ICU option

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Sun, 26 Feb 2023 21:29:48 UTC
The branch main has been updated by fernape:

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

commit 6df66a2992321bf9ae69b0ac2023215960ebe3a9
Author:     Hiroo Ono <hiroo.ono+freebsd@gmail.com>
AuthorDate: 2023-02-26 19:33:43 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-02-26 21:24:58 +0000

    devel/mongo-c-driver: add ICU option
    
    For non ASCII user name.
    
    PR:             269756
    Reported by:    hiroo.ono+freebsd@gmail.com
    Approved by:    ports@bsdserwis.com (maintainer)
---
 devel/mongo-c-driver/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/devel/mongo-c-driver/Makefile b/devel/mongo-c-driver/Makefile
index 387d02a760fa..9ef585767118 100644
--- a/devel/mongo-c-driver/Makefile
+++ b/devel/mongo-c-driver/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mongo-c-driver
 DISTVERSION=	1.23.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel
 MASTER_SITES=	https://github.com/mongodb/${PORTNAME}/releases/download/${DISTVERSION}/
 
@@ -22,7 +22,6 @@ CFLAGS+=	-D__BSD_VISIBLE=1
 
 CMAKE_OFF=	BUILD_TESTING \
 		ENABLE_EXAMPLES \
-		ENABLE_ICU \
 		ENABLE_TESTS \
 		ENABLE_UNINSTALL
 CMAKE_ON=	ENABLE_MONGOC \
@@ -30,7 +29,7 @@ CMAKE_ON=	ENABLE_MONGOC \
 CMAKE_ARGS=	-DENABLE_BSON=SYSTEM \
 		-DENABLE_ZLIB=SYSTEM
 
-OPTIONS_DEFINE=		CRYPTOPROFILE DOCS RDTSCP SASL SNAPPY SSL
+OPTIONS_DEFINE=		CRYPTOPROFILE DOCS ICU RDTSCP SASL SNAPPY SSL
 OPTIONS_DEFAULT=	SSL
 OPTIONS_SUB=		yes
 
@@ -40,6 +39,10 @@ RDTSCP_DESC=		Fast performance counters on Intel using the RDTSCP instruction
 DOCS_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR}
 DOCS_CMAKE_ON=		-DENABLE_HTML_DOCS=ON -DENABLE_MAN_PAGES=ON
 
+ICU_LIB_DEPENDS=	libicudata.so:devel/icu
+ICU_CMAKE_ON=		-DENABLE_ICU=ON
+ICU_CMAKE_OFF=		-DENABLE_ICU=OFF
+
 RDTSCP_CMAKE_ON=	-DENABLE_RDTSCP=ON
 RDTSCP_CMAKE_OFF=	-DENABLE_RDTSCP=OFF