summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorabs <abs>2007-06-10 11:42:11 +0000
committerabs <abs>2007-06-10 11:42:11 +0000
commit7848792eb53c7ca00e0a073eddc31c423c9a8b09 (patch)
tree6f14b9f74c818b110f1f6b548f76f3b9e71aee00 /devel
parentf7747099f8980b3c0312efc3d931f97a3f8d5ce7 (diff)
downloadpkgsrc-7848792eb53c7ca00e0a073eddc31c423c9a8b09.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')
-rw-r--r--devel/p5-Clone-PP/DESCR13
-rw-r--r--devel/p5-Clone-PP/Makefile15
-rw-r--r--devel/p5-Clone-PP/PLIST1
-rw-r--r--devel/p5-Clone-PP/distinfo5
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