From 3ce3ecd3d7706d04ef25ef41b7a44ed540ca2ae4 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Fri, 9 Dec 2016 20:46:10 +0100 Subject: [PATCH] gnu: Add perl-cwd-guard. * gnu/packages/perl.scm (perl-cwd-guard): New variable. --- gnu/packages/perl.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index b097c4c630..834e38ce09 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -1343,6 +1343,28 @@ (define-public perl-crypt-randpasswd Password Generator\".") (license (package-license perl)))) +(define-public perl-cwd-guard + (package + (name "perl-cwd-guard") + (version "0.05") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/K/KA/KAZEBURO/" + "Cwd-Guard-" version ".tar.gz")) + (sha256 + (base32 + "0xwf4rmii55k3lp19mpbh00mbgby7rxdk2lk84148bjhp6i7rz3s")))) + (build-system perl-build-system) + (native-inputs + `(("perl-module-build" ,perl-module-build) + ("perl-test-requires" ,perl-test-requires))) + (home-page "http://search.cpan.org/dist/Cwd-Guard") + (synopsis "Temporarily change working directory") + (description + "@code{Cwd::Guard} changes the current directory using a limited scope. +It returns to the previous working directory when the object is destroyed.") + (license (package-license perl)))) + (define-public perl-czplib (package (name "perl-czplib")