- import p5-accessors

The accessors pragma lets you create simple accessors at compile-time.
This saves you from writing them by hand, which tends to result in
cut-n-paste errors and a mess of duplicated code. It can also help you
reduce the ammount of unwanted direct-variable access that may creep
into your codebase when you're feeling lazy. accessors was designed with
laziness in mind.
This commit is contained in:
jasper 2008-08-19 22:51:02 +00:00
parent 5ba0adf8d0
commit 61b4b4831a
4 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# $OpenBSD $
COMMENT= create accessor methods in caller's package
DISTNAME= accessors-1.01
CATEGORIES= devel
# Artistic/GPL
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
CONFIGURE_STYLE= modbuild
MODULES= cpan
CPAN_AUTHOR= SPURKIS
PKG_ARCH= *
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (accessors-1.01.tar.gz) = /HZMnL/QN2LA1Pj/qrrssA==
RMD160 (accessors-1.01.tar.gz) = +H5PycEO1xGmZFGdpn9aLj5f+WE=
SHA1 (accessors-1.01.tar.gz) = W2RzeSa/jR3QTICslvALvFmTido=
SHA256 (accessors-1.01.tar.gz) = Oo2wDzgUjzr62+UzDcVJDZkz+crhN+hC7CJaTTrbLZ8=
SIZE (accessors-1.01.tar.gz) = 8650

View File

@ -0,0 +1,7 @@
The accessors pragma lets you create simple accessors at compile-time.
This saves you from writing them by hand, which tends to result in
cut-n-paste errors and a mess of duplicated code. It can also help you
reduce the ammount of unwanted direct-variable access that may creep
into your codebase when you're feeling lazy. accessors was designed with
laziness in mind.

View File

@ -0,0 +1,12 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/08/19 22:51:02 jasper Exp $
${P5SITE}/accessors/
${P5SITE}/accessors.pm
${P5SITE}/accessors/chained.pm
${P5SITE}/accessors/classic.pm
${P5SITE}/accessors/ro.pm
${P5SITE}/accessors/rw.pm
@man man/man3p/accessors.3p
@man man/man3p/accessors::chained.3p
@man man/man3p/accessors::classic.3p
@man man/man3p/accessors::ro.3p
@man man/man3p/accessors::rw.3p