From owner-svn-ports-all@freebsd.org Wed Apr 5 19:55:30 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9DA71D2F3D8; Wed, 5 Apr 2017 19:55:30 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7AD46B02; Wed, 5 Apr 2017 19:55:30 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v35JtThX039332; Wed, 5 Apr 2017 19:55:29 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v35JtTqG039327; Wed, 5 Apr 2017 19:55:29 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201704051955.v35JtTqG039327@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Wed, 5 Apr 2017 19:55:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r437807 - in head/devel: . p5-Hash-Objectify X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2017 19:55:30 -0000 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 +# $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 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