pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/p5-Tie-ToObject import p5-Tie-ToObject-0.03



details:   https://anonhg.NetBSD.org/pkgsrc/rev/484722e6a019
branches:  trunk
changeset: 543820:484722e6a019
user:      abs <abs%pkgsrc.org@localhost>
date:      Mon Jun 23 03:53:33 2008 +0000

description:
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:

 devel/p5-Tie-ToObject/DESCR    |  13 +++++++++++++
 devel/p5-Tie-ToObject/Makefile |  18 ++++++++++++++++++
 devel/p5-Tie-ToObject/distinfo |   5 +++++
 3 files changed, 36 insertions(+), 0 deletions(-)

diffs (48 lines):

diff -r 6b96f90e3ceb -r 484722e6a019 devel/p5-Tie-ToObject/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Tie-ToObject/DESCR       Mon Jun 23 03:53:33 2008 +0000
@@ -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 -r 6b96f90e3ceb -r 484722e6a019 devel/p5-Tie-ToObject/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Tie-ToObject/Makefile    Mon Jun 23 03:53:33 2008 +0000
@@ -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@localhost
+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 -r 6b96f90e3ceb -r 484722e6a019 devel/p5-Tie-ToObject/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Tie-ToObject/distinfo    Mon Jun 23 03:53:33 2008 +0000
@@ -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



Home | Main Index | Thread Index | Old Index