pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-Specio Import p5-Specio-0.25 as devel/p5-Specio.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d2b2dce409ff
branches:  trunk
changeset: 352666:d2b2dce409ff
user:      mef <mef%pkgsrc.org@localhost>
date:      Sun Sep 18 07:15:35 2016 +0000

description:
Import p5-Specio-0.25 as devel/p5-Specio.

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.

My long-term goal is to replace Moose's built-in types and MooseX::Types
with this module.

diffstat:

 devel/p5-Specio/DESCR    |  13 +++++++++++++
 devel/p5-Specio/Makefile |  25 +++++++++++++++++++++++++
 devel/p5-Specio/distinfo |   6 ++++++
 3 files changed, 44 insertions(+), 0 deletions(-)

diffs (56 lines):

diff -r 6158393c69ea -r d2b2dce409ff devel/p5-Specio/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Specio/DESCR     Sun Sep 18 07:15:35 2016 +0000
@@ -0,0 +1,13 @@
+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.
+
+My long-term goal is to replace Moose's built-in types and MooseX::Types
+with this module.
diff -r 6158393c69ea -r d2b2dce409ff devel/p5-Specio/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Specio/Makefile  Sun Sep 18 07:15:35 2016 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2016/09/18 07:15:35 mef Exp $
+
+DISTNAME=      Specio-0.25
+PKGNAME=       p5-${DISTNAME}
+CATEGORIES=    devel perl5
+MASTER_SITES=  http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/
+COMMENT=       Specio - Type constraints and coercions for Perl
+LICENSE=       artistic-2.0
+
+DEPENDS+=      p5-Eval-Closure-[0-9]*:../../devel/p5-Eval-Closure
+DEPENDS+=      p5-Role-Tiny-[0-9]*:../../devel/p5-Role-Tiny
+DEPENDS+=      p5-MRO-Compat-[0-9]*:../../devel/p5-MRO-Compat
+DEPENDS+=      p5-Devel-StackTrace-[0-9]*:../../devel/p5-Devel-StackTrace
+
+# for make test
+BUILD_DEPENDS+=        p5-Test-Needs-[0-9]*:../../devel/p5-Test-Needs
+BUILD_DEPENDS+=        p5-Test-Fatal-[0-9]*:../../devel/p5-Test-Fatal
+
+PERL5_PACKLIST=        auto/Specio/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 6158393c69ea -r d2b2dce409ff devel/p5-Specio/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Specio/distinfo  Sun Sep 18 07:15:35 2016 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/09/18 07:15:35 mef Exp $
+
+SHA1 (Specio-0.25.tar.gz) = 782389a6b73329ca90ec8065aec59dd5fceec51f
+RMD160 (Specio-0.25.tar.gz) = c62a54748875dff6789785fded594201f7afe514
+SHA512 (Specio-0.25.tar.gz) = 94c88290da38aa08199094eab6beff4caf9a5a1750c95d694d59e12b28001a02b823007a915e3b096eb28b0fb907b6cfab405e63e5047224661a0a9570244cee
+Size (Specio-0.25.tar.gz) = 78432 bytes



Home | Main Index | Thread Index | Old Index