BSD Ports

devel/p5-Scope-Guard 0.21 FreeBSD

Lexically scoped resource management

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
5.5 KiB, 8.5 KiB installed

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.drdobbs.com/cpp/184403758

In the other systems

SystemPortVersion
FreeBSDdevel/p5-Scope-Guard0.21
OpenBSDdevel/p5-Scope-Guard0.21p0
NetBSDdevel/p5-Scope-Guard0.21nb11
DragonFlydevel/p5-Scope-Guard0.21
MidnightBSDdevel/p5-Scope-Guard0.21
HardenedBSDdevel/p5-Scope-Guard0.21
GhostBSDdevel/p5-Scope-Guard0.21

Install

Binary package:

pkg install p5-Scope-Guard

From the ports tree:

cd /usr/ports/devel/p5-Scope-Guard/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Scope-Guard>0:devel/p5-Scope-Guard

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.210.210.210.210.21
FreeBSD:14:quarterly0.210.21n/a0.210.21
FreeBSD:15:latest0.210.21n/a0.210.21
FreeBSD:15:quarterly0.210.21n/an/an/a
FreeBSD:16:latest0.210.21n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1
Required by 99

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Scope/Guard.pm
  • %%PERL5_MAN3%%/Scope::Guard.3.gz
distinfo 1
FileSizeSHA256
Scope-Guard-0.21.tar.gz43778c9b1bea5c56448e2c3fadc65d05be9e4690a3823a80f39d2f10fdd8f777d278
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.