From 0ad56eab051c267bb27ccf0749485807d23ab6f0 Mon Sep 17 00:00:00 2001 From: Lars Balker Rasmussen Date: Wed, 27 Jun 2007 13:51:04 +0000 Subject: This module provides the ability to use references as hash keys if you first "tie" the hash variable to this module. Normally, only the keys of the tied hash itself are preserved as references; to use references as keys in hashes-of-hashes, use Tie::RefHash::Nestable, included as part of Tie::RefHash. Note, this module is part of all relevant perl dists, but various CPAN packages are beginning to require bug fixes found in newer versions. --- devel/p5-Tie-RefHash/Makefile | 21 +++++++++++++++++++++ devel/p5-Tie-RefHash/distinfo | 3 +++ devel/p5-Tie-RefHash/pkg-descr | 15 +++++++++++++++ devel/p5-Tie-RefHash/pkg-plist | 5 +++++ 4 files changed, 44 insertions(+) create mode 100644 devel/p5-Tie-RefHash/Makefile create mode 100644 devel/p5-Tie-RefHash/distinfo create mode 100644 devel/p5-Tie-RefHash/pkg-descr create mode 100644 devel/p5-Tie-RefHash/pkg-plist (limited to 'devel/p5-Tie-RefHash') diff --git a/devel/p5-Tie-RefHash/Makefile b/devel/p5-Tie-RefHash/Makefile new file mode 100644 index 000000000000..6cb6a00a0cad --- /dev/null +++ b/devel/p5-Tie-RefHash/Makefile @@ -0,0 +1,21 @@ +# Ports collection makefile for: p5-Tie-RefHash +# Date created: Jun 27, 2007 +# Whom: Lars Balker Rasmussen +# +# $FreeBSD$ +# + +PORTNAME= Tie-RefHash +PORTVERSION= 1.37 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= lbr@FreeBSD.org +COMMENT= Tie::RefHash - use references as hash keys + +PERL_CONFIGURE= yes + +MAN3= Tie::RefHash.3 + +.include diff --git a/devel/p5-Tie-RefHash/distinfo b/devel/p5-Tie-RefHash/distinfo new file mode 100644 index 000000000000..746836a41d59 --- /dev/null +++ b/devel/p5-Tie-RefHash/distinfo @@ -0,0 +1,3 @@ +MD5 (Tie-RefHash-1.37.tar.gz) = 42dbd4d263d051ddcebc74dcd852c329 +SHA256 (Tie-RefHash-1.37.tar.gz) = e3bce22628140db509111fcec4ae791f27c905c162134e8925662d5bd6781e08 +SIZE (Tie-RefHash-1.37.tar.gz) = 7613 diff --git a/devel/p5-Tie-RefHash/pkg-descr b/devel/p5-Tie-RefHash/pkg-descr new file mode 100644 index 000000000000..4e45e58aa522 --- /dev/null +++ b/devel/p5-Tie-RefHash/pkg-descr @@ -0,0 +1,15 @@ +This module provides the ability to use references as hash keys if you +first "tie" the hash variable to this module. Normally, only the keys +of the tied hash itself are preserved as references; to use references +as keys in hashes-of-hashes, use Tie::RefHash::Nestable, included as +part of Tie::RefHash. + +It is implemented using the standard perl TIEHASH interface. Please +see the "tie" entry in perlfunc(1) and perltie(1) for more information. + +The Nestable version works by looking for hash references being stored +and converting them to tied hashes so that they too can have references +as keys. This will happen without warning whenever you store a refer- +ence to one of your own hashes in the tied hash. + +WWW: http://search.cpan.org/dist/Tie-RefHash/ diff --git a/devel/p5-Tie-RefHash/pkg-plist b/devel/p5-Tie-RefHash/pkg-plist new file mode 100644 index 000000000000..9c3cc50ca7db --- /dev/null +++ b/devel/p5-Tie-RefHash/pkg-plist @@ -0,0 +1,5 @@ +%%SITE_PERL%%/Tie/RefHash.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Tie/RefHash/.packlist +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Tie/RefHash +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Tie +@dirrmtry %%SITE_PERL%%/Tie -- cgit v1.2.3