diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2013-04-17 00:45:52 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2013-04-17 00:45:52 +0800 |
commit | 0cbe5d6d0c02218562a0efd133c6dd64085b066c (patch) | |
tree | b07f0b64b88bebc277603a97242c929ef0bfa537 /devel | |
parent | 3db1b3793e65f223c8488bfdfac94e96b07ef554 (diff) | |
download | freebsd-ports-gnome-0cbe5d6d0c02218562a0efd133c6dd64085b066c.tar.gz freebsd-ports-gnome-0cbe5d6d0c02218562a0efd133c6dd64085b066c.tar.zst freebsd-ports-gnome-0cbe5d6d0c02218562a0efd133c6dd64085b066c.zip |
- 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
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/p5-MooseX-Role-Strict/Makefile | 30 | ||||
-rw-r--r-- | devel/p5-MooseX-Role-Strict/distinfo | 2 | ||||
-rw-r--r-- | devel/p5-MooseX-Role-Strict/pkg-descr | 7 | ||||
-rw-r--r-- | devel/p5-MooseX-Role-Strict/pkg-plist | 10 |
5 files changed, 50 insertions, 0 deletions
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 <sunpoet@FreeBSD.org> +# $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 <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> 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 |