Date: Tue, 4 Dec 2012 17:12:03 +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: r308250 - in head/devel: . p5-Scalar-Does Message-ID: <201212041712.qB4HC3Ln041321@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <sunpoet@FreeBSD.org> +# $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 <bsd.port.pre.mk> + +.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 <bsd.port.post.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212041712.qB4HC3Ln041321>