git: ca59435a1990 - main - devel/rubygem-oj313: Add rubygem-oj313 3.13.23 (copied from rubygem-oj)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 27 May 2023 04:25:28 UTC
The branch main has been updated by sunpoet:

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

commit ca59435a1990e09cbf0c9ba71524764ed16563c4
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-05-27 04:06:44 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-05-27 04:06:44 +0000

    devel/rubygem-oj313: Add rubygem-oj313 3.13.23 (copied from rubygem-oj)
    
    - Add PORTSCOUT
---
 devel/Makefile                |  1 +
 devel/rubygem-oj313/Makefile  | 24 ++++++++++++++++++++++++
 devel/rubygem-oj313/distinfo  |  3 +++
 devel/rubygem-oj313/pkg-descr |  1 +
 4 files changed, 29 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 04a333ad2344..5e8b3e8379d7 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7018,6 +7018,7 @@
     SUBDIR += rubygem-octopress-hooks
     SUBDIR += rubygem-oj
     SUBDIR += rubygem-oj-introspect
+    SUBDIR += rubygem-oj313
     SUBDIR += rubygem-omniauth_crowd
     SUBDIR += rubygem-omnibus
     SUBDIR += rubygem-open3
diff --git a/devel/rubygem-oj313/Makefile b/devel/rubygem-oj313/Makefile
new file mode 100644
index 000000000000..cbaf3c3be0e0
--- /dev/null
+++ b/devel/rubygem-oj313/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	oj
+PORTVERSION=	3.13.23
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+PKGNAMESUFFIX=	313
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Fast JSON parser and serializer
+WWW=		https://www.ohler.com/oj/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		gem
+
+PORTSCOUT=	limit:^3\.13\.
+
+# TODO: find a better way to do this
+# Install all header files, some of them are required by devel/rubygem-oj-introspect
+post-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/ext/oj
+	${INSTALL_DATA} ${WRKSRC}/ext/oj/*.h ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/ext/oj/
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-oj313/distinfo b/devel/rubygem-oj313/distinfo
new file mode 100644
index 000000000000..dde432521acf
--- /dev/null
+++ b/devel/rubygem-oj313/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1669998438
+SHA256 (rubygem/oj-3.13.23.gem) = 206dfdc4020ad9974705037f269cfba211d61b7662a58c717cce771829ccef51
+SIZE (rubygem/oj-3.13.23.gem) = 268288
diff --git a/devel/rubygem-oj313/pkg-descr b/devel/rubygem-oj313/pkg-descr
new file mode 100644
index 000000000000..e3b98641a2bc
--- /dev/null
+++ b/devel/rubygem-oj313/pkg-descr
@@ -0,0 +1 @@
+The fastest JSON parser and object serializer.