svn commit: r409848 - in head/devel: . p5-MooX-TypeTiny
Adam Weinberger
adamw at FreeBSD.org
Tue Mar 1 03:45:25 UTC 2016
Author: adamw
Date: Tue Mar 1 03:45:23 2016
New Revision: 409848
URL: https://svnweb.freebsd.org/changeset/ports/409848
Log:
Add devel/p5-MooX-TypeTiny.
This module optimizes Moo type checks when used with Type::Tiny to perform
better. It will automatically apply to isa checks and coercions that use
Type::Tiny. Non-Type::Tiny isa checks will work as normal.
This is done by inlining the type check in a more optimal manner that is
specific to Type::Tiny rather than the general mechanism Moo usually uses.
With this module, setters with type checks should be as fast as an equivalent
check in Moose.
WWW: https://metacpan.org/pod/MooX::TypeTiny
Added:
head/devel/p5-MooX-TypeTiny/
head/devel/p5-MooX-TypeTiny/Makefile (contents, props changed)
head/devel/p5-MooX-TypeTiny/distinfo (contents, props changed)
head/devel/p5-MooX-TypeTiny/pkg-descr (contents, props changed)
head/devel/p5-MooX-TypeTiny/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Tue Mar 1 03:42:23 2016 (r409847)
+++ head/devel/Makefile Tue Mar 1 03:45:23 2016 (r409848)
@@ -2669,6 +2669,7 @@
SUBDIR += p5-MooX-StrictConstructor
SUBDIR += p5-MooX-Types-MooseLike
SUBDIR += p5-MooX-Types-MooseLike-Numeric
+ SUBDIR += p5-MooX-TypeTiny
SUBDIR += p5-MooX-late
SUBDIR += p5-Moos
SUBDIR += p5-Moose
Added: head/devel/p5-MooX-TypeTiny/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-MooX-TypeTiny/Makefile Tue Mar 1 03:45:23 2016 (r409848)
@@ -0,0 +1,25 @@
+# Created by: Adam Weinberger <adamw at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= MooX-TypeTiny
+PORTVERSION= 0.001003
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= adamw at FreeBSD.org
+COMMENT= Optimized type checks for Moo + Type::Tiny
+
+LICENSE= ART10 GPLv1
+LICENSE_COMB= dual
+
+BUILD_DEPENDS= p5-Moo>=1.004003:${PORTSDIR}/devel/p5-Moo \
+ p5-Type-Tiny>=1.000002:${PORTSDIR}/devel/p5-Type-Tiny
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+TEST_DEPENDS= p5-Test-Fatal>=0:${PORTSDIR}/devel/p5-Test-Fatal
+
+USES= perl5
+USE_PERL5= configure
+NO_ARCH= yes
+
+.include <bsd.port.mk>
Added: head/devel/p5-MooX-TypeTiny/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-MooX-TypeTiny/distinfo Tue Mar 1 03:45:23 2016 (r409848)
@@ -0,0 +1,2 @@
+SHA256 (MooX-TypeTiny-0.001003.tar.gz) = 9a48623752188d1ff81c79f07c75e3cb471667c2f2139911e769f7d0b3760055
+SIZE (MooX-TypeTiny-0.001003.tar.gz) = 5415
Added: head/devel/p5-MooX-TypeTiny/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-MooX-TypeTiny/pkg-descr Tue Mar 1 03:45:23 2016 (r409848)
@@ -0,0 +1,12 @@
+This module optimizes Moo type checks when used with Type::Tiny to
+perform better. It will automatically apply to isa checks and coercions
+that use Type::Tiny. Non-Type::Tiny isa checks will work as normal.
+
+This is done by inlining the type check in a more optimal manner that
+is specific to Type::Tiny rather than the general mechanism Moo usually
+uses.
+
+With this module, setters with type checks should be as fast as an
+equivalent check in Moose.
+
+WWW: https://metacpan.org/pod/MooX::TypeTiny
Added: head/devel/p5-MooX-TypeTiny/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-MooX-TypeTiny/pkg-plist Tue Mar 1 03:45:23 2016 (r409848)
@@ -0,0 +1,3 @@
+%%SITE_PERL%%/Method/Generate/Accessor/Role/TypeTiny.pm
+%%SITE_PERL%%/MooX/TypeTiny.pm
+%%PERL5_MAN3%%/MooX::TypeTiny.3.gz
More information about the svn-ports-all
mailing list