From owner-svn-ports-all@freebsd.org Sun Nov 12 19:09:35 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 12412C7A528; Sun, 12 Nov 2017 19:09:35 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E006B71105; Sun, 12 Nov 2017 19:09:34 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vACJ9YRV075301; Sun, 12 Nov 2017 19:09:34 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vACJ9XPl075296; Sun, 12 Nov 2017 19:09:33 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201711121909.vACJ9XPl075296@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sun, 12 Nov 2017 19:09:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r454060 - in head/devel: . p5-Method-Signatures X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/devel: . p5-Method-Signatures X-SVN-Commit-Revision: 454060 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Nov 2017 19:09:35 -0000 Author: sunpoet Date: Sun Nov 12 19:09:33 2017 New Revision: 454060 URL: https://svnweb.freebsd.org/changeset/ports/454060 Log: 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/ Added: head/devel/p5-Method-Signatures/ head/devel/p5-Method-Signatures/Makefile (contents, props changed) head/devel/p5-Method-Signatures/distinfo (contents, props changed) head/devel/p5-Method-Signatures/pkg-descr (contents, props changed) head/devel/p5-Method-Signatures/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sun Nov 12 18:11:54 2017 (r454059) +++ head/devel/Makefile Sun Nov 12 19:09:33 2017 (r454060) @@ -2839,6 +2839,7 @@ SUBDIR += p5-Metabase-Client-Simple SUBDIR += p5-Metabase-Fact SUBDIR += p5-Method-Alias + SUBDIR += p5-Method-Signatures SUBDIR += p5-Method-Signatures-Simple SUBDIR += p5-Minilla SUBDIR += p5-Minion Added: head/devel/p5-Method-Signatures/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Method-Signatures/Makefile Sun Nov 12 19:09:33 2017 (r454060) @@ -0,0 +1,33 @@ +# Created by: Po-Chuan Hsieh +# $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 Added: head/devel/p5-Method-Signatures/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Method-Signatures/distinfo Sun Nov 12 19:09:33 2017 (r454060) @@ -0,0 +1,3 @@ +TIMESTAMP = 1510457723 +SHA256 (Method-Signatures-20170211.tar.gz) = 891a7c4bb23240871a50faffa1544a9c54450b776662f489fe0dbc0fad22c4e5 +SIZE (Method-Signatures-20170211.tar.gz) = 83637 Added: head/devel/p5-Method-Signatures/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Method-Signatures/pkg-descr Sun Nov 12 19:09:33 2017 (r454060) @@ -0,0 +1,18 @@ +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/ Added: head/devel/p5-Method-Signatures/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Method-Signatures/pkg-plist Sun Nov 12 19:09:33 2017 (r454060) @@ -0,0 +1,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