Date: Wed, 19 Mar 2014 17:27:38 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r348640 - in head/devel: . p5-Return-Type Message-ID: <201403191727.s2JHRcjk047896@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Wed Mar 19 17:27:38 2014 New Revision: 348640 URL: http://svnweb.freebsd.org/changeset/ports/348640 QAT: https://qat.redports.org/buildarchive/r348640/ Log: - Add p5-Return-Type 0.003 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" [1]. 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.) [1] http://search.cpan.org/dist/Return-Type/lib/Return/Type.pm#SYNOPSIS WWW: http://search.cpan.org/dist/Return-Type/ Added: head/devel/p5-Return-Type/ head/devel/p5-Return-Type/Makefile (contents, props changed) head/devel/p5-Return-Type/distinfo (contents, props changed) head/devel/p5-Return-Type/pkg-descr (contents, props changed) head/devel/p5-Return-Type/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Wed Mar 19 17:27:32 2014 (r348639) +++ head/devel/Makefile Wed Mar 19 17:27:38 2014 (r348640) @@ -2630,6 +2630,7 @@ SUBDIR += p5-Religion SUBDIR += p5-ResourcePool SUBDIR += p5-Resources + SUBDIR += p5-Return-Type SUBDIR += p5-Return-Value SUBDIR += p5-Role-Basic SUBDIR += p5-Role-HasMessage Added: head/devel/p5-Return-Type/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Return-Type/Makefile Wed Mar 19 17:27:38 2014 (r348640) @@ -0,0 +1,27 @@ +# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= Return-Type +PORTVERSION= 0.003 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:TOBYINK +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Specify a return type for a function (optionally with coercion) + +LICENSE= ART10 GPLv1 +LICENSE_COMB= dual + +BUILD_DEPENDS= p5-Scope-Upper>=0:${PORTSDIR}/devel/p5-Scope-Upper \ + p5-Sub-Identify>=0:${PORTSDIR}/devel/p5-Sub-Identify \ + p5-Sub-Name>=0:${PORTSDIR}/devel/p5-Sub-Name \ + p5-Type-Tiny>=0:${PORTSDIR}/devel/p5-Type-Tiny +RUN_DEPENDS:= ${BUILD_DEPENDS} +TEST_DEPENDS= p5-Test-Fatal>=0:${PORTSDIR}/devel/p5-Test-Fatal + +USE_PERL5= configure +USES= perl5 + +.include <bsd.port.mk> Added: head/devel/p5-Return-Type/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Return-Type/distinfo Wed Mar 19 17:27:38 2014 (r348640) @@ -0,0 +1,2 @@ +SHA256 (Return-Type-0.003.tar.gz) = 2179197abbb16e858519f256b87710c21a7a8e06d45283eed2ee0dbafc8f5e41 +SIZE (Return-Type-0.003.tar.gz) = 17211 Added: head/devel/p5-Return-Type/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Return-Type/pkg-descr Wed Mar 19 17:27:38 2014 (r348640) @@ -0,0 +1,12 @@ +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" +[1]. 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.) + +[1] http://search.cpan.org/dist/Return-Type/lib/Return/Type.pm#SYNOPSIS + +WWW: http://search.cpan.org/dist/Return-Type/ Added: head/devel/p5-Return-Type/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Return-Type/pkg-plist Wed Mar 19 17:27:38 2014 (r348640) @@ -0,0 +1,6 @@ +%%SITE_PERL%%/Return/Type.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Return/Type/.packlist +%%PERL5_MAN3%%/Return::Type.3.gz +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Return/Type +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Return +@dirrmtry %%SITE_PERL%%/Return
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403191727.s2JHRcjk047896>