From 2a797ab13015c884344e7295f4cae97d66c5e29b Mon Sep 17 00:00:00 2001 From: Wen Heping Date: Wed, 9 Dec 2009 05:45:51 +0000 Subject: [PATCH] MooseX::Role::WithOverloading allows you to write a Moose::Role which defines overloaded operators and allows those operator overloadings to be composed into the classes/roles/instances it's compiled to, while plain Moose::Roles would lose the overloading. WWW: http://search.cpan.org/dist/MooseX-Role-WithOverloading/ --- devel/Makefile | 1 + devel/p5-MooseX-Role-WithOverloading/Makefile | 39 +++++++++++++++++++ devel/p5-MooseX-Role-WithOverloading/distinfo | 3 ++ .../p5-MooseX-Role-WithOverloading/pkg-descr | 6 +++ .../p5-MooseX-Role-WithOverloading/pkg-plist | 26 +++++++++++++ 5 files changed, 75 insertions(+) create mode 100644 devel/p5-MooseX-Role-WithOverloading/Makefile create mode 100644 devel/p5-MooseX-Role-WithOverloading/distinfo create mode 100644 devel/p5-MooseX-Role-WithOverloading/pkg-descr create mode 100644 devel/p5-MooseX-Role-WithOverloading/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index e2d2aedf6551..179221403f01 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1719,6 +1719,7 @@ SUBDIR += p5-MooseX-POE SUBDIR += p5-MooseX-Params-Validate SUBDIR += p5-MooseX-Role-Parameterized + SUBDIR += p5-MooseX-Role-WithOverloading SUBDIR += p5-MooseX-SemiAffordanceAccessor SUBDIR += p5-MooseX-SimpleConfig SUBDIR += p5-MooseX-Singleton diff --git a/devel/p5-MooseX-Role-WithOverloading/Makefile b/devel/p5-MooseX-Role-WithOverloading/Makefile new file mode 100644 index 000000000000..c8a42dc7ab0e --- /dev/null +++ b/devel/p5-MooseX-Role-WithOverloading/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: p5-MooseX-Role-WithOverloading +# Date created: 09 Dec, 2009 +# Whom: Wen Heping +# +# $FreeBSD$ +# + +PORTNAME= MooseX-Role-WithOverloading +PORTVERSION= 0.03 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= wen@FreeBSD.org +COMMENT= Roles which support overloading + +BUILD_DEPENDS= p5-Moose>=0.78:${PORTSDIR}/devel/p5-Moose \ + p5-MooseX-Types>=0:${PORTSDIR}/devel/p5-MooseX-Types \ + p5-aliased>=0:${PORTSDIR}/devel/p5-aliased \ + p5-namespace-autoclean>=0.09:${PORTSDIR}/devel/p5-namespace-autoclean \ + p5-namespace-clean>=0:${PORTSDIR}/devel/p5-namespace-clean +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= MooseX::Role::WithOverloading::Meta::Role::Application::ToRole.3 \ + MooseX::Role::WithOverloading::Meta::Role::Composite.3 \ + MooseX::Role::WithOverloading::Meta::Role::Application::Composite::ToClass.3 \ + MooseX::Role::WithOverloading::Meta::Role::Application::FixOverloadedRefs.3 \ + MooseX::Role::WithOverloading::Meta::Role::Application::ToInstance.3 \ + MooseX::Role::WithOverloading.3 \ + MooseX::Role::WithOverloading::Meta::Role::Application::Composite::ToRole.3 \ + MooseX::Role::WithOverloading::Meta::Role.3 \ + MooseX::Role::WithOverloading::Meta::Role::Application::Composite.3 \ + MooseX::Role::WithOverloading::Meta::Role::Application::Composite::ToInstance.3 \ + MooseX::Role::WithOverloading::Meta::Role::Application::ToClass.3 \ + MooseX::Role::WithOverloading::Meta::Role::Application.3 + +.include diff --git a/devel/p5-MooseX-Role-WithOverloading/distinfo b/devel/p5-MooseX-Role-WithOverloading/distinfo new file mode 100644 index 000000000000..0be90cb06ee0 --- /dev/null +++ b/devel/p5-MooseX-Role-WithOverloading/distinfo @@ -0,0 +1,3 @@ +MD5 (MooseX-Role-WithOverloading-0.03.tar.gz) = c7878a4d65930a0a55f70a4136383805 +SHA256 (MooseX-Role-WithOverloading-0.03.tar.gz) = fd291423ca434abc683fc0631abfbac6f01bcdbaa27d7c09113df0eb643b10bd +SIZE (MooseX-Role-WithOverloading-0.03.tar.gz) = 12487 diff --git a/devel/p5-MooseX-Role-WithOverloading/pkg-descr b/devel/p5-MooseX-Role-WithOverloading/pkg-descr new file mode 100644 index 000000000000..80c09dd25b94 --- /dev/null +++ b/devel/p5-MooseX-Role-WithOverloading/pkg-descr @@ -0,0 +1,6 @@ +MooseX::Role::WithOverloading allows you to write a Moose::Role which +defines overloaded operators and allows those operator overloadings +to be composed into the classes/roles/instances it's compiled to, +while plain Moose::Roles would lose the overloading. + +WWW: http://search.cpan.org/dist/MooseX-Role-WithOverloading/ diff --git a/devel/p5-MooseX-Role-WithOverloading/pkg-plist b/devel/p5-MooseX-Role-WithOverloading/pkg-plist new file mode 100644 index 000000000000..d61ceddc93d8 --- /dev/null +++ b/devel/p5-MooseX-Role-WithOverloading/pkg-plist @@ -0,0 +1,26 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Role/WithOverloading/.packlist +%%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Role/WithOverloading/WithOverloading.bs +%%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Role/WithOverloading/WithOverloading.so +%%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading/Meta/Role/Application/Composite/ToClass.pm +%%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading/Meta/Role/Application/Composite/ToRole.pm +%%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading/Meta/Role/Application/Composite/ToInstance.pm +%%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading/Meta/Role/Application/ToRole.pm +%%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading/Meta/Role/Application/ToInstance.pm +%%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading/Meta/Role/Application/FixOverloadedRefs.pm +%%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading/Meta/Role/Application/Composite.pm +%%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading/Meta/Role/Application/ToClass.pm +%%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading/Meta/Role/Composite.pm +%%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading/Meta/Role/Application.pm +%%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading/Meta/Role.pm +%%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading.pm +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading/Meta/Role/Application/Composite +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading/Meta/Role/Application +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading/Meta/Role +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading/Meta +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role/WithOverloading +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/MooseX/Role +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/MooseX +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Role/WithOverloading +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Role +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto