another scope guard, prereq for coroutines

This commit is contained in:
espie 2010-12-13 09:53:16 +00:00
parent 5cb978edde
commit 80a333a8eb
4 changed files with 43 additions and 0 deletions

19
devel/p5-Guard/Makefile Normal file
View File

@ -0,0 +1,19 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/12/13 09:53:16 espie Exp $
SHARED_ONLY = Yes
COMMENT = scope guards, lighter alternative
MODULES = cpan
DISTNAME = Guard-1.021
CATEGORIES = devel
CPAN_AUTHOR = MLEHMANN
USE_GROFF = Yes
# perl
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
.include <bsd.port.mk>

5
devel/p5-Guard/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (Guard-1.021.tar.gz) = bBXohcCJEV+CY6WHPtdPHg==
RMD160 (Guard-1.021.tar.gz) = 1DLqTJ/f8+qkH+eGy1IgGsuHDSc=
SHA1 (Guard-1.021.tar.gz) = oubKWoM2rdEsWnXL10COFPYtKnc=
SHA256 (Guard-1.021.tar.gz) = 87YQ9R35l91vY4StMZuqvjd/cPIIjWZaMGfCXAOmqd4=
SIZE (Guard-1.021.tar.gz) = 6621

11
devel/p5-Guard/pkg/DESCR Normal file
View File

@ -0,0 +1,11 @@
This module implements so-called "guards". A guard is something
(usually an object) that "guards" a resource, ensuring that it
is cleaned up when expected.
It is similar to eval {} blocks, except it's faster, and catches everything,
including direct calls to exit and the like. Prerequisite to Coro.
Different from Scope::Guard and Sub::ScopeFinalizer, which actually
implement dynamic, not scoped guards, and have a lot higher CPU,
memory and typing overhead.

8
devel/p5-Guard/pkg/PLIST Normal file
View File

@ -0,0 +1,8 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/12/13 09:53:16 espie Exp $
${P5ARCH}/
${P5ARCH}/Guard.pm
${P5ARCH}/auto/
${P5ARCH}/auto/Guard/
${P5ARCH}/auto/Guard/Guard.bs
${P5ARCH}/auto/Guard/Guard.so
@man man/man3p/Guard.3p