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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-PerlX-Maybe | 1.202 |
| OpenBSD | devel/p5-PerlX-Maybe | 1.202 |
| NetBSD | devel/p5-PerlX-Maybe | 1.202nb3 |
| DragonFly | devel/p5-PerlX-Maybe | 1.202 |
| HardenedBSD | devel/p5-PerlX-Maybe | 1.202 |
| GhostBSD | devel/p5-PerlX-Maybe | 1.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.202 | 1.202 | 1.202 | 1.202 | 1.202 |
| FreeBSD:14:quarterly | 1.202 | 1.202 | n/a | 1.202 | 1.202 |
| FreeBSD:15:latest | 1.202 | 1.202 | n/a | 1.202 | 1.202 |
| FreeBSD:15:quarterly | 1.202 | 1.202 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.202 | 1.202 | 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
Configuration
Options name: devel_PerlX-Maybe
| Option | Default | Description |
|---|---|---|
| XS | off | Use 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
| File | Size | SHA256 |
|---|---|---|
| PerlX-Maybe-1.202.tar.gz | 18346 | 21a74fafb35a62d3308295c16cb1e0596543207df67d974b3c2516e9bddca308 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.