From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: [PATCH 09/22] gnu: Add perl-file-grep. Date: Wed, 27 Jul 2016 22:54:10 +1000 Message-ID: References: <20160727125423.7768-1-donttrustben@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSOMh-0008Nv-9H for guix-devel@gnu.org; Wed, 27 Jul 2016 08:55:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSOMg-0004RD-33 for guix-devel@gnu.org; Wed, 27 Jul 2016 08:55:11 -0400 Received: from mail-pa0-x243.google.com ([2607:f8b0:400e:c03::243]:35425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSOMf-0004Qp-SG for guix-devel@gnu.org; Wed, 27 Jul 2016 08:55:10 -0400 Received: by mail-pa0-x243.google.com with SMTP id cf3so1744500pad.2 for ; Wed, 27 Jul 2016 05:55:09 -0700 (PDT) Received: from localhost.localdomain ([103.25.181.216]) by smtp.googlemail.com with ESMTPSA id o80sm9177941pfa.67.2016.07.27.05.55.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jul 2016 05:55:07 -0700 (PDT) In-Reply-To: <20160727125423.7768-1-donttrustben@gmail.com> In-Reply-To: References: 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 * gnu/packages/perl.scm (perl-file-grep): New variable. --- gnu/packages/perl.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index f19ddc0..4d7cab3 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -2262,6 +2262,29 @@ types Perl-related files, or replicating search queries run on a distribution in various parts of the CPAN ecosystem.") (license (package-license perl)))) +(define-public perl-file-grep + (package + (name "perl-file-grep") + (version "0.02") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/M/MN/MNEYLON/File-Grep-" + version + ".tar.gz")) + (sha256 + (base32 + "0cjnz3ak7s3x3y3q48xb9ka2q9d7xvch58vy80hqa9xn9qkiabj6")))) + (build-system perl-build-system) + (home-page "http://search.cpan.org/dist/File-Grep") + (synopsis "Matches patterns in a series of files") + (description "@code{File::Grep} provides similar functionality as perl's +builtin @code{grep}, @code{map}, and @code{foreach} commands, but iterating +over a passed filelist instead of arrays. While trivial, this module can +provide a quick dropin when such functionality is needed.") + (license (package-license perl)))) + (define-public perl-file-homedir (package (name "perl-file-homedir") -- 2.9.1