git: 859c31e20942 - main - lang/cjs: Fix building with new gobject-introspection

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Fri, 21 Mar 2025 06:45:46 UTC
The branch main has been updated by arrowd:

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

commit 859c31e209427a07dc2ff28eecfec022748e577e
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-03-21 05:51:50 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-03-21 06:45:40 +0000

    lang/cjs: Fix building with new gobject-introspection
---
 lang/cjs/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lang/cjs/Makefile b/lang/cjs/Makefile
index 5e4dbbf0dc3c..260b0200c4ef 100644
--- a/lang/cjs/Makefile
+++ b/lang/cjs/Makefile
@@ -34,4 +34,8 @@ SHEBANG_GLOB=	*.py
 
 PORTSCOUT=	limit:^[0-9.]+$$	# ignore master.mint* tags
 
+post-patch:
+	${REINPLACE_CMD} -e 's|--warn-error||g' \
+		${WRKSRC}/meson.build
+
 .include <bsd.port.mk>