pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-Scope-Guard Added devel/p5-Scope-Guard versio...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/03df8eb23de0
branches:  trunk
changeset: 544404:03df8eb23de0
user:      abs <abs%pkgsrc.org@localhost>
date:      Mon Jul 14 09:26:16 2008 +0000

description:
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.

diffstat:

 devel/p5-Scope-Guard/DESCR    |   7 +++++++
 devel/p5-Scope-Guard/Makefile |  18 ++++++++++++++++++
 devel/p5-Scope-Guard/distinfo |   5 +++++
 3 files changed, 30 insertions(+), 0 deletions(-)

diffs (42 lines):

diff -r d20bf1c541bc -r 03df8eb23de0 devel/p5-Scope-Guard/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Scope-Guard/DESCR        Mon Jul 14 09:26:16 2008 +0000
@@ -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 -r d20bf1c541bc -r 03df8eb23de0 devel/p5-Scope-Guard/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Scope-Guard/Makefile     Mon Jul 14 09:26:16 2008 +0000
@@ -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@localhost
+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 -r d20bf1c541bc -r 03df8eb23de0 devel/p5-Scope-Guard/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Scope-Guard/distinfo     Mon Jul 14 09:26:16 2008 +0000
@@ -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



Home | Main Index | Thread Index | Old Index