diff --git a/devel/Makefile b/devel/Makefile index 73e66a2c28ff..24fec6dea8a1 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2124,6 +2124,7 @@ SUBDIR += p5-MooseX-Attribute-Chained SUBDIR += p5-MooseX-Attribute-ENV SUBDIR += p5-MooseX-AttributeHelpers + SUBDIR += p5-MooseX-AuthorizedMethods SUBDIR += p5-MooseX-ChainedAccessors SUBDIR += p5-MooseX-ClassAttribute SUBDIR += p5-MooseX-Clone diff --git a/devel/p5-MooseX-AuthorizedMethods/Makefile b/devel/p5-MooseX-AuthorizedMethods/Makefile new file mode 100644 index 000000000000..c93caeb9a299 --- /dev/null +++ b/devel/p5-MooseX-AuthorizedMethods/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: p5-MooseX-AuthorizedMethods +# Date created: 2012-04-25 +# Whom: Sunpoet Po-Chuan Hsieh +# +# $FreeBSD$ +# + +PORTNAME= MooseX-AuthorizedMethods +PORTVERSION= 0.006 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Syntax sugar for authorized methods + +LICENSE= ART10 GPLv1 +LICENSE_COMB= dual + +BUILD_DEPENDS= p5-Moose>=1.21:${PORTSDIR}/devel/p5-Moose \ + p5-aliased>=0:${PORTSDIR}/devel/p5-aliased +RUN_DEPENDS= p5-Moose>=1.21:${PORTSDIR}/devel/p5-Moose \ + p5-aliased>=0:${PORTSDIR}/devel/p5-aliased + +PERL_CONFIGURE= yes + +MAN3= MooseX::AuthorizedMethods.3 \ + MooseX::Meta::Method::Authorized.3 \ + MooseX::Meta::Method::Authorized::CheckRoles.3 + +.include diff --git a/devel/p5-MooseX-AuthorizedMethods/distinfo b/devel/p5-MooseX-AuthorizedMethods/distinfo new file mode 100644 index 000000000000..b0d8fb6af6e4 --- /dev/null +++ b/devel/p5-MooseX-AuthorizedMethods/distinfo @@ -0,0 +1,2 @@ +SHA256 (MooseX-AuthorizedMethods-0.006.tar.gz) = 283618269eb0151f079114a59865f4dbbc4db69c09885b50e6f080dd8b2063cb +SIZE (MooseX-AuthorizedMethods-0.006.tar.gz) = 28583 diff --git a/devel/p5-MooseX-AuthorizedMethods/pkg-descr b/devel/p5-MooseX-AuthorizedMethods/pkg-descr new file mode 100644 index 000000000000..1e1d83ef2dcd --- /dev/null +++ b/devel/p5-MooseX-AuthorizedMethods/pkg-descr @@ -0,0 +1,6 @@ +MooseX::AuthorizedMethods exports the "authorized" declarator that makes a +verification if the user has the required permissions before the acual +invocation. The default verification method will take the "user" method result +and call "roles" to list the roles given to that user. + +WWW: http://search.cpan.org/dist/MooseX-AuthorizedMethods/ diff --git a/devel/p5-MooseX-AuthorizedMethods/pkg-plist b/devel/p5-MooseX-AuthorizedMethods/pkg-plist new file mode 100644 index 000000000000..09675d5b3315 --- /dev/null +++ b/devel/p5-MooseX-AuthorizedMethods/pkg-plist @@ -0,0 +1,16 @@ +%%SITE_PERL%%/MooseX/AuthorizedMethods.pm +%%SITE_PERL%%/MooseX/Meta/Method/Authorized.pm +%%SITE_PERL%%/MooseX/Meta/Method/Authorized/Application/ToClass.pm +%%SITE_PERL%%/MooseX/Meta/Method/Authorized/Application/ToComposite.pm +%%SITE_PERL%%/MooseX/Meta/Method/Authorized/Application/ToInstance.pm +%%SITE_PERL%%/MooseX/Meta/Method/Authorized/CheckRoles.pm +%%SITE_PERL%%/MooseX/Meta/Method/Authorized/Meta/Role.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/AuthorizedMethods/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/AuthorizedMethods +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX +@dirrm %%SITE_PERL%%/MooseX/Meta/Method/Authorized/Meta +@dirrm %%SITE_PERL%%/MooseX/Meta/Method/Authorized/Application +@dirrm %%SITE_PERL%%/MooseX/Meta/Method/Authorized +@dirrmtry %%SITE_PERL%%/MooseX/Meta/Method +@dirrmtry %%SITE_PERL%%/MooseX/Meta +@dirrmtry %%SITE_PERL%%/MooseX