git: 300b8f996716 - main - net/py-urllib3-future: Add UTLS option

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 11 Jul 2026 12:24:37 UTC
The branch main has been updated by sunpoet:

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

commit 300b8f996716d586d8623c4eae88c6b2ecabafc7
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-07-11 11:47:29 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-07-11 12:21:24 +0000

    net/py-urllib3-future: Add UTLS option
---
 net/py-urllib3-future/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/net/py-urllib3-future/Makefile b/net/py-urllib3-future/Makefile
index f31310e0630b..b80f096ebcb0 100644
--- a/net/py-urllib3-future/Makefile
+++ b/net/py-urllib3-future/Makefile
@@ -23,19 +23,26 @@ USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
-OPTIONS_DEFINE=	BROTLI QH3 RTLS SOCKS WS ZSTD
+OPTIONS_DEFINE=	BROTLI QH3 RTLS SOCKS UTLS WS ZSTD
 QH3_DESC=	QUIC and HTTP/3 support
 RTLS_DESC=	Rustls-backed TLS support
+UTLS_DESC=	BoringSSL-backed TLS support
 WS_DESC=	WebSockets support
 
 BROTLI_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}brotli>=1.0.9:archivers/py-brotli@${PY_FLAVOR}
 SOCKS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}python-socks>=2.0<2.8.1_99:net/py-python-socks@${PY_FLAVOR}
 QH3_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}qh3>=1.5.4<2.0.0:www/py-qh3@${PY_FLAVOR}
 RTLS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}rtls>=0:security/py-rtls@${PY_FLAVOR}
+UTLS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}brotli>=1.2.0:archivers/py-brotli@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}utls>=0:security/py-utls@${PY_FLAVOR}
 WS_RUN_DEPENDS=		${PYTHON_PKGNAMEPREFIX}wsproto>=1.2<2:net/py-wsproto@${PY_FLAVOR}
 
 .include <bsd.port.pre.mk>
 
+.if ${PORT_OPTIONS:MUTLS} && ${PYTHON_REL} < 31400
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}zstandard>=0.18.0:archivers/py-zstandard@${PY_FLAVOR}
+.endif
+
 .if ${PORT_OPTIONS:MZSTD} && ${PYTHON_REL} < 31400
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}zstandard>=0.18.0:archivers/py-zstandard@${PY_FLAVOR}
 .endif