summaryrefslogtreecommitdiff
path: root/devel/p5-Scope-Guard
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2008-07-14 09:26:16 +0000
committerabs <abs@pkgsrc.org>2008-07-14 09:26:16 +0000
commit7170e633684122798a13d00871083d66ec37ff5f (patch)
tree740dd5aaa23e119c4b010a6963888f534334f9d3 /devel/p5-Scope-Guard
parent9884d55fdb26abaca585957a5c259dffb4725aa9 (diff)
downloadpkgsrc-7170e633684122798a13d00871083d66ec37ff5f.tar.gz
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 (limited to 'devel/p5-Scope-Guard')
-rw-r--r--devel/p5-Scope-Guard/DESCR7
-rw-r--r--devel/p5-Scope-Guard/Makefile18
-rw-r--r--devel/p5-Scope-Guard/distinfo5
3 files changed, 30 insertions, 0 deletions
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