svn commit: r325471 - in head/devel: . p5-Specio
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Tue Aug 27 17:15:30 UTC 2013
Author: sunpoet
Date: Tue Aug 27 17:15:28 2013
New Revision: 325471
URL: http://svnweb.freebsd.org/changeset/ports/325471
Log:
- Add p5-Specio 0.08
The Specio distribution provides classes for representing type constraints and
coercion, along with syntax sugar for declaring them.
Note that this is not a proper type system for Perl. Nothing in this
distribution will magically make the Perl interpreter start checking a value's
type on assignment to a variable. In fact, there's no built-in way to apply a
type to a variable at all.
Instead, you can explicitly check a value against a type, and optionally coerce
values to that type.
The author's long-term goal is to replace Moose's built-in types and
MooseX::Types with this module.
WWW: http://search.cpan.org/dist/Specio/
Added:
head/devel/p5-Specio/
head/devel/p5-Specio/Makefile (contents, props changed)
head/devel/p5-Specio/distinfo (contents, props changed)
head/devel/p5-Specio/pkg-descr (contents, props changed)
head/devel/p5-Specio/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Tue Aug 27 17:13:25 2013 (r325470)
+++ head/devel/Makefile Tue Aug 27 17:15:28 2013 (r325471)
@@ -2655,6 +2655,7 @@
SUBDIR += p5-Sort-Maker
SUBDIR += p5-Sort-Tree
SUBDIR += p5-Sort-Versions
+ SUBDIR += p5-Specio
SUBDIR += p5-Spiffy
SUBDIR += p5-Spoon
SUBDIR += p5-Storable
Added: head/devel/p5-Specio/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Specio/Makefile Tue Aug 27 17:15:28 2013 (r325471)
@@ -0,0 +1,62 @@
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= Specio
+PORTVERSION= 0.08
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+MASTER_SITE_SUBDIR= CPAN:DROLSKY
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Type constraints and coercions for Perl
+
+LICENSE= ART20
+
+BUILD_DEPENDS= p5-Class-Load>=0:${PORTSDIR}/devel/p5-Class-Load \
+ p5-Devel-PartialDump>=0:${PORTSDIR}/devel/p5-Devel-PartialDump \
+ p5-Eval-Closure>=0:${PORTSDIR}/devel/p5-Eval-Closure \
+ p5-Lingua-EN-Inflect>=0:${PORTSDIR}/textproc/p5-Lingua-EN-Inflect \
+ p5-List-AllUtils>=0:${PORTSDIR}/devel/p5-List-AllUtils \
+ p5-List-MoreUtils>=0:${PORTSDIR}/lang/p5-List-MoreUtils \
+ p5-Moose>=0:${PORTSDIR}/devel/p5-Moose \
+ p5-MooseX-Clone>=0:${PORTSDIR}/devel/p5-MooseX-Clone \
+ p5-MooseX-Params-Validate>=0:${PORTSDIR}/devel/p5-MooseX-Params-Validate \
+ p5-MooseX-SemiAffordanceAccessor>=0:${PORTSDIR}/devel/p5-MooseX-SemiAffordanceAccessor \
+ p5-Params-Util>=0:${PORTSDIR}/devel/p5-Params-Util \
+ p5-Sub-Name>=0:${PORTSDIR}/devel/p5-Sub-Name \
+ p5-Throwable>=0:${PORTSDIR}/devel/p5-Throwable \
+ p5-Try-Tiny>=0:${PORTSDIR}/lang/p5-Try-Tiny \
+ p5-namespace-autoclean>=0:${PORTSDIR}/devel/p5-namespace-autoclean
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+TEST_DEPENDS= p5-Test-Fatal>=0:${PORTSDIR}/devel/p5-Test-Fatal
+
+USE_PERL5= configure
+USES= perl5
+
+MAN3= Specio.3 \
+ Specio::Coercion.3 \
+ Specio::Constraint::AnyCan.3 \
+ Specio::Constraint::AnyDoes.3 \
+ Specio::Constraint::AnyIsa.3 \
+ Specio::Constraint::Enum.3 \
+ Specio::Constraint::ObjectCan.3 \
+ Specio::Constraint::ObjectDoes.3 \
+ Specio::Constraint::ObjectIsa.3 \
+ Specio::Constraint::Parameterizable.3 \
+ Specio::Constraint::Parameterized.3 \
+ Specio::Constraint::Role::CanType.3 \
+ Specio::Constraint::Role::DoesType.3 \
+ Specio::Constraint::Role::Interface.3 \
+ Specio::Constraint::Role::IsaType.3 \
+ Specio::Constraint::Simple.3 \
+ Specio::Declare.3 \
+ Specio::DeclaredAt.3 \
+ Specio::Exception.3 \
+ Specio::Exporter.3 \
+ Specio::Helpers.3 \
+ Specio::Library::Builtins.3 \
+ Specio::Registry.3 \
+ Specio::Role::Inlinable.3
+
+.include <bsd.port.mk>
Added: head/devel/p5-Specio/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Specio/distinfo Tue Aug 27 17:15:28 2013 (r325471)
@@ -0,0 +1,2 @@
+SHA256 (Specio-0.08.tar.gz) = fd09eb800b9dc7c1667966ba617ee2908e15dc3d22a2eecbf8cd7943ca638f44
+SIZE (Specio-0.08.tar.gz) = 40086
Added: head/devel/p5-Specio/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Specio/pkg-descr Tue Aug 27 17:15:28 2013 (r325471)
@@ -0,0 +1,15 @@
+The Specio distribution provides classes for representing type constraints and
+coercion, along with syntax sugar for declaring them.
+
+Note that this is not a proper type system for Perl. Nothing in this
+distribution will magically make the Perl interpreter start checking a value's
+type on assignment to a variable. In fact, there's no built-in way to apply a
+type to a variable at all.
+
+Instead, you can explicitly check a value against a type, and optionally coerce
+values to that type.
+
+The author's long-term goal is to replace Moose's built-in types and
+MooseX::Types with this module.
+
+WWW: http://search.cpan.org/dist/Specio/
Added: head/devel/p5-Specio/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Specio/pkg-plist Tue Aug 27 17:15:28 2013 (r325471)
@@ -0,0 +1,31 @@
+%%SITE_PERL%%/Specio.pm
+%%SITE_PERL%%/Specio/Coercion.pm
+%%SITE_PERL%%/Specio/Constraint/AnyCan.pm
+%%SITE_PERL%%/Specio/Constraint/AnyDoes.pm
+%%SITE_PERL%%/Specio/Constraint/AnyIsa.pm
+%%SITE_PERL%%/Specio/Constraint/Enum.pm
+%%SITE_PERL%%/Specio/Constraint/ObjectCan.pm
+%%SITE_PERL%%/Specio/Constraint/ObjectDoes.pm
+%%SITE_PERL%%/Specio/Constraint/ObjectIsa.pm
+%%SITE_PERL%%/Specio/Constraint/Parameterizable.pm
+%%SITE_PERL%%/Specio/Constraint/Parameterized.pm
+%%SITE_PERL%%/Specio/Constraint/Role/CanType.pm
+%%SITE_PERL%%/Specio/Constraint/Role/DoesType.pm
+%%SITE_PERL%%/Specio/Constraint/Role/Interface.pm
+%%SITE_PERL%%/Specio/Constraint/Role/IsaType.pm
+%%SITE_PERL%%/Specio/Constraint/Simple.pm
+%%SITE_PERL%%/Specio/Declare.pm
+%%SITE_PERL%%/Specio/DeclaredAt.pm
+%%SITE_PERL%%/Specio/Exception.pm
+%%SITE_PERL%%/Specio/Exporter.pm
+%%SITE_PERL%%/Specio/Helpers.pm
+%%SITE_PERL%%/Specio/Library/Builtins.pm
+%%SITE_PERL%%/Specio/Registry.pm
+%%SITE_PERL%%/Specio/Role/Inlinable.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Specio/.packlist
+ at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Specio
+ at dirrm %%SITE_PERL%%/Specio/Role
+ at dirrm %%SITE_PERL%%/Specio/Library
+ at dirrm %%SITE_PERL%%/Specio/Constraint/Role
+ at dirrm %%SITE_PERL%%/Specio/Constraint
+ at dirrm %%SITE_PERL%%/Specio
More information about the svn-ports-head
mailing list