svn commit: r315843 - in head/devel: . p5-MooseX-Role-Strict
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Tue Apr 16 16:45:54 UTC 2013
Author: sunpoet
Date: Tue Apr 16 16:45:52 2013
New Revision: 315843
URL: http://svnweb.freebsd.org/changeset/ports/315843
Log:
- Add p5-MooseX-Role-Strict 0.05
When using Moose::Role, a class which provides a method a role provides will
silently override that method. This can cause strange, hard-to-debug errors when
the role's methods are not called. Simple use MooseX::Role::Strict instead of
Moose::Role and overriding a role's method becomes a composition-time failure.
See the synopsis for a resolution.
WWW: http://search.cpan.org/dist/MooseX-Role-Strict/
Feature safe: yes
Added:
head/devel/p5-MooseX-Role-Strict/
head/devel/p5-MooseX-Role-Strict/Makefile (contents, props changed)
head/devel/p5-MooseX-Role-Strict/distinfo (contents, props changed)
head/devel/p5-MooseX-Role-Strict/pkg-descr (contents, props changed)
head/devel/p5-MooseX-Role-Strict/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Tue Apr 16 16:30:13 2013 (r315842)
+++ head/devel/Makefile Tue Apr 16 16:45:52 2013 (r315843)
@@ -2335,6 +2335,7 @@
SUBDIR += p5-MooseX-RelatedClassRoles
SUBDIR += p5-MooseX-Role-Loggable
SUBDIR += p5-MooseX-Role-Parameterized
+ SUBDIR += p5-MooseX-Role-Strict
SUBDIR += p5-MooseX-Role-WithOverloading
SUBDIR += p5-MooseX-Runnable
SUBDIR += p5-MooseX-SemiAffordanceAccessor
Added: head/devel/p5-MooseX-Role-Strict/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-MooseX-Role-Strict/Makefile Tue Apr 16 16:45:52 2013 (r315843)
@@ -0,0 +1,30 @@
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= MooseX-Role-Strict
+PORTVERSION= 0.05
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Use strict 'roles'
+
+LICENSE= ART10 GPLv1
+LICENSE_COMB= dual
+
+BUILD_DEPENDS= p5-Moose>=0.89:${PORTSDIR}/devel/p5-Moose
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= MooseX::Meta::Role::Strict.3 \
+ MooseX::Role::Strict.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501400
+TEST_DEPENDS+= p5-Test-Simple>=0.96:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
Added: head/devel/p5-MooseX-Role-Strict/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-MooseX-Role-Strict/distinfo Tue Apr 16 16:45:52 2013 (r315843)
@@ -0,0 +1,2 @@
+SHA256 (MooseX-Role-Strict-0.05.tar.gz) = 7d508e2fa7708aa1ba91e00f6a2a7a1af641709fa374335c19ea19519ba6b90d
+SIZE (MooseX-Role-Strict-0.05.tar.gz) = 5229
Added: head/devel/p5-MooseX-Role-Strict/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-MooseX-Role-Strict/pkg-descr Tue Apr 16 16:45:52 2013 (r315843)
@@ -0,0 +1,7 @@
+When using Moose::Role, a class which provides a method a role provides will
+silently override that method. This can cause strange, hard-to-debug errors when
+the role's methods are not called. Simple use MooseX::Role::Strict instead of
+Moose::Role and overriding a role's method becomes a composition-time failure.
+See the synopsis for a resolution.
+
+WWW: http://search.cpan.org/dist/MooseX-Role-Strict/
Added: head/devel/p5-MooseX-Role-Strict/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-MooseX-Role-Strict/pkg-plist Tue Apr 16 16:45:52 2013 (r315843)
@@ -0,0 +1,10 @@
+%%SITE_PERL%%/MooseX/Role/Strict.pm
+%%SITE_PERL%%/MooseX/Meta/Role/Strict.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Role/Strict/.packlist
+ at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Role/Strict
+ at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Role
+ at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX
+ at dirrmtry %%SITE_PERL%%/MooseX/Role
+ at dirrmtry %%SITE_PERL%%/MooseX/Meta/Role
+ at dirrmtry %%SITE_PERL%%/MooseX/Meta
+ at dirrmtry %%SITE_PERL%%/MooseX
More information about the svn-ports-all
mailing list