Date: Mon, 18 Nov 2013 19:23:29 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> 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 Message-ID: <201311181923.rAIJNT3f042536@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <anes@anes.su> 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 <anes@anes.su> +# $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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311181923.rAIJNT3f042536>