1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

Add p5-Tie-RefHash-Weak, a Tie::RefHash subclass with weakened references in

the keys.

The Tie::RefHash module can be used to access hashes by reference. This is
useful when you index by object, for example.

The problem with Tie::RefHash, and cross indexing, is that sometimes the
index should not contain strong references to the objecs. Tie::RefHash's
internal structures contain strong references to the key, and provide no
convenient means to make those references weak.

This subclass of Tie::RefHash has weak keys, instead of strong ones. The
values are left unaltered, and you'll have to make sure there are no strong
references there yourself.

WWW: http://search.cpan.org/dist/Tie-RefHash-Weak/
This commit is contained in:
Chin-San Huang 2008-08-30 14:39:06 +00:00
parent 0496cccc57
commit 0eeeca4c46
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=219462
5 changed files with 50 additions and 0 deletions

View File

@ -1782,6 +1782,7 @@
SUBDIR += p5-Tie-Hash-TwoWay
SUBDIR += p5-Tie-IxHash
SUBDIR += p5-Tie-RefHash
SUBDIR += p5-Tie-RefHash-Weak
SUBDIR += p5-Tie-Restore
SUBDIR += p5-Tie-ShareLite
SUBDIR += p5-Tie-Simple

View File

@ -0,0 +1,26 @@
# Ports collection makefile for: p5-Tie-RefHash-Weak
# Date created: 2008/08/30
# Whom: chinsan
#
# $FreeBSD$
#
PORTNAME= Tie-RefHash-Weak
PORTVERSION= 0.08
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= chinsan@FreeBSD.org
COMMENT= A Tie::RefHash subclass with weakened references in the keys
RUN_DEPENDS= p5-Task-Weaken>=0:${PORTSDIR}/devel/p5-Task-Weaken \
p5-Tie-RefHash>=0:${PORTSDIR}/devel/p5-Tie-RefHash \
p5-Variable-Magic>=0:${PORTSDIR}/devel/p5-Variable-Magic
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Tie::RefHash::Weak.3
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (Tie-RefHash-Weak-0.08.tar.gz) = 28cec8c87e123733209602e302fbc741
SHA256 (Tie-RefHash-Weak-0.08.tar.gz) = 8cc4a4d079447de6fba64eb569dabe471d378b2ba4e7b81aaec7c782e6823da2
SIZE (Tie-RefHash-Weak-0.08.tar.gz) = 7010

View File

@ -0,0 +1,13 @@
The Tie::RefHash module can be used to access hashes by reference. This is
useful when you index by object, for example.
The problem with Tie::RefHash, and cross indexing, is that sometimes the
index should not contain strong references to the objecs. Tie::RefHash's
internal structures contain strong references to the key, and provide no
convenient means to make those references weak.
This subclass of Tie::RefHash has weak keys, instead of strong ones. The
values are left unaltered, and you'll have to make sure there are no strong
references there yourself.
WWW: http://search.cpan.org/dist/Tie-RefHash-Weak/

View File

@ -0,0 +1,7 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Tie/RefHash/Weak/.packlist
%%SITE_PERL%%/Tie/RefHash/Weak.pm
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Tie/RefHash/Weak
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Tie/RefHash
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Tie
@dirrmtry %%SITE_PERL%%/Tie/RefHash
@dirrmtry %%SITE_PERL%%/Tie