From de88261818db131cc065db5f9d57e20b421ae13c Mon Sep 17 00:00:00 2001 From: benoit Date: Thu, 30 Dec 2010 10:39:31 +0000 Subject: [PATCH] import p5-Iterator; a general-purpose iterator class. --- devel/p5-Iterator/Makefile | 20 ++++++++++++++++++++ devel/p5-Iterator/distinfo | 5 +++++ devel/p5-Iterator/pkg/DESCR | 8 ++++++++ devel/p5-Iterator/pkg/PLIST | 3 +++ 4 files changed, 36 insertions(+) create mode 100644 devel/p5-Iterator/Makefile create mode 100644 devel/p5-Iterator/distinfo create mode 100644 devel/p5-Iterator/pkg/DESCR create mode 100644 devel/p5-Iterator/pkg/PLIST diff --git a/devel/p5-Iterator/Makefile b/devel/p5-Iterator/Makefile new file mode 100644 index 00000000000..36881d5637a --- /dev/null +++ b/devel/p5-Iterator/Makefile @@ -0,0 +1,20 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2010/12/30 10:39:31 benoit Exp $ + +COMMENT = a general-purpose iterator class. + +DISTNAME = Iterator-0.03 +CATEGORIES = devel + +MAINTAINER = Benoit Lecocq + +# Perl +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +MODULES = cpan + +REGRESS_DEPENDS = devel/p5-Exception-Class + +.include diff --git a/devel/p5-Iterator/distinfo b/devel/p5-Iterator/distinfo new file mode 100644 index 00000000000..cd3d0cdbe24 --- /dev/null +++ b/devel/p5-Iterator/distinfo @@ -0,0 +1,5 @@ +MD5 (Iterator-0.03.tar.gz) = 1ZSHwgnACibiA8SJ2+abBw== +RMD160 (Iterator-0.03.tar.gz) = jznw11WzpyVehh+TsO3eHgB2w7k= +SHA1 (Iterator-0.03.tar.gz) = 9nRXMt/4+fdukaufNAtDpY2vRo8= +SHA256 (Iterator-0.03.tar.gz) = W4igQ06wSSe9CmXm+SDzrmrDmzIucuGxlwGLcLDO+H8= +SIZE (Iterator-0.03.tar.gz) = 22454 diff --git a/devel/p5-Iterator/pkg/DESCR b/devel/p5-Iterator/pkg/DESCR new file mode 100644 index 00000000000..9f8471a8330 --- /dev/null +++ b/devel/p5-Iterator/pkg/DESCR @@ -0,0 +1,8 @@ +This module is meant to be the definitive implementation of +iterators, as popularized by Mark Jason Dominus's lectures and +recent book (_Higher Order Perl_, Morgan Kauffman, 2005). + +An "iterator" is an object, represented as a code block that +generates the "next value" of a sequence, and generally +implemented as a closure. Iterator.pm provides a class that +simplifies creation and use of these iterator objects. diff --git a/devel/p5-Iterator/pkg/PLIST b/devel/p5-Iterator/pkg/PLIST new file mode 100644 index 00000000000..5249317e52a --- /dev/null +++ b/devel/p5-Iterator/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2010/12/30 10:39:31 benoit Exp $ +${P5SITE}/Iterator.pm +@man man/man3p/Iterator.3p