import p5-Scope-Guard
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. ok jasper@, tested by espie@
This commit is contained in:
parent
29fabbd655
commit
4debab46fc
19
devel/p5-Scope-Guard/Makefile
Normal file
19
devel/p5-Scope-Guard/Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2007/10/25 21:22:38 simon Exp $
|
||||
|
||||
COMMENT= lexically scoped resource management
|
||||
|
||||
MODULES= cpan
|
||||
DISTNAME= Scope-Guard-0.03
|
||||
CATEGORIES= devel
|
||||
|
||||
CPAN_AUTHOR= CHOCOLATE
|
||||
|
||||
MAINTAINER= Simon Bertrang <simon@openbsd.org>
|
||||
|
||||
# Perl
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
.include <bsd.port.mk>
|
5
devel/p5-Scope-Guard/distinfo
Normal file
5
devel/p5-Scope-Guard/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (Scope-Guard-0.03.tar.gz) = ozqwox2De5R5fmEFCv/4lA==
|
||||
RMD160 (Scope-Guard-0.03.tar.gz) = t7RCZAn4h+OtJa8LUmNLOaMZg3c=
|
||||
SHA1 (Scope-Guard-0.03.tar.gz) = +fHC+ZrKHid2KIh7vf9sgObxXYU=
|
||||
SHA256 (Scope-Guard-0.03.tar.gz) = yysNyHDH8/mSNQXj6yT8D8GlYJZCHd2ftZx2PJ0xqR8=
|
||||
SIZE (Scope-Guard-0.03.tar.gz) = 2938
|
7
devel/p5-Scope-Guard/pkg/DESCR
Normal file
7
devel/p5-Scope-Guard/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
||||
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.
|
4
devel/p5-Scope-Guard/pkg/PLIST
Normal file
4
devel/p5-Scope-Guard/pkg/PLIST
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/10/25 21:22:38 simon Exp $
|
||||
${P5SITE}/Scope/
|
||||
${P5SITE}/Scope/Guard.pm
|
||||
@man man/man3p/Scope::Guard.3p
|
Loading…
Reference in New Issue
Block a user