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/
This commit is contained in:
@@ -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
|
||||
|
||||
24
devel/p5-Hash-Objectify/Makefile
Normal file
24
devel/p5-Hash-Objectify/Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= Hash-Objectify
|
||||
PORTVERSION= 0.008
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= CPAN
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= sunpoet@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>
|
||||
3
devel/p5-Hash-Objectify/distinfo
Normal file
3
devel/p5-Hash-Objectify/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1491407096
|
||||
SHA256 (Hash-Objectify-0.008.tar.gz) = 236d5829cdebf3ba648d34e1295cd9099a20506d8d0284668e617e0058cebeed
|
||||
SIZE (Hash-Objectify-0.008.tar.gz) = 17750
|
||||
11
devel/p5-Hash-Objectify/pkg-descr
Normal file
11
devel/p5-Hash-Objectify/pkg-descr
Normal file
@@ -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/
|
||||
2
devel/p5-Hash-Objectify/pkg-plist
Normal file
2
devel/p5-Hash-Objectify/pkg-plist
Normal file
@@ -0,0 +1,2 @@
|
||||
%%SITE_PERL%%/Hash/Objectify.pm
|
||||
%%PERL5_MAN3%%/Hash::Objectify.3.gz
|
||||
Reference in New Issue
Block a user