BSD Ports

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

SystemPortVersion
FreeBSDdevel/p5-Class-Multimethods-Pure0.13_1
DragonFlydevel/p5-Class-Multimethods-Pure0.13_1
HardenedBSDdevel/p5-Class-Multimethods-Pure0.13_1
GhostBSDdevel/p5-Class-Multimethods-Pure0.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.13_10.13_10.13_10.13_10.13_1
FreeBSD:14:quarterly0.13_10.13_1n/a0.13_10.13_1
FreeBSD:15:latest0.13_10.13_1n/a0.13_10.13_1
FreeBSD:15:quarterly0.13_10.13_1n/an/an/a
FreeBSD:16:latest0.13_10.13_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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
FileSizeSHA256
Class-Multimethods-Pure-0.13.tar.gz1538742309f02e1b5d0c85c851160de48263b84e35e312652e8e83031366ac85df357
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.