summaryrefslogtreecommitdiff
path: root/devel/p5-Tie-ToObject
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2008-06-23 03:53:33 +0000
committerabs <abs@pkgsrc.org>2008-06-23 03:53:33 +0000
commit8cf0f85c75883084c616a086e1cc74a332f91634 (patch)
tree5c1c9ce57e57f314036f76dfb8985cbb6a499a41 /devel/p5-Tie-ToObject
parentdbd2b7f8759b749ed2e31f3d191afd33b46ac390 (diff)
downloadpkgsrc-8cf0f85c75883084c616a086e1cc74a332f91634.tar.gz
import p5-Tie-ToObject-0.03
While "tie" in perldoc allows tying to an arbitrary object, the class in question must support this in it's implementation of TIEHASH, TIEARRAY or whatever. This class provides a very tie constructor that simply returns the object it was given as it's first argument. This way side effects of calling $object->TIEHASH are avoided. This is used in Data::Visitor in order to tie a variable to an already existing object. This is also useful for cloning, when you want to clone the internal state object instead of going through the tie interface for that variable.
Diffstat (limited to 'devel/p5-Tie-ToObject')
-rw-r--r--devel/p5-Tie-ToObject/DESCR13
-rw-r--r--devel/p5-Tie-ToObject/Makefile18
-rw-r--r--devel/p5-Tie-ToObject/distinfo5
3 files changed, 36 insertions, 0 deletions
diff --git a/devel/p5-Tie-ToObject/DESCR b/devel/p5-Tie-ToObject/DESCR
new file mode 100644
index 00000000000..57b2ea6039e
--- /dev/null
+++ b/devel/p5-Tie-ToObject/DESCR
@@ -0,0 +1,13 @@
+While "tie" in perldoc allows tying to an arbitrary object, the
+class in question must support this in it's implementation of
+TIEHASH, TIEARRAY or whatever.
+
+This class provides a very tie constructor that simply returns the
+object it was given as it's first argument.
+
+This way side effects of calling $object->TIEHASH are avoided.
+
+This is used in Data::Visitor in order to tie a variable to an
+already existing object. This is also useful for cloning, when you
+want to clone the internal state object instead of going through
+the tie interface for that variable.
diff --git a/devel/p5-Tie-ToObject/Makefile b/devel/p5-Tie-ToObject/Makefile
new file mode 100644
index 00000000000..add560d31b1
--- /dev/null
+++ b/devel/p5-Tie-ToObject/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/06/23 03:53:33 abs Exp $
+
+DISTNAME= Tie-ToObject-0.03
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= textproc perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Tie/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/Tie-ToObject/
+COMMENT= Tie to an existing object
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/Tie/ToObject/.packlist
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-Tie-ToObject/distinfo b/devel/p5-Tie-ToObject/distinfo
new file mode 100644
index 00000000000..c6a77a380fb
--- /dev/null
+++ b/devel/p5-Tie-ToObject/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/06/23 03:53:33 abs Exp $
+
+SHA1 (Tie-ToObject-0.03.tar.gz) = 3fba2f3691b4b82a03ba569e816cc08c8f3bb10d
+RMD160 (Tie-ToObject-0.03.tar.gz) = 430e883a4400e98ff479cdb7f592c476ca880102
+Size (Tie-ToObject-0.03.tar.gz) = 3018 bytes