devel/p5-Class-Multimethods-Pure 0.13_1 FreeBSD
Method-ordered multimethod dispatch
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Categories
- devel, perl5
- Package size
- 20.0 KiB, 49.0 KiB installed
Description
You can define multimethods with the "multi" declarator:
use Class::Multimethods::Pure;
multi collide => ('Bullet', 'Ship') => sub {
my ($a, $b) = @\_; ...
};
multi collide => ('Ship', 'Asteroid') => sub {
my ($a, $b) = @\_; ...
};
It is usually wise to put such declarations within a BEGIN block, so they behave more like Perl treats subs (you can call them without parentheses and you can use them before you define them).
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Class-Multimethods-Pure | 0.13_1 |
| DragonFly | devel/p5-Class-Multimethods-Pure | 0.13_1 |
| HardenedBSD | devel/p5-Class-Multimethods-Pure | 0.13_1 |
| GhostBSD | devel/p5-Class-Multimethods-Pure | 0.13_1 |
Install
Binary package:
pkg install p5-Class-Multimethods-Pure
From the ports tree:
cd /usr/ports/devel/p5-Class-Multimethods-Pure/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Class-Multimethods-Pure>0:devel/p5-Class-Multimethods-Pure
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.13_1 | 0.13_1 | 0.13_1 | 0.13_1 | 0.13_1 |
| FreeBSD:14:quarterly | 0.13_1 | 0.13_1 | n/a | 0.13_1 | 0.13_1 |
| FreeBSD:15:latest | 0.13_1 | 0.13_1 | n/a | 0.13_1 | 0.13_1 |
| FreeBSD:15:quarterly | 0.13_1 | 0.13_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.13_1 | 0.13_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 1
Run dependencies 1
Required by 1
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%PERL5_MAN3%%/Class::Multimethods::Pure.3.gz
- %%SITE_PERL%%/Class/Multimethods/Pure.pm
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Class-Multimethods-Pure-0.13.tar.gz | 15387 | 42309f02e1b5d0c85c851160de48263b84e35e312652e8e83031366ac85df357 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.