BSD Ports

devel/p5-PerlX-Maybe 1.202 FreeBSD

Return a pair only if they are both defined

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
15.7 KiB, 50.8 KiB installed

Description

Moose classes (and some other classes) distinguish between an attribute being unset and the attribute being set to undef.

To ensure that the Person constructor does not try to set a name or age at all when they are undefined, ugly looking code is often used. A slightly more elegant solution is the maybe function.

In the other systems

SystemPortVersion
FreeBSDdevel/p5-PerlX-Maybe1.202
OpenBSDdevel/p5-PerlX-Maybe1.202
NetBSDdevel/p5-PerlX-Maybe1.202nb3
DragonFlydevel/p5-PerlX-Maybe1.202
HardenedBSDdevel/p5-PerlX-Maybe1.202
GhostBSDdevel/p5-PerlX-Maybe1.202

Install

Binary package:

pkg install p5-PerlX-Maybe

From the ports tree:

cd /usr/ports/devel/p5-PerlX-Maybe/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-PerlX-Maybe>0:devel/p5-PerlX-Maybe

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:latest1.2021.2021.2021.2021.202
FreeBSD:14:quarterly1.2021.202n/a1.2021.202
FreeBSD:15:latest1.2021.202n/a1.2021.202
FreeBSD:15:quarterly1.2021.202n/an/an/a
FreeBSD:16:latest1.2021.202n/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

Configuration

Options name: devel_PerlX-Maybe

OptionDefaultDescription
XSoffUse XS libraries for speed boost
USES
perl5
Service scripts
none

Files

pkg-plist 4
  • %%SITE_PERL%%/PerlX/Maybe.pm
  • %%SITE_PERL%%/Syntax/Feature/Maybe.pm
  • %%PERL5_MAN3%%/PerlX::Maybe.3.gz
  • %%PERL5_MAN3%%/Syntax::Feature::Maybe.3.gz
distinfo 1
FileSizeSHA256
PerlX-Maybe-1.202.tar.gz1834621a74fafb35a62d3308295c16cb1e0596543207df67d974b3c2516e9bddca308
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.