svn commit: r437807 - in head/devel: . p5-Hash-Objectify
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Wed Apr 5 19:55:30 UTC 2017
Author: sunpoet
Date: Wed Apr 5 19:55:28 2017
New Revision: 437807
URL: https://svnweb.freebsd.org/changeset/ports/437807
Log:
Add p5-Hash-Objectify 0.008
Hash::Objectify turns a hash reference into a simple object with accessors for
each of the keys.
One application of this module could be to create lightweight response objects
without the extra work of setting up an entire response class with the framework
of your choice.
Using Hash::Objectify is slower than accessing the keys of the hash directly,
but does provide "typo protection" since a misspelled method is an error.
WWW: http://search.cpan.org/dist/Hash-Objectify/
Added:
head/devel/p5-Hash-Objectify/
head/devel/p5-Hash-Objectify/Makefile (contents, props changed)
head/devel/p5-Hash-Objectify/distinfo (contents, props changed)
head/devel/p5-Hash-Objectify/pkg-descr (contents, props changed)
head/devel/p5-Hash-Objectify/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Wed Apr 5 19:04:41 2017 (r437806)
+++ head/devel/Makefile Wed Apr 5 19:55:28 2017 (r437807)
@@ -2547,6 +2547,7 @@
SUBDIR += p5-Hash-MultiKey
SUBDIR += p5-Hash-MultiValue
SUBDIR += p5-Hash-NoRef
+ SUBDIR += p5-Hash-Objectify
SUBDIR += p5-Hash-Slice
SUBDIR += p5-Hash-Union
SUBDIR += p5-Hash-Util-FieldHash-Compat
Added: head/devel/p5-Hash-Objectify/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Hash-Objectify/Makefile Wed Apr 5 19:55:28 2017 (r437807)
@@ -0,0 +1,24 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= Hash-Objectify
+PORTVERSION= 0.008
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Create objects from hashes on the fly
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= p5-Class-XSAccessor>=0:devel/p5-Class-XSAccessor
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+TEST_DEPENDS= p5-Test-Fatal>=0:devel/p5-Test-Fatal
+
+NO_ARCH= yes
+USES= perl5
+USE_PERL5= configure
+
+.include <bsd.port.mk>
Added: head/devel/p5-Hash-Objectify/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Hash-Objectify/distinfo Wed Apr 5 19:55:28 2017 (r437807)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1491407096
+SHA256 (Hash-Objectify-0.008.tar.gz) = 236d5829cdebf3ba648d34e1295cd9099a20506d8d0284668e617e0058cebeed
+SIZE (Hash-Objectify-0.008.tar.gz) = 17750
Added: head/devel/p5-Hash-Objectify/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Hash-Objectify/pkg-descr Wed Apr 5 19:55:28 2017 (r437807)
@@ -0,0 +1,11 @@
+Hash::Objectify turns a hash reference into a simple object with accessors for
+each of the keys.
+
+One application of this module could be to create lightweight response objects
+without the extra work of setting up an entire response class with the framework
+of your choice.
+
+Using Hash::Objectify is slower than accessing the keys of the hash directly,
+but does provide "typo protection" since a misspelled method is an error.
+
+WWW: http://search.cpan.org/dist/Hash-Objectify/
Added: head/devel/p5-Hash-Objectify/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Hash-Objectify/pkg-plist Wed Apr 5 19:55:28 2017 (r437807)
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/Hash/Objectify.pm
+%%PERL5_MAN3%%/Hash::Objectify.3.gz
More information about the svn-ports-head
mailing list