devel/p5-MooseX-Traits 0.13nb11 NetBSD
Automatically apply roles at object creation time
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
618415630a- License
- gnu-gpl-v2 OR artistic
- Categories
- devel, perl5
- Package size
- 8.3 KiB, 13.8 KiB installed
Description
Often a developer 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 |
|---|---|---|---|---|---|---|
| NetBSD | devel/p5-MooseX-Traits | 0.13nb11 newest | none known | - | [email protected] | 2026-07-16 |
| 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]> | - |
| DragonFly | devel/p5-MooseX-Traits | 0.13 newest | none known | - | [email protected] | - |
| MidnightBSD | devel/p5-MooseX-Traits | 0.13 newest | no data | - | [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:
pkgin install p5-MooseX-Traits
From pkgsrc:
cd /usr/pkgsrc/devel/p5-MooseX-Traits && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.13nb11 |
| NetBSD 10.1 aarch64 | 0.13nb11 |
| SmartOS / illumos x86_64 | 0.13nb11 |
| macOS 15 arm64 | 0.13nb11 |
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.