summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorsno <sno>2010-04-09 08:12:01 +0000
committersno <sno>2010-04-09 08:12:01 +0000
commite5af663a351ff86224ba448cc030cd731155ec5b (patch)
treedf6ad0a82b6e3719aed1018bcd04226ae3f4e97e /devel
parente26d2788977c44be188caf853b43500b94bf41b9 (diff)
downloadpkgsrc-e5af663a351ff86224ba448cc030cd731155ec5b.tar.gz
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 (limited to 'devel')
-rw-r--r--devel/p5-Params-Classify/DESCR15
-rw-r--r--devel/p5-Params-Classify/Makefile20
-rw-r--r--devel/p5-Params-Classify/distinfo5
3 files changed, 40 insertions, 0 deletions
diff --git a/devel/p5-Params-Classify/DESCR b/devel/p5-Params-Classify/DESCR
new file mode 100644
index 00000000000..7ca125ce7ba
--- /dev/null
+++ b/devel/p5-Params-Classify/DESCR
@@ -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 --git a/devel/p5-Params-Classify/Makefile b/devel/p5-Params-Classify/Makefile
new file mode 100644
index 00000000000..c444fefc5a6
--- /dev/null
+++ b/devel/p5-Params-Classify/Makefile
@@ -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
+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 --git a/devel/p5-Params-Classify/distinfo b/devel/p5-Params-Classify/distinfo
new file mode 100644
index 00000000000..2046a4ac2e1
--- /dev/null
+++ b/devel/p5-Params-Classify/distinfo
@@ -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