From 6ded264c9fac6e2e83a9618b2a412aee2e956128 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Tue, 16 Apr 2013 16:45:52 +0000 Subject: [PATCH] - 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 --- devel/Makefile | 1 + devel/p5-MooseX-Role-Strict/Makefile | 30 +++++++++++++++++++++++++++ devel/p5-MooseX-Role-Strict/distinfo | 2 ++ devel/p5-MooseX-Role-Strict/pkg-descr | 7 +++++++ devel/p5-MooseX-Role-Strict/pkg-plist | 10 +++++++++ 5 files changed, 50 insertions(+) create mode 100644 devel/p5-MooseX-Role-Strict/Makefile create mode 100644 devel/p5-MooseX-Role-Strict/distinfo create mode 100644 devel/p5-MooseX-Role-Strict/pkg-descr create mode 100644 devel/p5-MooseX-Role-Strict/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index caeecc93c56d..b9a3c1371639 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -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 diff --git a/devel/p5-MooseX-Role-Strict/Makefile b/devel/p5-MooseX-Role-Strict/Makefile new file mode 100644 index 000000000000..e21d0ae4b090 --- /dev/null +++ b/devel/p5-MooseX-Role-Strict/Makefile @@ -0,0 +1,30 @@ +# Created by: Sunpoet Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= MooseX-Role-Strict +PORTVERSION= 0.05 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@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 + +.if ${PERL_LEVEL} < 501400 +TEST_DEPENDS+= p5-Test-Simple>=0.96:${PORTSDIR}/devel/p5-Test-Simple +.endif + +.include diff --git a/devel/p5-MooseX-Role-Strict/distinfo b/devel/p5-MooseX-Role-Strict/distinfo new file mode 100644 index 000000000000..75a9af3463d5 --- /dev/null +++ b/devel/p5-MooseX-Role-Strict/distinfo @@ -0,0 +1,2 @@ +SHA256 (MooseX-Role-Strict-0.05.tar.gz) = 7d508e2fa7708aa1ba91e00f6a2a7a1af641709fa374335c19ea19519ba6b90d +SIZE (MooseX-Role-Strict-0.05.tar.gz) = 5229 diff --git a/devel/p5-MooseX-Role-Strict/pkg-descr b/devel/p5-MooseX-Role-Strict/pkg-descr new file mode 100644 index 000000000000..0e921e3f3eb2 --- /dev/null +++ b/devel/p5-MooseX-Role-Strict/pkg-descr @@ -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/ diff --git a/devel/p5-MooseX-Role-Strict/pkg-plist b/devel/p5-MooseX-Role-Strict/pkg-plist new file mode 100644 index 000000000000..ce93ff227979 --- /dev/null +++ b/devel/p5-MooseX-Role-Strict/pkg-plist @@ -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 +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Role/Strict +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Role +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX +@dirrmtry %%SITE_PERL%%/MooseX/Role +@dirrmtry %%SITE_PERL%%/MooseX/Meta/Role +@dirrmtry %%SITE_PERL%%/MooseX/Meta +@dirrmtry %%SITE_PERL%%/MooseX