git: dd57e87b6270 - main - lang/cjs: Update to 6.4.0

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Sun, 13 Jul 2025 20:00:48 UTC
The branch main has been updated by arrowd:

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

commit dd57e87b6270122c8f4faa05d56a9f89c1752c99
Author:     Pavel Timofeev <timp87@gmail.com>
AuthorDate: 2025-07-13 07:33:38 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-07-13 20:00:38 +0000

    lang/cjs: Update to 6.4.0
    
    PR:             288177
    Co-authored-by: Gleb Popov <arrowd@FreeBSD.org>
---
 lang/cjs/Makefile  | 33 ++++++++++++++++++---------------
 lang/cjs/distinfo  |  6 +++---
 lang/cjs/pkg-descr |  4 +++-
 3 files changed, 24 insertions(+), 19 deletions(-)

diff --git a/lang/cjs/Makefile b/lang/cjs/Makefile
index 260b0200c4ef..a752893bd4ea 100644
--- a/lang/cjs/Makefile
+++ b/lang/cjs/Makefile
@@ -1,14 +1,10 @@
 PORTNAME=	cjs
-PORTVERSION=	5.4.1
-PORTREVISION=	2
+DISTVERSION=	6.4.0
 CATEGORIES=	lang gnome
 DIST_SUBDIR=	gnome
 
-PATCH_SITES=	https://gitlab.gnome.org/GNOME/gjs/-/commit/
-PATCHFILES=	f93880c356108cfdbc8f9ebe318d18f256d7128d.patch:-p1 # https://gitlab.gnome.org/GNOME/gjs/-/issues/514
-
 MAINTAINER=	gnome@FreeBSD.org
-COMMENT=	JavaScript bindings based on gobject-introspection
+COMMENT=	Cinnamon Javascript interpreter
 WWW=		https://github.com/linuxmint/cjs
 
 LICENSE=		MIT LGPL20+
@@ -17,14 +13,14 @@ LICENSE_FILE_MIT=	${WRKSRC}/LICENSES/MIT.txt
 LICENSE_FILE_LGPL20+ =	${WRKSRC}/LICENSES/LGPL-2.0-or-later.txt
 
 LIB_DEPENDS=	libffi.so:devel/libffi \
-		libmozjs-78.so:lang/spidermonkey78
+		libmozjs-115.so:lang/spidermonkey115
 
-USES=		compiler:c++17-lang gettext gnome localbase meson pkgconfig \
-		python:build readline shebangfix xorg
-USE_GNOME=	cairo gdkpixbuf gtk30 introspection
+USES=		compiler:c++17-lang gnome meson pkgconfig \
+		python:build shebangfix xorg
+USE_GNOME=	cairo glib20 introspection
 USE_XORG=	x11 xext
-MESON_ARGS=	-Dinstalled_tests=false \
-		-Dprofiler=disabled
+MESON_ARGS=	-Dprofiler=disabled
+
 USE_LDCONFIG=	yes
 
 USE_GITHUB=	yes
@@ -34,8 +30,15 @@ SHEBANG_GLOB=	*.py
 
 PORTSCOUT=	limit:^[0-9.]+$$	# ignore master.mint* tags
 
-post-patch:
-	${REINPLACE_CMD} -e 's|--warn-error||g' \
-		${WRKSRC}/meson.build
+OPTIONS_DEFINE=		READLINE TEST
+OPTIONS_DEFAULT=	READLINE
+
+READLINE_MESON_ENABLED=	readline
+READLINE_USES=		readline
+
+TEST_BUILD_DEPENDS=	dbus-run-session:devel/dbus \
+			gtk3>0:x11-toolkits/gtk30 \
+			gtk4>0:x11-toolkits/gtk40
+TEST_MESON_FALSE=	skip_dbus_tests skip_gtk_tests
 
 .include <bsd.port.mk>
diff --git a/lang/cjs/distinfo b/lang/cjs/distinfo
index 9c843f20af8a..4c513062cc1f 100644
--- a/lang/cjs/distinfo
+++ b/lang/cjs/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1677355395
-SHA256 (gnome/linuxmint-cjs-5.4.1_GH0.tar.gz) = 212fa302f15ea955af6dc87fdba3898f751d078df91cb84b0e6615d5a2b84e15
-SIZE (gnome/linuxmint-cjs-5.4.1_GH0.tar.gz) = 794618
+TIMESTAMP = 1735624742
+SHA256 (gnome/linuxmint-cjs-6.4.0_GH0.tar.gz) = 55d730fdb331a9778a0d569e45c968ac68c8f218876e5d2d475cb5af21b6935a
+SIZE (gnome/linuxmint-cjs-6.4.0_GH0.tar.gz) = 874506
 SHA256 (gnome/f93880c356108cfdbc8f9ebe318d18f256d7128d.patch) = 254299e1b39987c53c3c4943fcc3c4e0b00a27442192243e3c7c1589969f2811
 SIZE (gnome/f93880c356108cfdbc8f9ebe318d18f256d7128d.patch) = 1674
diff --git a/lang/cjs/pkg-descr b/lang/cjs/pkg-descr
index 64609dc99656..58569c1f2562 100644
--- a/lang/cjs/pkg-descr
+++ b/lang/cjs/pkg-descr
@@ -1 +1,3 @@
-This module contains JavaScript bindings based on gobject-introspection.
+CJS fork of GJS for Cinnamon. It is functionally identical, and is only
+to maintain stability with the Cinnamon release cycle, and between various
+distributions.