A patch to Perl 5.005_55 by the author implements a core API for

weak references. This module is a Perl-level interface to that API,
allowing weak references to be created in Perl.

A weak reference is just like an ordinary Perl reference except
that it isn't included in the reference count of the thing referred
to. This means that once all references to a particular piece of
data are weak, the piece of data is freed and all the weak references
are set to undef. This is particularly useful for implementing
circular data structures without memory leaks or caches of objects.

WWW: http://search.cpan.org/dist/WeakRef/

PR:		ports/98963
Submitted by:	Dmitry Marakasov <amdmi3@mail.ru>
This commit is contained in:
Erwin Lansing 2006-06-15 16:05:41 +00:00
parent 62911c0372
commit 0e7de4a648
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=165513
5 changed files with 43 additions and 0 deletions

View file

@ -1353,6 +1353,7 @@
SUBDIR += p5-VCS
SUBDIR += p5-VCS-CVS
SUBDIR += p5-Want
SUBDIR += p5-WeakRef
SUBDIR += p5-Workflow
SUBDIR += p5-XSLoader
SUBDIR += p5-Yada-Yada-Yada

22
devel/p5-WeakRef/Makefile Normal file
View file

@ -0,0 +1,22 @@
# New ports collection makefile for: p5-WeakRef
# Date created: 14 Jun 2006
# Whom: Dmitry Marakasov <amdmi3@mail.ru>
#
# $FreeBSD$
#
PORTNAME= WeakRef
PORTVERSION= 0.01
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= ../../authors/id/L/LU/LUKKA/
PKGNAMEPREFIX= p5-
MAINTAINER= amdmi3@mail.ru
COMMENT= An API to the Perl weak references
PERL_CONFIGURE= yes
MAN3= WeakRef.3
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (WeakRef-0.01.tar.gz) = 3162df7a6eda0dfb44676dd9ebfa3c4c
SHA256 (WeakRef-0.01.tar.gz) = 39506f9d2f5b4f353fd31e3d4764a0a3c85caa6a9df6271dac0e7620a78e616b
SIZE (WeakRef-0.01.tar.gz) = 3069

View file

@ -0,0 +1,12 @@
A patch to Perl 5.005_55 by the author implements a core API for
weak references. This module is a Perl-level interface to that API,
allowing weak references to be created in Perl.
A weak reference is just like an ordinary Perl reference except
that it isn't included in the reference count of the thing referred
to. This means that once all references to a particular piece of
data are weak, the piece of data is freed and all the weak references
are set to undef. This is particularly useful for implementing
circular data structures without memory leaks or caches of objects.
WWW: http://search.cpan.org/dist/WeakRef/

View file

@ -0,0 +1,5 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/WeakRef/.packlist
%%SITE_PERL%%/%%PERL_ARCH%%/auto/WeakRef/WeakRef.so
%%SITE_PERL%%/%%PERL_ARCH%%/auto/WeakRef/WeakRef.bs
%%SITE_PERL%%/%%PERL_ARCH%%/WeakRef.pm
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/WeakRef