FreeBSD Ports

devel/p5-Method-Signatures 20170211

Method and function declarations with signatures and no source filter

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

Description

Method::Signatures provides two new keywords, func and method, so that you can write subroutines with signatures instead of having to spell out my $self = shift; my($thing) = @_

func is like sub but takes a signature where the prototype would normally go. This takes the place of my($foo, $bar) = @_ and does a whole lot more.

method is like func but specifically for making methods. It will automatically provide the invocant as $self (by default). No more my $self = shift.

It also allows signatures, very similar to Perl 6 signatures.

It also does type checking, understanding all the types that Moose (or Mouse) would understand.

And it does all this with no source filters.

Install

As a binary package — by origin, or by package name:

pkg install devel/p5-Method-Signatures
pkg install p5-Method-Signatures

From the ports tree:

cd /usr/ports/devel/p5-Method-Signatures/ && make install clean

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

RUN_DEPENDS=	p5-Method-Signatures>0:devel/p5-Method-Signatures

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:latest2017021120170211201702112017021120170211
FreeBSD:14:quarterly2017021120170211n/a2017021120170211
FreeBSD:15:latest2017021120170211n/a2017021120170211
FreeBSD:15:quarterly2017021120170211n/an/an/a
FreeBSD:16:latest2017021120170211n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 7

Runtime 7

Test 2

The full lists below include those, and their dependencies in turn.

All build dependencies 24
All run dependencies 23

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 8
  • %%SITE_PERL%%/Method/Signatures.pm
  • %%SITE_PERL%%/Method/Signatures/Modifiers.pm
  • %%SITE_PERL%%/Method/Signatures/Parameter.pm
  • %%SITE_PERL%%/Method/Signatures/Signature.pm
  • %%SITE_PERL%%/Method/Signatures/Types.pm
  • %%SITE_PERL%%/Method/Signatures/Utils.pm
  • %%PERL5_MAN3%%/Method::Signatures.3.gz
  • %%PERL5_MAN3%%/Method::Signatures::Modifiers.3.gz
distinfo 1
FileSizeSHA256
Method-Signatures-20170211.tar.gz83637891a7c4bb23240871a50faffa1544a9c54450b776662f489fe0dbc0fad22c4e5
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.