pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/p5-Clone-PP Added devel/p5-Clone-PP version 1.02



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a5108b59aec2
branches:  trunk
changeset: 529800:a5108b59aec2
user:      abs <abs%pkgsrc.org@localhost>
date:      Sun Jun 10 11:42:11 2007 +0000

description:
Added devel/p5-Clone-PP version 1.02

This module provides a general-purpose clone function to make deep
copies of Perl data structures. It calls itself recursively to copy
nested hash, array, scalar and reference types, including tied
variables and objects.

The clone() function takes a scalar argument to copy. To duplicate
arrays or hashes, pass them in by reference:

The clone() function also accepts an optional second parameter that
can be used to limit the depth of the copy. If you pass a limit of
0, clone will return the same value you supplied; for a limit of
1, a shallow copy is constructed; for a limit of 2, two layers of
copying are done, and so on.

diffstat:

 devel/p5-Clone-PP/DESCR    |  13 +++++++++++++
 devel/p5-Clone-PP/Makefile |  15 +++++++++++++++
 devel/p5-Clone-PP/PLIST    |   1 +
 devel/p5-Clone-PP/distinfo |   5 +++++
 4 files changed, 34 insertions(+), 0 deletions(-)

diffs (50 lines):

diff -r 356347e51758 -r a5108b59aec2 devel/p5-Clone-PP/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Clone-PP/DESCR   Sun Jun 10 11:42:11 2007 +0000
@@ -0,0 +1,13 @@
+This module provides a general-purpose clone function to make deep
+copies of Perl data structures. It calls itself recursively to copy
+nested hash, array, scalar and reference types, including tied
+variables and objects.
+
+The clone() function takes a scalar argument to copy. To duplicate
+arrays or hashes, pass them in by reference:
+
+The clone() function also accepts an optional second parameter that
+can be used to limit the depth of the copy. If you pass a limit of
+0, clone will return the same value you supplied; for a limit of
+1, a shallow copy is constructed; for a limit of 2, two layers of
+copying are done, and so on.
diff -r 356347e51758 -r a5108b59aec2 devel/p5-Clone-PP/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Clone-PP/Makefile        Sun Jun 10 11:42:11 2007 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/06/10 11:42:11 abs Exp $
+
+DISTNAME=      Clone-PP-1.02
+PKGNAME=       p5-${DISTNAME}
+CATEGORIES=    devel perl5
+MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Clone/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://search.cpan.org/dist/Clone-PP/
+COMMENT=       Recursively copy Perl datatypes
+
+PERL5_PACKLIST=                auto/Clone/PP/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 356347e51758 -r a5108b59aec2 devel/p5-Clone-PP/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Clone-PP/PLIST   Sun Jun 10 11:42:11 2007 +0000
@@ -0,0 +1,1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/06/10 11:42:11 abs Exp $
diff -r 356347e51758 -r a5108b59aec2 devel/p5-Clone-PP/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Clone-PP/distinfo        Sun Jun 10 11:42:11 2007 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/06/10 11:42:11 abs Exp $
+
+SHA1 (Clone-PP-1.02.tar.gz) = d95fa761ff30803c876b4711a147416a943acabd
+RMD160 (Clone-PP-1.02.tar.gz) = 1e9537f2fa411fa9d19a79d3195380d770ae0a5c
+Size (Clone-PP-1.02.tar.gz) = 7746 bytes



Home | Main Index | Thread Index | Old Index