BSD Ports

devel/p5-MooseX-Traits 0.13 MidnightBSD

Moose eXtension to automatically apply roles at object creation time

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

Description

Often you want to create components that can be added to a class arbitrarily. This module makes it easy for the end user to use these components. Instead of requiring the user to create a named class with the desired roles applied, or applying roles to the instance one-by-one, he can just pass a traits parameter to the class's new_with_traits constructor. This role will then apply the roles in one go, cache the resulting class (for efficiency), and return a new instance. Arguments meant to initialize the applied roles' attributes can also be passed to the constructor.

In the other systems

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

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/p5-MooseX-Traits0.13 newestno data-[email protected]-
FreeBSDdevel/p5-MooseX-Traits0.13 newestnone known-[email protected]-
OpenBSDdevel/p5-MooseX-Traits0.13p1 newestno data-The OpenBSD ports mailing-list <[email protected]>-
NetBSDdevel/p5-MooseX-Traits0.13nb11 newestnone known-[email protected]2026-07-16
DragonFlydevel/p5-MooseX-Traits0.13 newestnone known-[email protected]-
HardenedBSDdevel/p5-MooseX-Traits0.13 newestno data-[email protected]-
GhostBSDdevel/p5-MooseX-Traits0.13 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

mport install p5-MooseX-Traits

From mports:

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

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

RUN_DEPENDS=	p5-MooseX-Traits>0:devel/p5-MooseX-Traits

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

Test 3

Build dependencies 4
Run dependencies 4

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 3
  • %%SITE_PERL%%/MooseX/Traits.pm
  • %%SITE_PERL%%/MooseX/Traits/Util.pm
  • %%PERL5_MAN3%%/MooseX::Traits.3.gz
distinfo 1
FileSizeSHA256
MooseX-Traits-0.13.tar.gz3168874afe0c4faf4e3b97c57f289437caa60becca34cd5821f489dd4cc9da4fbe29a
Master sites 1
  • CPAN