summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2010-05-16 12:31:31 +0000
committerabs <abs@pkgsrc.org>2010-05-16 12:31:31 +0000
commit5a6937bd40696f73f658369e2bdef8a1df1121e4 (patch)
tree973f5ad1265fec9f7085d3d8aa08b7ca27ab5afc /devel
parent02bf293f00a922172bf75f9a694bd38a428bbb46 (diff)
downloadpkgsrc-5a6937bd40696f73f658369e2bdef8a1df1121e4.tar.gz
Added devel/p5-MooseX-FollowPBP version 0.02
This module does not provide any methods. Simply loading it changes the default naming policy for the loading class so that accessors are separated into get and set methods. The get methods are prefixed with "get_" as the accessor, while set methods are prefixed with "set_". This is the naming style recommended by Damian Conway in Perl Best Practices. If you define an attribute with a leading underscore, then both the get and set method will also have an underscore prefix. If you explicitly set a "reader" or "writer" name when creating an attribute, then that attribute's naming scheme is left unchanged.
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-MooseX-FollowPBP/DESCR12
-rw-r--r--devel/p5-MooseX-FollowPBP/Makefile23
-rw-r--r--devel/p5-MooseX-FollowPBP/distinfo5
3 files changed, 40 insertions, 0 deletions
diff --git a/devel/p5-MooseX-FollowPBP/DESCR b/devel/p5-MooseX-FollowPBP/DESCR
new file mode 100644
index 00000000000..24d59a84d40
--- /dev/null
+++ b/devel/p5-MooseX-FollowPBP/DESCR
@@ -0,0 +1,12 @@
+This module does not provide any methods. Simply loading it changes
+the default naming policy for the loading class so that accessors
+are separated into get and set methods. The get methods are prefixed
+with "get_" as the accessor, while set methods are prefixed with
+"set_". This is the naming style recommended by Damian Conway in
+Perl Best Practices.
+
+If you define an attribute with a leading underscore, then both the
+get and set method will also have an underscore prefix.
+
+If you explicitly set a "reader" or "writer" name when creating an
+attribute, then that attribute's naming scheme is left unchanged.
diff --git a/devel/p5-MooseX-FollowPBP/Makefile b/devel/p5-MooseX-FollowPBP/Makefile
new file mode 100644
index 00000000000..97872fdd3cf
--- /dev/null
+++ b/devel/p5-MooseX-FollowPBP/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/05/16 12:31:31 abs Exp $
+#
+
+DISTNAME= MooseX-FollowPBP-0.02
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=MooseX/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/MooseX-FollowPBP/
+COMMENT= Name your accessors get_foo() and set_foo()
+LICENSE= ${PERL5_LICENSE}
+
+DEPENDS+= p5-Moose>=0.93:../../devel/p5-Moose
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/MooseX/FollowPBP/.packlist
+PERL5_MODULE_TYPE= Module::Build
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-MooseX-FollowPBP/distinfo b/devel/p5-MooseX-FollowPBP/distinfo
new file mode 100644
index 00000000000..b092170a0f1
--- /dev/null
+++ b/devel/p5-MooseX-FollowPBP/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/05/16 12:31:31 abs Exp $
+
+SHA1 (MooseX-FollowPBP-0.02.tar.gz) = 5ed4d9163460f8ebd5ce7d719cd8596823b03d0f
+RMD160 (MooseX-FollowPBP-0.02.tar.gz) = 805930d50c0ca52fa0c6241e1c83684872b49cc6
+Size (MooseX-FollowPBP-0.02.tar.gz) = 4472 bytes