Adding new package for CPAN module Role::Tiny version 1.001004 into

devel/p5-Role-Tiny as requirement for upcoming update for devel/p5-Moo.

Role::Tiny is a minimalist role composition tool.

ROLE COMPOSITION

Role composition can be thought of as much more clever and meaningful
multiple inheritance. The basics of this implementation of roles is:

    * If a method is already defined on a class, that method will not be
      composed in from the role.
    * If a method that the role "requires" to be implemented is not
      implemented, role application will fail loudly.

Unlike Class::C3, where the last class inherited from "wins," role
composition is the other way around, where the class wins. If multiple
roles are applied in a single call (single with statement), then if any
of their provided methods clash, an exception is raised unless the class
provides a method since this conflict indicates a potential problem.
This commit is contained in:
sno 2012-07-18 07:54:13 +00:00
parent 6ba626fd00
commit 4b90070f45
3 changed files with 44 additions and 0 deletions

17
devel/p5-Role-Tiny/DESCR Normal file
View file

@ -0,0 +1,17 @@
Role::Tiny is a minimalist role composition tool.
ROLE COMPOSITION
Role composition can be thought of as much more clever and meaningful
multiple inheritance. The basics of this implementation of roles is:
* If a method is already defined on a class, that method will not be
composed in from the role.
* If a method that the role "requires" to be implemented is not
implemented, role application will fail loudly.
Unlike Class::C3, where the last class inherited from "wins," role
composition is the other way around, where the class wins. If multiple
roles are applied in a single call (single with statement), then if any
of their provided methods clash, an exception is raised unless the class
provides a method since this conflict indicates a potential problem.

View file

@ -0,0 +1,22 @@
# $NetBSD: Makefile,v 1.1 2012/07/18 07:54:13 sno Exp $
DISTNAME= Role-Tiny-1.001004
PKGNAME= p5-${DISTNAME}
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/M/MS/MSTROUT/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://search.cpan.org/dist/Role-Tiny/
COMMENT= Roles. Like a nouvelle cuisine portion size slice of Moose.
LICENSE= ${PERL5_LICENSE}
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
BUILD_DEPENDS+= p5-Test-Fatal>=0.003:../../devel/p5-Moose
BUILD_DEPENDS+= {perl>=5.14.1,p5-Test-Simple>=0.96}:../../devel/p5-Test-Simple
PERL5_PACKLIST= auto/Role-Tiny/.packlist
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2012/07/18 07:54:13 sno Exp $
SHA1 (Role-Tiny-1.001004.tar.gz) = c2cade9a3cda6b4d19afa52e56654653ffea4172
RMD160 (Role-Tiny-1.001004.tar.gz) = 0696a81c31a45c5213b84a98f394d051ed68f454
Size (Role-Tiny-1.001004.tar.gz) = 19386 bytes