mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
Sometimes you want roles. You're not sure about Moose, Mouse, Moo and
what was that damned Squirrel thing anyway? Then there's Class::Trait, but it has a funky syntax and the maintainer's deprecated it in favor of Moose::Role and you really don't care that it handles overloading, instance application or has a workaround for the SUPER:: bug. You think a meta-object protocol sounds nifty, but you don't understand it. Maybe you're not sure you want the syntactic sugar for object declaration. Maybe you've convinced your colleagues that roles are a good idea but they're leery of dragging in Moose (your author has had this happen more than once and heard of others making the same complaint). Sometimes you just want good old-fashioned roles which let you separate class responsibility from code reuse. WWW: http://search.cpan.org/dist/Role-Basic/
This commit is contained in:
parent
4a4584b16c
commit
716fa524a5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334982
@ -2596,6 +2596,7 @@
|
||||
SUBDIR += p5-ResourcePool
|
||||
SUBDIR += p5-Resources
|
||||
SUBDIR += p5-Return-Value
|
||||
SUBDIR += p5-Role-Basic
|
||||
SUBDIR += p5-Role-HasMessage
|
||||
SUBDIR += p5-Role-Identifiable
|
||||
SUBDIR += p5-Role-Tiny
|
||||
|
21
devel/p5-Role-Basic/Makefile
Normal file
21
devel/p5-Role-Basic/Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
# Created by: Matthew Seaman <matthew@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= Role-Basic
|
||||
PORTVERSION= 0.13
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= CPAN
|
||||
MASTER_SITE_SUBDIR= CPAN:OVID
|
||||
|
||||
MAINTAINER= matthew@FreeBSD.org
|
||||
COMMENT= Just roles. Nothing else
|
||||
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
USES= perl5
|
||||
USE_PERL5= configure
|
||||
|
||||
regression-test: build
|
||||
@cd ${WRKSRC} && ${MAKE} test
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/p5-Role-Basic/distinfo
Normal file
2
devel/p5-Role-Basic/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (Role-Basic-0.13.tar.gz) = 38a0959ef9f193ff76e72c325a9e9211bc4868689bd0e2b005778f53f8b6f36a
|
||||
SIZE (Role-Basic-0.13.tar.gz) = 39625
|
14
devel/p5-Role-Basic/pkg-descr
Normal file
14
devel/p5-Role-Basic/pkg-descr
Normal file
@ -0,0 +1,14 @@
|
||||
Sometimes you want roles. You're not sure about Moose, Mouse, Moo and
|
||||
what was that damned Squirrel thing anyway? Then there's Class::Trait,
|
||||
but it has a funky syntax and the maintainer's deprecated it in favor
|
||||
of Moose::Role and you really don't care that it handles overloading,
|
||||
instance application or has a workaround for the SUPER:: bug. You
|
||||
think a meta-object protocol sounds nifty, but you don't understand
|
||||
it. Maybe you're not sure you want the syntactic sugar for object
|
||||
declaration. Maybe you've convinced your colleagues that roles are a
|
||||
good idea but they're leery of dragging in Moose (your author has had
|
||||
this happen more than once and heard of others making the same
|
||||
complaint). Sometimes you just want good old-fashioned roles which let
|
||||
you separate class responsibility from code reuse.
|
||||
|
||||
WWW: http://search.cpan.org/dist/Role-Basic/
|
9
devel/p5-Role-Basic/pkg-plist
Normal file
9
devel/p5-Role-Basic/pkg-plist
Normal file
@ -0,0 +1,9 @@
|
||||
%%PERL5_MAN3%%/Role::Basic.3.gz
|
||||
%%PERL5_MAN3%%/Role::Basic::Philosophy.3.gz
|
||||
%%SITE_PERL%%/Role/Basic.pm
|
||||
%%SITE_PERL%%/Role/Basic/Philosophy.pod
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Role/Basic/.packlist
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Role/Basic
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Role
|
||||
@dirrmtry %%SITE_PERL%%/Role/Basic
|
||||
@dirrmtry %%SITE_PERL%%/Role
|
Loading…
Reference in New Issue
Block a user