This module provides a convenient way to perform cleanup or other forms of
resource management at the end of a scope. It is particularly useful when dealing with exceptions: the Scope::Guard constructor takes a reference to a subroutine that is guaranteed to be called even if the thread of execution is aborted prematurely. This effectively allows lexically-scoped "promises" to be made that are automatically honoured by perl's garbage collector. For more info, see: http://www.cuj.com/documents/s=8000/cujcexp1812alexandr/ WWW: http://search.cpan.org/dist/Scope-Guard/ PR: ports/107321 Submitted by: Craig Manley <cmanley@xs4all.nl>
This commit is contained in:
parent
1626ad0f0e
commit
e9378167b7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=181098
5 changed files with 49 additions and 0 deletions
|
@ -1363,6 +1363,7 @@
|
|||
SUBDIR += p5-SVN-Web
|
||||
SUBDIR += p5-Scalar-Defer
|
||||
SUBDIR += p5-Scalar-Util-Clone
|
||||
SUBDIR += p5-Scope-Guard
|
||||
SUBDIR += p5-Search-Binary
|
||||
SUBDIR += p5-Set-Array
|
||||
SUBDIR += p5-Set-Crontab
|
||||
|
|
29
devel/p5-Scope-Guard/Makefile
Normal file
29
devel/p5-Scope-Guard/Makefile
Normal file
|
@ -0,0 +1,29 @@
|
|||
# New ports collection makefile for: Scope-Guard
|
||||
# Date created: 29 December 2006
|
||||
# Whom: Craig Manley
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= Scope-Guard
|
||||
PORTVERSION= 0.02
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
#MASTER_SITE_SUBDIR= Scope
|
||||
MASTER_SITE_SUBDIR= ../by-authors/id/C/CH/CHOCOLATE
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= cmanley@xs4all.nl
|
||||
COMMENT= Lexically scoped resource management
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
MAN3= Scope::Guard.3
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PERL_LEVEL} < 500600
|
||||
IGNORE= requires perl 5.6.0 or later
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
devel/p5-Scope-Guard/distinfo
Normal file
3
devel/p5-Scope-Guard/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (Scope-Guard-0.02.tar.gz) = 6c5da688e7dbe762147fd1441a747b25
|
||||
SHA256 (Scope-Guard-0.02.tar.gz) = 562ac7867c68f488b63f6ef88230b7b341dc69d0a91d31b1bdc672b7bf1f3d10
|
||||
SIZE (Scope-Guard-0.02.tar.gz) = 2736
|
10
devel/p5-Scope-Guard/pkg-descr
Normal file
10
devel/p5-Scope-Guard/pkg-descr
Normal file
|
@ -0,0 +1,10 @@
|
|||
This module provides a convenient way to perform cleanup or other forms of
|
||||
resource management at the end of a scope. It is particularly useful when
|
||||
dealing with exceptions: the Scope::Guard constructor takes a reference to a
|
||||
subroutine that is guaranteed to be called even if the thread of execution is
|
||||
aborted prematurely. This effectively allows lexically-scoped "promises" to be
|
||||
made that are automatically honoured by perl's garbage collector.
|
||||
|
||||
For more info, see: http://www.cuj.com/documents/s=8000/cujcexp1812alexandr/
|
||||
|
||||
WWW: http://search.cpan.org/dist/Scope-Guard/
|
6
devel/p5-Scope-Guard/pkg-plist
Normal file
6
devel/p5-Scope-Guard/pkg-plist
Normal file
|
@ -0,0 +1,6 @@
|
|||
@comment $FreeBSD$
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Scope/Guard/.packlist
|
||||
%%SITE_PERL%%/Scope/Guard.pm
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Scope/Guard
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Scope
|
||||
@dirrmtry %%SITE_PERL%%/Scope
|
Loading…
Reference in a new issue