guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/3] gnu: Add perl-guard.


From: Alex Sassmannshausen
Subject: [PATCH 2/3] gnu: Add perl-guard.
Date: Wed, 29 Jun 2016 16:43:16 +0200

* gnu/packages/perl.scm (perl-guard): New variable.
---
 gnu/packages/perl.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 147424b..a11f036 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -2509,6 +2509,32 @@ vaguely inspired by John Ousterhout's Tk_ParseArgv.")
                               "Getopt-Tabular-" version))
     (license (package-license perl))))
 
+(define-public perl-guard
+  (package
+    (name "perl-guard")
+    (version "1.023")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/Guard-";
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1p6i9mfmbs9cw40jqdv71ihv2xfi0vvlv8bdv2810gf93zwxvi1l"))))
+    (build-system perl-build-system)
+    (home-page "http://search.cpan.org/dist/Guard";)
+    (synopsis "Safe cleanup blocks implemented as guards")
+    (description "Guard implements so-called \"guards\".  A guard is
+something (usually an object) that \"guards\" a resource, ensuring that it is
+cleaned up when expected.
+
+Specifically, this module supports two different types of guards: guard
+objects, which execute a given code block when destroyed, and scoped guards,
+which are tied to the scope exit.")
+    (license (package-license perl))))
+
 (define-public perl-hash-merge
   (package
     (name "perl-hash-merge")
-- 
2.8.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]