devel/p5-Return-Type 0.007
Specify a return type for a function (optionally with coercion)
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 13.4 KiB, 46.5 KiB installed
Description
Return::Type allows you to specify a return type for your subs. Type constraints from any Type::Tiny, MooseX::Types or MouseX::Types type library are supported.
The simple syntax for specifying a type constraint is shown in the "SYNOPSIS". If the attribute is passed a single type constraint as shown, this will be applied to the return value if called in scalar context, and to each item in the returned list if called in list context. (If the sub is called in void context, type constraints are simply ignored.)
Install
As a binary package — by origin, or by package name:
pkg install devel/p5-Return-Type
pkg install p5-Return-Type
From the ports tree:
cd /usr/ports/devel/p5-Return-Type/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Return-Type>0:devel/p5-Return-Type
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.007 | 0.007 | 0.007 | 0.007 | 0.007 |
| FreeBSD:14:quarterly | 0.007 | 0.007 | n/a | 0.007 | 0.007 |
| FreeBSD:15:latest | 0.007 | 0.007 | n/a | 0.007 | 0.007 |
| FreeBSD:15:quarterly | 0.007 | 0.007 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.007 | 0.007 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
p5-Type-Tiny>=0: devel/p5-Type-Tiny
Runtime 1
p5-Type-Tiny>=0: devel/p5-Type-Tiny
Test 1
p5-Test-Fatal>=0: devel/p5-Test-Fatal
The full lists below include those, and their dependencies in turn.
All build dependencies 7
All run dependencies 7
Required by 1
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%SITE_PERL%%/Return/Type.pm
- %%PERL5_MAN3%%/Return::Type.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Return-Type-0.007.tar.gz | 17730 | 0dffa4e3a7a63885da029d8f04e79d99d04e0f48b3b890d4509e209bb865e1b4 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.