From f11a2f4531f6054650a979453088b64687b152e9 Mon Sep 17 00:00:00 2001 From: abs Date: Mon, 14 Jul 2008 09:26:16 +0000 Subject: Added devel/p5-Scope-Guard version 0.03 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. --- devel/p5-Scope-Guard/DESCR | 7 +++++++ devel/p5-Scope-Guard/Makefile | 18 ++++++++++++++++++ devel/p5-Scope-Guard/distinfo | 5 +++++ 3 files changed, 30 insertions(+) create mode 100644 devel/p5-Scope-Guard/DESCR create mode 100644 devel/p5-Scope-Guard/Makefile create mode 100644 devel/p5-Scope-Guard/distinfo diff --git a/devel/p5-Scope-Guard/DESCR b/devel/p5-Scope-Guard/DESCR new file mode 100644 index 00000000000..383319d5976 --- /dev/null +++ b/devel/p5-Scope-Guard/DESCR @@ -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. diff --git a/devel/p5-Scope-Guard/Makefile b/devel/p5-Scope-Guard/Makefile new file mode 100644 index 00000000000..e0cf56ff461 --- /dev/null +++ b/devel/p5-Scope-Guard/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/07/14 09:26:16 abs Exp $ + +DISTNAME= Scope-Guard-0.03 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/C/CH/CHOCOLATE/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://search.cpan.org/perldoc?Scope::Guard +COMMENT= Lexically scoped resource management + +USE_LANGUAGES= # empty +PERL5_PACKLIST= auto/Scope/Guard/.packlist + +PKG_DESTDIR_SUPPORT= user-destdir + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-Scope-Guard/distinfo b/devel/p5-Scope-Guard/distinfo new file mode 100644 index 00000000000..48741806bee --- /dev/null +++ b/devel/p5-Scope-Guard/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/07/14 09:26:16 abs Exp $ + +SHA1 (Scope-Guard-0.03.tar.gz) = f9f1c2f99aca1e277628887bbdff6c80e6f15d85 +RMD160 (Scope-Guard-0.03.tar.gz) = b7b4426409f887e3ad25af0b52634b39a3198377 +Size (Scope-Guard-0.03.tar.gz) = 2938 bytes -- cgit v1.2.3