[Midnightbsd-cvs] mports: devel/p5-Scope-Guard: Added Scope::Guard
ctriv at midnightbsd.org
ctriv at midnightbsd.org
Sat Sep 1 12:50:16 EDT 2007
Log Message:
-----------
Added Scope::Guard
Added Files:
-----------
mports/devel/p5-Scope-Guard:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
-------------- next part --------------
--- /dev/null
+++ devel/p5-Scope-Guard/pkg-descr
@@ -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/
--- /dev/null
+++ devel/p5-Scope-Guard/pkg-plist
@@ -0,0 +1,6 @@
+ at comment $FreeBSD: ports/devel/p5-Scope-Guard/pkg-plist,v 1.1 2006/12/30 22:09:16 miwi Exp $
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Scope/Guard/.packlist
+%%SITE_PERL%%/Scope/Guard.pm
+ at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Scope/Guard
+ at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Scope
+ at dirrmtry %%SITE_PERL%%/Scope
--- /dev/null
+++ devel/p5-Scope-Guard/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: Scope-Guard
+# Date created: 29 December 2006
+# Whom: Craig Manley
+#
+# $FreeBSD: ports/devel/p5-Scope-Guard/Makefile,v 1.2 2007/02/09 05:32:02 rafan Exp $
+# $MidnightBSD: mports/devel/p5-Scope-Guard/Makefile,v 1.1 2007/09/01 16:50:15 ctriv Exp $
+#
+
+PORTNAME= Scope-Guard
+PORTVERSION= 0.03
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= ../by-authors/id/C/CH/CHOCOLATE
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= ctriv at MidnightBSD.org
+COMMENT= Lexically scoped resource management
+LICENSE= perl
+
+PERL_CONFIGURE= yes
+
+MAN3= Scope::Guard.3
+
+.include <bsd.port.mk>
+
--- /dev/null
+++ devel/p5-Scope-Guard/distinfo
@@ -0,0 +1,3 @@
+MD5 (Scope-Guard-0.03.tar.gz) = a33ab0a31d837b94797e61050afff894
+SHA256 (Scope-Guard-0.03.tar.gz) = cb2b0dc870c7f3f9923505e3eb24fc0fc1a56096421ddd9fb59c763c9d31a91f
+SIZE (Scope-Guard-0.03.tar.gz) = 2938
More information about the Midnightbsd-cvs
mailing list