From owner-svn-ports-head@FreeBSD.ORG Wed Mar 19 17:27:39 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B3BE3F7F; Wed, 19 Mar 2014 17:27:39 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9E504352; Wed, 19 Mar 2014 17:27:39 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2JHRd6N047901; Wed, 19 Mar 2014 17:27:39 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2JHRcjk047896; Wed, 19 Mar 2014 17:27:38 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201403191727.s2JHRcjk047896@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Wed, 19 Mar 2014 17:27:38 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2014 17:27:39 -0000 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 +# $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 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