git: 21fd08601672 - main - devel/rubygem-ostruct: Add rubygem-ostruct 0.5.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 21 Dec 2021 19:41:11 UTC
The branch main has been updated by sunpoet:

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

commit 21fd08601672907ed58387c865e18b6c414b40cb
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-12-21 18:38:52 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-12-21 18:38:52 +0000

    devel/rubygem-ostruct: Add rubygem-ostruct 0.5.0
    
    An OpenStruct is a data structure, similar to a Hash, that allows the definition
    of arbitrary attributes with their accompanying values. This is accomplished by
    using Ruby's metaprogramming to define methods on the class itself.
    
    WWW: https://github.com/ruby/ostruct
---
 devel/Makefile                  |  1 +
 devel/rubygem-ostruct/Makefile  | 20 ++++++++++++++++++++
 devel/rubygem-ostruct/distinfo  |  3 +++
 devel/rubygem-ostruct/pkg-descr |  5 +++++
 4 files changed, 29 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 1c8d3dc5e37d..da3a3b0a6854 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6598,6 +6598,7 @@
     SUBDIR += rubygem-optparse
     SUBDIR += rubygem-orm_adapter
     SUBDIR += rubygem-os
+    SUBDIR += rubygem-ostruct
     SUBDIR += rubygem-p4ruby
     SUBDIR += rubygem-paint
     SUBDIR += rubygem-paint1
diff --git a/devel/rubygem-ostruct/Makefile b/devel/rubygem-ostruct/Makefile
new file mode 100644
index 000000000000..efb83ddaacd7
--- /dev/null
+++ b/devel/rubygem-ostruct/Makefile
@@ -0,0 +1,20 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	ostruct
+PORTVERSION=	0.5.0
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Class to build custom data structures, similar to a Hash
+
+LICENSE=	BSD2CLAUSE RUBY
+LICENSE_COMB=	dual
+LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/LICENSE.txt
+
+USES=		gem
+USE_RUBY=	yes
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-ostruct/distinfo b/devel/rubygem-ostruct/distinfo
new file mode 100644
index 000000000000..15c0dfb77eda
--- /dev/null
+++ b/devel/rubygem-ostruct/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1638556450
+SHA256 (rubygem/ostruct-0.5.0.gem) = 0fee2ab704fc9f9631076255c04147e18facd1e18d0a8a486b30f6a2b6fd52a0
+SIZE (rubygem/ostruct-0.5.0.gem) = 11776
diff --git a/devel/rubygem-ostruct/pkg-descr b/devel/rubygem-ostruct/pkg-descr
new file mode 100644
index 000000000000..3bf4cd4b4928
--- /dev/null
+++ b/devel/rubygem-ostruct/pkg-descr
@@ -0,0 +1,5 @@
+An OpenStruct is a data structure, similar to a Hash, that allows the definition
+of arbitrary attributes with their accompanying values. This is accomplished by
+using Ruby's metaprogramming to define methods on the class itself.
+
+WWW: https://github.com/ruby/ostruct