From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Sassmannshausen Subject: [PATCH 01/26] gnu: Add perl-file-pushd. Date: Thu, 23 Mar 2017 15:00:31 +0100 Message-ID: <20170323140056.23173-1-alex@pompo.co> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cr3Ir-0005L0-4F for guix-devel@gnu.org; Thu, 23 Mar 2017 10:01:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cr3In-0001EG-1C for guix-devel@gnu.org; Thu, 23 Mar 2017 10:01:25 -0400 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:34878) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cr3Im-0001E6-RQ for guix-devel@gnu.org; Thu, 23 Mar 2017 10:01:20 -0400 Received: by mail-wm0-x22c.google.com with SMTP id u132so62206983wmg.0 for ; Thu, 23 Mar 2017 07:01:20 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: Alex Sassmannshausen * gnu/packages/perl.scm (perl-file-pushd): New variable --- gnu/packages/perl.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 086e1fae0..4944ceb2a 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -3002,6 +3002,34 @@ of arbitrary depth and to delete an entire directory subtree from the file system.") (license (package-license perl)))) +(define-public perl-file-pushd + (package + (name "perl-file-pushd") + (version "1.014") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/D/DA/DAGOLDEN/File-pushd-" + version + ".tar.gz")) + (sha256 + (base32 + "02rlqvyy7gly3dsqwaa81aisyy9c791b8xvwzczcbgmcwgzkgaxm")))) + (build-system perl-build-system) + (home-page + "http://search.cpan.org/dist/File-pushd") + (synopsis + "Change directory temporarily for a limited scope") + (description "@code{File::pushd} does a temporary @code{chdir} that is +easily and automatically reverted, similar to @code{pushd} in some Unix +command shells. It works by creating an object that caches the original +working directory. When the object is destroyed, the destructor calls +@code{chdir} to revert to the original working directory. By storing the +object in a lexical variable with a limited scope, this happens automatically +at the end of the scope.") + (license asl2.0))) + (define-public perl-file-list (package (name "perl-file-list") -- 2.11.1