diff options
author | abs <abs@pkgsrc.org> | 2007-06-10 11:42:11 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2007-06-10 11:42:11 +0000 |
commit | 91d8f89b9bffa0ae0323f5d747df2eaef0b9955f (patch) | |
tree | 6f14b9f74c818b110f1f6b548f76f3b9e71aee00 /devel/p5-Clone-PP | |
parent | eb6a9130f6e610ae12062cd1f9013e10c1add33d (diff) | |
download | pkgsrc-91d8f89b9bffa0ae0323f5d747df2eaef0b9955f.tar.gz |
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 (limited to 'devel/p5-Clone-PP')
-rw-r--r-- | devel/p5-Clone-PP/DESCR | 13 | ||||
-rw-r--r-- | devel/p5-Clone-PP/Makefile | 15 | ||||
-rw-r--r-- | devel/p5-Clone-PP/PLIST | 1 | ||||
-rw-r--r-- | devel/p5-Clone-PP/distinfo | 5 |
4 files changed, 34 insertions, 0 deletions
diff --git a/devel/p5-Clone-PP/DESCR b/devel/p5-Clone-PP/DESCR new file mode 100644 index 00000000000..b57ef0ebeb8 --- /dev/null +++ b/devel/p5-Clone-PP/DESCR @@ -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 --git a/devel/p5-Clone-PP/Makefile b/devel/p5-Clone-PP/Makefile new file mode 100644 index 00000000000..aaca1bf174c --- /dev/null +++ b/devel/p5-Clone-PP/Makefile @@ -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 +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 --git a/devel/p5-Clone-PP/PLIST b/devel/p5-Clone-PP/PLIST new file mode 100644 index 00000000000..b02aa89f373 --- /dev/null +++ b/devel/p5-Clone-PP/PLIST @@ -0,0 +1 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/06/10 11:42:11 abs Exp $ diff --git a/devel/p5-Clone-PP/distinfo b/devel/p5-Clone-PP/distinfo new file mode 100644 index 00000000000..1dc55484317 --- /dev/null +++ b/devel/p5-Clone-PP/distinfo @@ -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 |