From 15974e63585bec566b5fd220f26776998dad3adb Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Mon, 9 Dec 2013 15:45:25 +0100 Subject: [PATCH] gnu: Add perl-file-list. * gnu/packages/perl.scm (perl-file-list): New variable. --- gnu/packages/perl.scm | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 21cdc5cea7..f6a551fd0d 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2012, 2013 Ludovic Courtès +;;; Copyright © 2013 Andreas Enge ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,7 +22,8 @@ #:use-module (gnu packages) #:use-module (guix packages) #:use-module (guix download) - #:use-module (guix build-system gnu)) + #:use-module (guix build-system gnu) + #:use-module (guix build-system perl)) (define-public perl ;; Yeah, Perl... It is required early in the bootstrap process by Linux. @@ -71,3 +73,32 @@ 24 years of development.") (home-page "http://www.perl.org/") (license gpl1+))) ; or "Artistic" + +(define-public perl-file-list + (package + (name "perl-file-list") + (version "0.3.1") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/D/DO/DOPACKI/File-List-" + version ".tar.gz")) + (sha256 + (base32 + "00m5ax4aq59hdvav6yc4g63vhx3a57006rglyypagvrzfxjvm8s8")))) + (build-system perl-build-system) + (arguments + `(#:phases + (alist-cons-after + 'unpack 'cd + (lambda* _ + (chdir "List")) + %standard-phases))) + (license (package-license perl)) + (synopsis "Perl extension for crawling directory trees and compiling +lists of files") + (description + "The File::List module crawls the directory tree starting at the +provided base directory and can return files (and/or directories if desired) +matching a regular expression.") + (home-page "http://search.cpan.org/~dopacki/File-List/")))