BSD Ports

devel/p5-MooseX-Role-Parameterized 1.11 MidnightBSD

Roles with composition parameters

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
artistic, gpl+
Categories
devel, perl5

Description

Roles are composable units of behavior. They are useful for factoring out functionality common to many classes from any part of your class hierarchy. See L<Moose::Cookbook::Roles::Comparable_CodeReuse> for an introduction to L<Moose::Role>.

While combining roles affords you a great deal of flexibility, individual roles have very little in the way of configurability. Core Moose provides C<-alias> for renaming methods and C<-excludes> for ignoring methods. These options are primarily for resolving role conflicts. Depending on how much of a purist you are, these options are I<solely> for resolving role conflicts. See L<Moose::Cookbook::Roles::Restartable_AdvancedComposition> for more about C<-alias> and C<-excludes>.

Because roles serve many different masters, they usually provide only the least common denominator of functionality. To empower roles further, more configurability than C<-alias> and C<-excludes> is required. Perhaps your role needs to know which method to call when it is done processing. Or what default value to use for its C<url> attribute.

Parameterized roles offer a solution to these (and other) kinds of problems.

In the other systems

The newest version among them is 1.11, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/p5-MooseX-Role-Parameterized1.11 newestno data-[email protected]-
FreeBSDdevel/p5-MooseX-Role-Parameterized1.11 newestnone known-[email protected]-
OpenBSDdevel/p5-MooseX-Role-Parameterized1.11p0 newestno data-The OpenBSD ports mailing-list <[email protected]>-
NetBSDdevel/p5-MooseX-Role-Parameterized1.11nb7 newestnone known-[email protected]2026-07-16
DragonFlydevel/p5-MooseX-Role-Parameterized1.11 newestnone known-[email protected]-
HardenedBSDdevel/p5-MooseX-Role-Parameterized1.11 newestno data-[email protected]-
GhostBSDdevel/p5-MooseX-Role-Parameterized1.11 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

mport install p5-MooseX-Role-Parameterized

From mports:

cd /usr/mports/devel/p5-MooseX-Role-Parameterized && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-MooseX-Role-Parameterized>0:devel/p5-MooseX-Role-Parameterized

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

As this port's Makefile names them.

Build 4

Runtime 4

Build dependencies 4
Run dependencies 4

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 16
  • %%SITE_PERL%%/MooseX/Role/Parameterised.pm
  • %%SITE_PERL%%/MooseX/Role/Parameterized.pm
  • %%SITE_PERL%%/MooseX/Role/Parameterized/Extending.pod
  • %%SITE_PERL%%/MooseX/Role/Parameterized/Meta/Role/Parameterized.pm
  • %%SITE_PERL%%/MooseX/Role/Parameterized/Meta/Trait/Parameterizable.pm
  • %%SITE_PERL%%/MooseX/Role/Parameterized/Meta/Trait/Parameterized.pm
  • %%SITE_PERL%%/MooseX/Role/Parameterized/Parameters.pm
  • %%SITE_PERL%%/MooseX/Role/Parameterized/Tutorial.pod
  • %%PERL5_MAN3%%/MooseX::Role::Parameterised.3.gz
  • %%PERL5_MAN3%%/MooseX::Role::Parameterized.3.gz
  • %%PERL5_MAN3%%/MooseX::Role::Parameterized::Extending.3.gz
  • %%PERL5_MAN3%%/MooseX::Role::Parameterized::Meta::Role::Parameterized.3.gz
  • %%PERL5_MAN3%%/MooseX::Role::Parameterized::Meta::Trait::Parameterizable.3.gz
  • %%PERL5_MAN3%%/MooseX::Role::Parameterized::Meta::Trait::Parameterized.3.gz
  • %%PERL5_MAN3%%/MooseX::Role::Parameterized::Parameters.3.gz
  • %%PERL5_MAN3%%/MooseX::Role::Parameterized::Tutorial.3.gz
distinfo 1
FileSizeSHA256
MooseX-Role-Parameterized-1.11.tar.gz495481cfe766c5d7f0ecab57f733dcca430a2a2acd6b995757141b940ade3692bec9e
Master sites 1
  • CPAN