devel/p5-Role-Tiny 2.002005 MidnightBSD
Roles, like a nouvelle cusine portion size slice of Moose
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- artistic, gpl+
- Categories
- devel, perl5
Description
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 first wins. In a more complete system (see Moose) roles are checked to see if they clash. The goal of this is to be much simpler, hence disallowing composition of multiple roles at once.
In the other systems
The newest version among them is 2.002005, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | devel/p5-Role-Tiny | 2.002005 newest | no data | - | [email protected] | - |
| FreeBSD | devel/p5-Role-Tiny | 2.002005 newest | none known | - | [email protected] | - |
| OpenBSD | devel/p5-Role-Tiny | 2.002005 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | 2026-08-10 |
| NetBSD | devel/p5-Role-Tiny | 2.002005nb1 newest | none known | - | [email protected] | 2026-07-16 |
| DragonFly | devel/p5-Role-Tiny | 2.002004 behind since 2026-08-10 | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-Role-Tiny | 2.002005 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Role-Tiny | 2.002005 newest | no data | - | [email protected] | - |
| OPNsense | devel/p5-Role-Tiny | 2.002005 newest | no data | - | [email protected] | - |
Install
Binary package:
mport install p5-Role-Tiny
From mports:
cd /usr/mports/devel/p5-Role-Tiny && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Role-Tiny>0:devel/p5-Role-Tiny
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 1
p5-Class-Method-Modifiers>=1.05: devel/p5-Class-Method-Modifiers
Runtime 1
p5-Class-Method-Modifiers>=1.05: devel/p5-Class-Method-Modifiers
Build dependencies 1
Run dependencies 1
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 4
- %%SITE_PERL%%/Role/Tiny.pm
- %%SITE_PERL%%/Role/Tiny/With.pm
- %%PERL5_MAN3%%/Role::Tiny.3.gz
- %%PERL5_MAN3%%/Role::Tiny::With.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Role-Tiny-2.002005.tar.gz | 36401 | 4618ec524618c104dc28a8cc86af129a00cad282aea7f4c75060ba05d4c8f4d7 |
Master sites 1
- CPAN