ports/devel/p5-Method-Signatures/Makefile
Sunpoet Po-Chuan Hsieh 4ee23c50aa Add p5-Method-Signatures 20170211
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.

WWW: http://search.cpan.org/dist/Method-Signatures/
2017-11-12 19:09:33 +00:00

33 lines
936 B
Makefile

# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= Method-Signatures
PORTVERSION= 20170211
CATEGORIES= devel perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:BAREFOOT
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Method and function declarations with signatures and no source filter
LICENSE= ART10 GPLv1+
LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= p5-Any-Moose>=0.11:devel/p5-Any-Moose \
p5-Const-Fast>=0.006:devel/p5-Const-Fast \
p5-Devel-Declare>=0.006002:devel/p5-Devel-Declare \
p5-Lexical-SealRequireHints>=0.008:devel/p5-Lexical-SealRequireHints \
p5-Mouse>=0.64:devel/p5-Mouse \
p5-PPI>=1.203:textproc/p5-PPI \
p5-Sub-Name>=0.03:devel/p5-Sub-Name
RUN_DEPENDS:= ${BUILD_DEPENDS}
TEST_DEPENDS= p5-Test-Exception>=0.29:devel/p5-Test-Exception \
p5-Test-Warn>=0.10:devel/p5-Test-Warn
NO_ARCH= yes
USE_PERL5= modbuild
USES= perl5
.include <bsd.port.mk>