pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/p5-Params-Classify Importing devel/p5-Params-Cla...
details: https://anonhg.NetBSD.org/pkgsrc/rev/cbd92c47d786
branches: trunk
changeset: 573901:cbd92c47d786
user: sno <sno%pkgsrc.org@localhost>
date: Fri Apr 09 08:12:01 2010 +0000
description:
Importing devel/p5-Params-Classify 0.009.
This module provides various type-testing functions. These are intended for
functions that, unlike most Perl code, care what type of data they are
operating on. For example, some functions wish to behave differently
depending on the type of their arguments (like overloaded functions in C++).
There are two flavours of function in this module. Functions of the first
flavour only provide type classification, to allow code to discriminate
between argument types. Functions of the second flavour package up the most
common type of type discrimination: checking that an argument is of an
expected type. The functions come in matched pairs, of the two flavours,
and so the type enforcement functions handle only the simplest requirements
for arguments of the types handled by the classification functions.
Enforcement of more complex types may, of course, be built using the
classification functions, or it may be more convenient to use a module
designed for the more complex job, such as Params::Validate.
diffstat:
devel/p5-Params-Classify/DESCR | 15 +++++++++++++++
devel/p5-Params-Classify/Makefile | 20 ++++++++++++++++++++
devel/p5-Params-Classify/distinfo | 5 +++++
3 files changed, 40 insertions(+), 0 deletions(-)
diffs (52 lines):
diff -r fbe814555d22 -r cbd92c47d786 devel/p5-Params-Classify/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Params-Classify/DESCR Fri Apr 09 08:12:01 2010 +0000
@@ -0,0 +1,15 @@
+This module provides various type-testing functions. These are intended for
+functions that, unlike most Perl code, care what type of data they are
+operating on. For example, some functions wish to behave differently
+depending on the type of their arguments (like overloaded functions in C++).
+
+There are two flavours of function in this module. Functions of the first
+flavour only provide type classification, to allow code to discriminate
+between argument types. Functions of the second flavour package up the most
+common type of type discrimination: checking that an argument is of an
+expected type. The functions come in matched pairs, of the two flavours,
+and so the type enforcement functions handle only the simplest requirements
+for arguments of the types handled by the classification functions.
+Enforcement of more complex types may, of course, be built using the
+classification functions, or it may be more convenient to use a module
+designed for the more complex job, such as Params::Validate.
diff -r fbe814555d22 -r cbd92c47d786 devel/p5-Params-Classify/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Params-Classify/Makefile Fri Apr 09 08:12:01 2010 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/04/09 08:12:01 sno Exp $
+
+DISTNAME= Params-Classify-0.009
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Params/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://search.cpan.org/dist/Params-Classify/
+COMMENT= Perl5 module for argument type classification
+LICENSE= ${PERL5_LICENSE}
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
+
+PERL5_PACKLIST= auto/Params/Classify/.packlist
+PERL5_MODULE_TYPE= Module::Build
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r fbe814555d22 -r cbd92c47d786 devel/p5-Params-Classify/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Params-Classify/distinfo Fri Apr 09 08:12:01 2010 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/04/09 08:12:01 sno Exp $
+
+SHA1 (Params-Classify-0.009.tar.gz) = feda8bece957bdf33b145d87d32e76a16591fc48
+RMD160 (Params-Classify-0.009.tar.gz) = 5f7522f3f2dc9be97930cdb96b1f0688edebb35c
+Size (Params-Classify-0.009.tar.gz) = 13700 bytes
Home |
Main Index |
Thread Index |
Old Index