git: 810fc6cd1f61 - main - devel/rubygem-bin_struct: Add rubygem-bin_struct 0.3.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 02 Jan 2025 02:50:18 UTC
The branch main has been updated by sunpoet:

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

commit 810fc6cd1f618ee456af2fe1a731cb536d0324a9
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-01-02 02:42:15 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-01-02 02:42:15 +0000

    devel/rubygem-bin_struct: Add rubygem-bin_struct 0.3.0
    
    BinStruct provides a simple way to create and dissect binary data. It is an
    extraction from PacketGen 3.x Fields.
---
 devel/Makefile                     |  1 +
 devel/rubygem-bin_struct/Makefile  | 16 ++++++++++++++++
 devel/rubygem-bin_struct/distinfo  |  3 +++
 devel/rubygem-bin_struct/pkg-descr |  2 ++
 4 files changed, 22 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index d21c9e61a8fc..07cd7922c51a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7036,6 +7036,7 @@
     SUBDIR += rubygem-bcp47_spec
     SUBDIR += rubygem-benelux
     SUBDIR += rubygem-better_html
+    SUBDIR += rubygem-bin_struct
     SUBDIR += rubygem-bin_utils
     SUBDIR += rubygem-bindata
     SUBDIR += rubygem-bindex
diff --git a/devel/rubygem-bin_struct/Makefile b/devel/rubygem-bin_struct/Makefile
new file mode 100644
index 000000000000..92858255079f
--- /dev/null
+++ b/devel/rubygem-bin_struct/Makefile
@@ -0,0 +1,16 @@
+PORTNAME=	bin_struct
+PORTVERSION=	0.3.0
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Binary dissector and generator
+WWW=		https://github.com/lemontree55/bin_struct
+
+LICENSE=	MIT
+
+USES=		gem
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-bin_struct/distinfo b/devel/rubygem-bin_struct/distinfo
new file mode 100644
index 000000000000..5d6d848ab760
--- /dev/null
+++ b/devel/rubygem-bin_struct/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1735705125
+SHA256 (rubygem/bin_struct-0.3.0.gem) = c956fee5689c68d24636a4e1d3dfe435eebe68b9472f1a02106a154c3d645882
+SIZE (rubygem/bin_struct-0.3.0.gem) = 21504
diff --git a/devel/rubygem-bin_struct/pkg-descr b/devel/rubygem-bin_struct/pkg-descr
new file mode 100644
index 000000000000..8f07ce60544d
--- /dev/null
+++ b/devel/rubygem-bin_struct/pkg-descr
@@ -0,0 +1,2 @@
+BinStruct provides a simple way to create and dissect binary data. It is an
+extraction from PacketGen 3.x Fields.