git: 621c54d740a5 - main - www/py-yt-dlp-ejs: fix build on arm64

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 02 Oct 2026 08:41:24 UTC
The branch main has been updated by yuri:

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

commit 621c54d740a53d4d3be8e3c683074badc35dbad0
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-30 21:43:05 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-10-02 08:41:14 +0000

    www/py-yt-dlp-ejs: fix build on arm64
    
    distinfo os made arch-specific.
---
 www/py-yt-dlp-ejs/Makefile                     | 15 +++++++++++----
 www/py-yt-dlp-ejs/distinfo.aarch64             |  5 +++++
 www/py-yt-dlp-ejs/{distinfo => distinfo.amd64} |  0
 3 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/www/py-yt-dlp-ejs/Makefile b/www/py-yt-dlp-ejs/Makefile
index 4fe0e013e6b4..2d46b33c92b8 100644
--- a/www/py-yt-dlp-ejs/Makefile
+++ b/www/py-yt-dlp-ejs/Makefile
@@ -15,6 +15,9 @@ WWW=		https://github.com/yt-dlp/yt-dlp-ejs
 LICENSE=	UNLICENSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+ONLY_FOR_ARCHS=		aarch64 amd64
+ONLY_FOR_ARCHS_REASON=	distinfo was only generated for these architectures # feel free to add more architectures
+
 FETCH_DEPENDS=	npm:www/npm \
 		${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
 BUILD_DEPENDS=	deno:www/deno \
@@ -26,12 +29,18 @@ RUN_DEPENDS=	deno:www/deno
 USES=		python
 USE_PYTHON=	pep517 autoplist pytest
 
+TEST_ARGS=	--disable-plugin-autoload
+
 SHEBANG_GLOB=	*.py
 
 NO_ARCH=	yes
 
 DD=		${DISTDIR}/${DIST_SUBDIR}
 
+.include <bsd.port.pre.mk>
+
+DISTINFO_FILE=	${.CURDIR}/distinfo.${ARCH}
+
 do-fetch: # this target (1) downloads the source tarball, (2) extracts it to a temporary location, (3) runs npm ci to fetch and install node_modules, and (4) packages the node_modules directory into a separate tarball for later extraction during the build phase. This allows us to avoid running npm ci during the build phase which will require network access
 	@if ! [ -f ${DD}/${DISTNAME}${EXTRACT_SUFX} ] || \
 	    ! [ -f ${DD}/${PORTNAME}-node-modules-${DISTVERSION}${EXTRACT_SUFX} ]; then \
@@ -90,8 +99,6 @@ pre-test:
 	@${CP} ${WRKSRC}/dist/yt.solver.lib.min.js ${WRKSRC}/yt_dlp_ejs/yt/solver/lib.min.js
 
 # tests as of 0.8.0:
-# Results (0.15s):
-#          3 passed
-#          1 warning
+# 1 passed in 0.01s
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/www/py-yt-dlp-ejs/distinfo.aarch64 b/www/py-yt-dlp-ejs/distinfo.aarch64
new file mode 100644
index 000000000000..bbe45b6f2852
--- /dev/null
+++ b/www/py-yt-dlp-ejs/distinfo.aarch64
@@ -0,0 +1,5 @@
+TIMESTAMP = 1790802905
+SHA256 (yt-dlp-ejs/yt_dlp_ejs-0.8.0.tar.gz) = d5fa1639f63b5c4af8d932495f60689d5370f1a095782c944f7f62a303eb104e
+SIZE (yt-dlp-ejs/yt_dlp_ejs-0.8.0.tar.gz) = 96571
+SHA256 (yt-dlp-ejs/yt-dlp-ejs-node-modules-0.8.0.tar.gz) = 1e31d2ac9fc5cc0b512a48d0b26bb5f42503035b60348334f157c6b48a0d3e65
+SIZE (yt-dlp-ejs/yt-dlp-ejs-node-modules-0.8.0.tar.gz) = 15268783
diff --git a/www/py-yt-dlp-ejs/distinfo b/www/py-yt-dlp-ejs/distinfo.amd64
similarity index 100%
rename from www/py-yt-dlp-ejs/distinfo
rename to www/py-yt-dlp-ejs/distinfo.amd64