git: b5694e0fce8a - main - www/py-yt-dlp-ejs: Add USES=certs:fetch

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 09 Mar 2026 16:13:29 UTC
The branch main has been updated by yuri:

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

commit b5694e0fce8add0f2aff607f1ef701d74dd68988
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-03-09 15:19:28 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-03-09 16:13:25 +0000

    www/py-yt-dlp-ejs: Add USES=certs:fetch
    
    npm requires this for some users/systems and not for others.
    It's not clear what the differentiating factor is.
    See details in the bug report.
    
    PR:             268638
    Reported by:    James TD Smith
---
 www/py-yt-dlp-ejs/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/py-yt-dlp-ejs/Makefile b/www/py-yt-dlp-ejs/Makefile
index b8cf81136b01..75325b4efb45 100644
--- a/www/py-yt-dlp-ejs/Makefile
+++ b/www/py-yt-dlp-ejs/Makefile
@@ -22,7 +22,7 @@ BUILD_DEPENDS=	deno:www/deno \
 		${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
 RUN_DEPENDS=	deno:www/deno
 
-USES=		python
+USES=		certs:fetch python
 USE_PYTHON=	pep517 autoplist pytest
 
 SHEBANG_GLOB=	*.py
@@ -47,7 +47,7 @@ do-fetch: # this target (1) downloads the source tarball, (2) extracts it to a t
 			${ECHO_MSG} "====> Generating package-lock.json (it will be saved to ${FILESDIR})"; \
 		fi && \
 		cd ${WRKDIR}/${DISTNAME} && \
-			${SETENV} HOME=${WRKDIR} npm ci && \
+			${SETENV} NODE_EXTRA_CA_CERTS=${LOCALBASE}/share/certs/ca-root-nss.crt HOME=${WRKDIR} npm ci && \
 		if ! [ -f ${FILESDIR}/package-lock.json ]; then \
 			${ECHO_MSG} "====> Saving generated package-lock.json to ${FILESDIR}"; \
 			${CP} ${WRKDIR}/${DISTNAME}/package-lock.json ${FILESDIR}/; \