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.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | devel/p5-MooseX-Traits | 0.13 newest | no data | - | [email protected] | - |
| FreeBSD | devel/p5-MooseX-Traits | 0.13 newest | none known | - | [email protected] | - |
| OpenBSD | devel/p5-MooseX-Traits | 0.13p1 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | - |
| NetBSD | devel/p5-MooseX-Traits | 0.13nb11 newest | none known | - | [email protected] | 2026-07-16 |
| DragonFly | devel/p5-MooseX-Traits | 0.13 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-MooseX-Traits | 0.13 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-MooseX-Traits | 0.13 newest | no data | - | [email protected] | - |
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
p5-Class-Load>=0: devel/p5-Class-Loadp5-Moose>=0: devel/p5-Moosep5-Sub-Exporter>=0: devel/p5-Sub-Exporterp5-namespace-autoclean>=0: devel/p5-namespace-autoclean
Runtime 4
p5-Class-Load>=0: devel/p5-Class-Loadp5-Moose>=0: devel/p5-Moosep5-Sub-Exporter>=0: devel/p5-Sub-Exporterp5-namespace-autoclean>=0: devel/p5-namespace-autoclean
Test 3
p5-MooseX-Role-Parameterized>=0: devel/p5-MooseX-Role-Parameterizedp5-Test-Fatal>=0: devel/p5-Test-Fatalp5-Test-Requires>=0: devel/p5-Test-Requires
Build dependencies 4
Run dependencies 4
Required by 1
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
| File | Size | SHA256 |
|---|---|---|
| MooseX-Traits-0.13.tar.gz | 31688 | 74afe0c4faf4e3b97c57f289437caa60becca34cd5821f489dd4cc9da4fbe29a |
Master sites 1
- CPAN