FreeBSD Ports

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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.0070.0070.0070.0070.007
FreeBSD:14:quarterly0.0070.007n/a0.0070.007
FreeBSD:15:latest0.0070.007n/a0.0070.007
FreeBSD:15:quarterly0.0070.007n/an/an/a
FreeBSD:16:latest0.0070.007n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

Test 1

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
FileSizeSHA256
Return-Type-0.007.tar.gz177300dffa4e3a7a63885da029d8f04e79d99d04e0f48b3b890d4509e209bb865e1b4
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.