1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

- 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>
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-11-18 19:23:28 +00:00
parent c048863b8f
commit 75835d5a60
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334246
5 changed files with 54 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -0,0 +1,2 @@
SHA256 (accessors-fast-0.03.tar.gz) = be34064f45f5eb77ab26c27e864d669b590df692b2d36f050e5a83f61dd7c5ca
SIZE (accessors-fast-0.03.tar.gz) = 23777

View File

@ -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/

View File

@ -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