git: 36f9207f15e8 - main - devel/rubygem-smart_properties: New port

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 22 Nov 2022 13:05:01 UTC
The branch main has been updated by bofh:

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

commit 36f9207f15e8014cb1f3cde1456a1ab4caee8d48
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-11-22 13:03:44 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-11-22 13:04:54 +0000

    devel/rubygem-smart_properties: New port
    
    SmartProperties are a more flexible and feature-rich alternative to
    traditional Ruby accessors. They provide support for input conversion,
    input validation, specifying default values and presence checking.
    
    Sponsored by:   Nepustil
---
 devel/Makefile                           |  1 +
 devel/rubygem-smart_properties/Makefile  | 22 ++++++++++++++++++++++
 devel/rubygem-smart_properties/distinfo  |  3 +++
 devel/rubygem-smart_properties/pkg-descr |  3 +++
 4 files changed, 29 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 335e7f13c96c..df739af8f4c4 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7014,6 +7014,7 @@
     SUBDIR += rubygem-slop
     SUBDIR += rubygem-slop3
     SUBDIR += rubygem-slow_enumerator_tools
+    SUBDIR += rubygem-smart_properties
     SUBDIR += rubygem-snaky_hash
     SUBDIR += rubygem-snowplow-tracker
     SUBDIR += rubygem-soap4r
diff --git a/devel/rubygem-smart_properties/Makefile b/devel/rubygem-smart_properties/Makefile
new file mode 100644
index 000000000000..d930cdd60d85
--- /dev/null
+++ b/devel/rubygem-smart_properties/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	smart_properties
+PORTVERSION=	1.17.0
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	bofh@FreeBSD.org
+COMMENT=	Flexible and feature-rich alternative to Ruby accessors
+WWW=		https://github.com/t6d/smart_properties
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	rubygem-pry>0:devel/rubygem-pry \
+		rubygem-rake>=13.0:devel/rubygem-rake \
+		rubygem-rspec>=3.0:devel/rubygem-rspec
+
+USES=		gem
+USE_RUBY=	yes
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-smart_properties/distinfo b/devel/rubygem-smart_properties/distinfo
new file mode 100644
index 000000000000..6aeeb0b508a4
--- /dev/null
+++ b/devel/rubygem-smart_properties/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1669119645
+SHA256 (rubygem/smart_properties-1.17.0.gem) = f9323f8122e932341756ddec8e0ac9ec6e238408a7661508be99439ca6d6384b
+SIZE (rubygem/smart_properties-1.17.0.gem) = 23040
diff --git a/devel/rubygem-smart_properties/pkg-descr b/devel/rubygem-smart_properties/pkg-descr
new file mode 100644
index 000000000000..1e2f1665955f
--- /dev/null
+++ b/devel/rubygem-smart_properties/pkg-descr
@@ -0,0 +1,3 @@
+SmartProperties are a more flexible and feature-rich alternative to traditional
+Ruby accessors. They provide support for input conversion, input validation,
+specifying default values and presence checking.