ports/107321: New port: p5-Scope-Guard
Craig Manley
cmanley at xs4all.nl
Fri Dec 29 13:10:20 UTC 2006
>Number: 107321
>Category: ports
>Synopsis: New port: p5-Scope-Guard
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Dec 29 13:10:19 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Craig Manley
>Release: FreeBSD 6.1-RELEASE-p5 amd64
>Organization:
>Environment:
System: FreeBSD hfx.xs4all.nl 6.1-RELEASE-p5 FreeBSD 6.1-RELEASE-p5 #1: Sun Sep 3 17:08:38 CEST 2006 root at hfx.xs4all.nl:/usr/obj/usr/src/sys/HFX amd64
>Description:
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/
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# .
# ./Makefile
# ./distinfo
# ./pkg-descr
# ./pkg-plist
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for: Scope-Guard
X# Date created: 29 December 2006
X# Whom: Craig Manley
X#
X# $FreeBSD$
X#
X
XPORTNAME= Scope-Guard
XPORTVERSION= 0.02
XCATEGORIES= devel perl5
XMASTER_SITES= ${MASTER_SITE_PERL_CPAN}
X#MASTER_SITE_SUBDIR= Scope
XMASTER_SITE_SUBDIR= ../by-authors/id/C/CH/CHOCOLATE
XPKGNAMEPREFIX= p5-
X
XMAINTAINER= perl at FreeBSD.org
XCOMMENT= Lexically scoped resource management
X
XPERL_CONFIGURE= yes
X
XMAN3= Scope::Guard.3
X
X.include <bsd.port.pre.mk>
X
X.if ${PERL_LEVEL} < 500600
XIGNORE= requires perl 5.6.0 or later
X.endif
X
X.include <bsd.port.post.mk>
END-of-./Makefile
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (Scope-Guard-0.02.tar.gz) = 6c5da688e7dbe762147fd1441a747b25
XSHA256 (Scope-Guard-0.02.tar.gz) = 562ac7867c68f488b63f6ef88230b7b341dc69d0a91d31b1bdc672b7bf1f3d10
XSIZE (Scope-Guard-0.02.tar.gz) = 2736
END-of-./distinfo
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XThis module provides a convenient way to perform cleanup or other forms of
Xresource management at the end of a scope. It is particularly useful when
Xdealing with exceptions: the Scope::Guard constructor takes a reference to a
Xsubroutine that is guaranteed to be called even if the thread of execution is
Xaborted prematurely. This effectively allows lexically-scoped "promises" to be
Xmade that are automatically honoured by perl's garbage collector.
X
XFor more info, see: http://www.cuj.com/documents/s=8000/cujcexp1812alexandr/
X
XWWW: http://search.cpan.org/dist/Scope-Guard/
END-of-./pkg-descr
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
X at comment $FreeBSD$
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Scope/Guard/.packlist
X%%SITE_PERL%%/Scope/Guard.pm
X at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Scope/Guard
X at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Scope
X at dirrmtry %%SITE_PERL%%/Scope
END-of-./pkg-plist
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list