From owner-svn-ports-all@FreeBSD.ORG Mon Nov 18 19:23:30 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 59FC9C53; Mon, 18 Nov 2013 19:23:30 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 48E272112; Mon, 18 Nov 2013 19:23:30 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAIJNUqO042544; Mon, 18 Nov 2013 19:23:30 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAIJNT3f042536; Mon, 18 Nov 2013 19:23:29 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201311181923.rAIJNT3f042536@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Mon, 18 Nov 2013 19:23:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r334246 - in head/devel: . p5-accessors-fast 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.16 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: Mon, 18 Nov 2013 19:23:30 -0000 Author: sunpoet Date: Mon Nov 18 19:23:28 2013 New Revision: 334246 URL: http://svnweb.freebsd.org/changeset/ports/334246 Log: - Add p5-accessors-fast 0.03 - While I'm here: - Add LICENSE - Fix *_DEPENDS - Convert to new Perl framework - Support STAGEDIR - Sort PLIST This module was created as an alternative to use fields, and uses Class::Accessor::Fast as a base Creates accessors at compiletime Have own default new method: it creates object as a blessed hash, then locks keys to defined field list, and invoke init. So, recommended usage inside packages, is access by hash keys (it's 3 times faster then accessor). Since keys are locked, you will not suffer from autovivification. Public interface recommended to be documented as accessors. Uses Class::C3 WWW: http://search.cpan.org/dist/accessors-fast/ PR: ports/180310 Submitted by: Anes Mukhametov Added: head/devel/p5-accessors-fast/ head/devel/p5-accessors-fast/Makefile (contents, props changed) head/devel/p5-accessors-fast/distinfo (contents, props changed) head/devel/p5-accessors-fast/pkg-descr (contents, props changed) head/devel/p5-accessors-fast/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Mon Nov 18 19:22:13 2013 (r334245) +++ head/devel/Makefile Mon Nov 18 19:23:28 2013 (r334246) @@ -2996,6 +2996,7 @@ SUBDIR += p5-ZConf-GUI SUBDIR += p5-ZML SUBDIR += p5-accessors + SUBDIR += p5-accessors-fast SUBDIR += p5-aliased SUBDIR += p5-asa SUBDIR += p5-autobox Added: head/devel/p5-accessors-fast/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-accessors-fast/Makefile Mon Nov 18 19:23:28 2013 (r334246) @@ -0,0 +1,27 @@ +# Created by: Anes Mukhametov +# $FreeBSD$ + +PORTNAME= accessors-fast +PORTVERSION= 0.03 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:MONS +PKGNAMEPREFIX= p5- + +MAINTAINER= anes@anes.su +COMMENT= Wrap fastest Class::Accessor::* into pragma + +LICENSE= ART10 GPLv1 +LICENSE_COMB= dual + +BUILD_DEPENDS= p5-Class-Accessor-Fast-XS>=0:${PORTSDIR}/devel/p5-Class-Accessor-Fast-XS \ + p5-constant-def>=0.01:${PORTSDIR}/devel/p5-constant-def \ + p5-Class-C3>=0:${PORTSDIR}/devel/p5-Class-C3 +RUN_DEPENDS:= ${BUILD_DEPENDS} +TEST_DEPENDS= p5-Test-NoWarnings>=0:${PORTSDIR}/devel/p5-Test-NoWarnings \ + p5-lib-abs>=0.90:${PORTSDIR}/devel/p5-lib-abs + +USE_PERL5= configure +USES= perl5 + +.include Added: head/devel/p5-accessors-fast/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-accessors-fast/distinfo Mon Nov 18 19:23:28 2013 (r334246) @@ -0,0 +1,2 @@ +SHA256 (accessors-fast-0.03.tar.gz) = be34064f45f5eb77ab26c27e864d669b590df692b2d36f050e5a83f61dd7c5ca +SIZE (accessors-fast-0.03.tar.gz) = 23777 Added: head/devel/p5-accessors-fast/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-accessors-fast/pkg-descr Mon Nov 18 19:23:28 2013 (r334246) @@ -0,0 +1,15 @@ +This module was created as an alternative to use fields, +and uses Class::Accessor::Fast as a base + +Creates accessors at compiletime + +Have own default new method: it creates object as a blessed hash, +then locks keys to defined field list, and invoke init. +So, recommended usage inside packages, is access by hash keys +(it's 3 times faster then accessor). Since keys are locked, +you will not suffer from autovivification. Public interface +recommended to be documented as accessors. + +Uses Class::C3 + +WWW: http://search.cpan.org/dist/accessors-fast/ Added: head/devel/p5-accessors-fast/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-accessors-fast/pkg-plist Mon Nov 18 19:23:28 2013 (r334246) @@ -0,0 +1,9 @@ +%%SITE_PERL%%/accessors/cpants.pl +%%SITE_PERL%%/accessors/fast.pm +%%SITE_PERL%%/accessors/fast/tie.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/accessors/fast/.packlist +%%PERL5_MAN3%%/accessors::fast.3.gz +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/accessors/fast +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/accessors +@dirrmtry %%SITE_PERL%%/accessors/fast +@dirrmtry %%SITE_PERL%%/accessors