From owner-svn-ports-all@FreeBSD.ORG Tue Dec 4 17:12:03 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CE52081A; Tue, 4 Dec 2012 17:12:03 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id A767C8FC0C; Tue, 4 Dec 2012 17:12:03 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qB4HC3Df041327; Tue, 4 Dec 2012 17:12:03 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qB4HC3Ln041321; Tue, 4 Dec 2012 17:12:03 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201212041712.qB4HC3Ln041321@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Tue, 4 Dec 2012 17:12:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r308250 - in head/devel: . p5-Scalar-Does X-SVN-Group: ports-head 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.14 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: Tue, 04 Dec 2012 17:12:03 -0000 Author: sunpoet Date: Tue Dec 4 17:12:03 2012 New Revision: 308250 URL: http://svnweb.freebsd.org/changeset/ports/308250 Log: - Add p5-Scalar-Does 0.009 Scalar::Does has long been noted that Perl would benefit from a does() built-in. A check that ref($thing) eq 'ARRAY' doesn't allow you to accept an object that uses overloading to provide an array-like interface. WWW: http://search.cpan.org/dist/Scalar-Does/ Feature safe: yes Added: head/devel/p5-Scalar-Does/ head/devel/p5-Scalar-Does/Makefile (contents, props changed) head/devel/p5-Scalar-Does/distinfo (contents, props changed) head/devel/p5-Scalar-Does/pkg-descr (contents, props changed) head/devel/p5-Scalar-Does/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Tue Dec 4 17:10:03 2012 (r308249) +++ head/devel/Makefile Tue Dec 4 17:12:03 2012 (r308250) @@ -2504,6 +2504,7 @@ SUBDIR += p5-SVN-Web SUBDIR += p5-Safe-Isa SUBDIR += p5-Scalar-Defer + SUBDIR += p5-Scalar-Does SUBDIR += p5-Scalar-Listify SUBDIR += p5-Scalar-String SUBDIR += p5-Scope-Guard Added: head/devel/p5-Scalar-Does/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Scalar-Does/Makefile Tue Dec 4 17:12:03 2012 (r308250) @@ -0,0 +1,38 @@ +# Created by: Sunpoet Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= Scalar-Does +PORTVERSION= 0.009 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Like ref() but useful + +LICENSE= ART10 GPLv1 +LICENSE_COMB= dual + +BUILD_DEPENDS= p5-IO-Detect>=0.001:${PORTSDIR}/devel/p5-IO-Detect \ + p5-PadWalker>=0:${PORTSDIR}/devel/p5-PadWalker \ + p5-Sub-Exporter>=0:${PORTSDIR}/devel/p5-Sub-Exporter \ + p5-namespace-clean>=0.19:${PORTSDIR}/devel/p5-namespace-clean +RUN_DEPENDS:= ${BUILD_DEPENDS} +TEST_DEPENDS= p5-Moose>=0:${PORTSDIR}/devel/p5-Moose \ + p5-MooseX-Types>=0:${PORTSDIR}/devel/p5-MooseX-Types \ + p5-Test-NoWarnings>=0:${PORTSDIR}/devel/p5-Test-NoWarnings + +# It requires UNIVERSAL::DOES on Perl 5.8 +PERL_CONFIGURE= 5.10+ + +MAN3= Scalar::Does.3 \ + Scalar::Does::MooseTypes.3 + +.include + +.if ${PERL_LEVEL} < 501001 +BUILD_DEPENDS+= p5-Scalar-List-Utils>=1.20:${PORTSDIR}/lang/p5-Scalar-List-Utils +RUN_DEPENDS+= p5-Scalar-List-Utils>=1.20:${PORTSDIR}/lang/p5-Scalar-List-Utils +.endif + +.include Added: head/devel/p5-Scalar-Does/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Scalar-Does/distinfo Tue Dec 4 17:12:03 2012 (r308250) @@ -0,0 +1,2 @@ +SHA256 (Scalar-Does-0.009.tar.gz) = ce7a21c6ddf979259ac2217994fe9dac1fa7b224157b38ce25b3ba366b42c7d9 +SIZE (Scalar-Does-0.009.tar.gz) = 57343 Added: head/devel/p5-Scalar-Does/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Scalar-Does/pkg-descr Tue Dec 4 17:12:03 2012 (r308250) @@ -0,0 +1,5 @@ +Scalar::Does has long been noted that Perl would benefit from a does() built-in. +A check that ref($thing) eq 'ARRAY' doesn't allow you to accept an object that +uses overloading to provide an array-like interface. + +WWW: http://search.cpan.org/dist/Scalar-Does/ Added: head/devel/p5-Scalar-Does/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Scalar-Does/pkg-plist Tue Dec 4 17:12:03 2012 (r308250) @@ -0,0 +1,7 @@ +%%SITE_PERL%%/Scalar/Does.pm +%%SITE_PERL%%/Scalar/Does/MooseTypes.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Scalar/Does/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Scalar/Does +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Scalar +@dirrm %%SITE_PERL%%/Scalar/Does +@dirrmtry %%SITE_PERL%%/Scalar