git: 67b0463de232 - main - devel/rubygem-json2: Add rubygem-json2 2.21.2 (copied from rubygem-json)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 29 Sep 2026 19:27:32 UTC
The branch main has been updated by sunpoet:

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

commit 67b0463de2328af218cf2627c185dbbb324707eb
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-09-29 18:55:05 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-09-29 19:17:29 +0000

    devel/rubygem-json2: Add rubygem-json2 2.21.2 (copied from rubygem-json)
    
    - Add PORTSCOUT
---
 devel/Makefile                |  1 +
 devel/rubygem-json2/Makefile  | 23 +++++++++++++++++++++++
 devel/rubygem-json2/distinfo  |  3 +++
 devel/rubygem-json2/pkg-descr |  3 +++
 4 files changed, 30 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 9ca42290bb96..06c8a56ed084 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7926,6 +7926,7 @@
     SUBDIR += rubygem-json-schema
     SUBDIR += rubygem-json-schema-gitlab
     SUBDIR += rubygem-json1
+    SUBDIR += rubygem-json2
     SUBDIR += rubygem-json_pure
     SUBDIR += rubygem-json_pure1
     SUBDIR += rubygem-json_schema
diff --git a/devel/rubygem-json2/Makefile b/devel/rubygem-json2/Makefile
new file mode 100644
index 000000000000..d000d6826d97
--- /dev/null
+++ b/devel/rubygem-json2/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	json
+PORTVERSION=	2.21.2
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+PKGNAMESUFFIX=	2
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	JSON implementation as a Ruby extension in C
+WWW=		https://ruby.github.io/json/ \
+		https://github.com/ruby/json
+
+LICENSE=	BSD2CLAUSE RUBY
+LICENSE_COMB=	dual
+LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/BSDL
+LICENSE_FILE_RUBY=	${WRKSRC}/COPYING
+
+USES=		cpe gem
+
+CPE_VENDOR=	ruby-lang
+
+PORTSCOUT=	limit:^2\.
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-json2/distinfo b/devel/rubygem-json2/distinfo
new file mode 100644
index 000000000000..0d852b3bd2aa
--- /dev/null
+++ b/devel/rubygem-json2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1787588200
+SHA256 (rubygem/json-2.21.2.gem) = 1f1d3b7cf2b3ba1a69beca0bb6db13d5438b80bff3cd54cdaaa620b9b07c1c6a
+SIZE (rubygem/json-2.21.2.gem) = 112640
diff --git a/devel/rubygem-json2/pkg-descr b/devel/rubygem-json2/pkg-descr
new file mode 100644
index 000000000000..dbc5c9403654
--- /dev/null
+++ b/devel/rubygem-json2/pkg-descr
@@ -0,0 +1,3 @@
+This library can parse JSON texts and generate them from ruby data structures.
+This port implemented in C and comes with its own unicode conversion functions
+and a parser generated by the Ragel State Machine Compiler.