[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/21: gnu: Add Scope-Guard.
From: |
Eric Bavier |
Subject: |
18/21: gnu: Add Scope-Guard. |
Date: |
Fri, 13 Mar 2015 18:51:59 +0000 |
bavier pushed a commit to branch master
in repository guix.
commit 393ca946219ed6bc84d6d27b7c68ada18f71e5bd
Author: Eric Bavier <address@hidden>
Date: Fri Mar 13 11:56:47 2015 -0500
gnu: Add Scope-Guard.
* gnu/packages/perl.scm (perl-scope-guard): New variable.
---
gnu/packages/perl.scm | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index e726147..e166ae0 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -2439,6 +2439,30 @@ codes.")
safely on things that may not be objects.")
(license (package-license perl))))
+(define-public perl-scope-guard
+ (package
+ (name "perl-scope-guard")
+ (version "0.20")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "mirror://cpan/authors/id/C/CH/CHOCOLATE/"
+ "Scope-Guard-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1lsagnz6pli035zvx5c1x4qm9fabi773vns86yd8lzfpldhfv3sv"))))
+ (build-system perl-build-system)
+ (home-page "http://search.cpan.org/dist/Scope-Guard")
+ (synopsis "Lexically-scoped resource management")
+ (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.")
+ (license (package-license perl))))
+
(define-public perl-stream-buffered
(package
(name "perl-stream-buffered")
- 07/21: gnu: Add Context-Preserve., (continued)
- 07/21: gnu: Add Context-Preserve., Eric Bavier, 2015/03/13
- 01/21: gnu: Add Class-XSAccessor., Eric Bavier, 2015/03/13
- 12/21: gnu: Add Module-Find., Eric Bavier, 2015/03/13
- 10/21: gnu: Add Data-Page., Eric Bavier, 2015/03/13
- 11/21: gnu: Add Hash-Merge., Eric Bavier, 2015/03/13
- 13/21: gnu: Add Class-Method-Modifiers., Eric Bavier, 2015/03/13
- 09/21: gnu: Add Class-Accessor-Chained., Eric Bavier, 2015/03/13
- 16/21: gnu: Add strictures., Eric Bavier, 2015/03/13
- 15/21: gnu: Add Role-Tiny., Eric Bavier, 2015/03/13
- 17/21: gnu: Add Moo., Eric Bavier, 2015/03/13
- 18/21: gnu: Add Scope-Guard.,
Eric Bavier <=
- 14/21: gnu: Add Import-Into., Eric Bavier, 2015/03/13
- 19/21: gnu: Add Text-Balanced., Eric Bavier, 2015/03/13
- 20/21: gnu: Add SQL-Abstract., Eric Bavier, 2015/03/13
- 21/21: gnu: Add DBIx-Class., Eric Bavier, 2015/03/13