1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
5 ;;; This file is part of GNU Guix.
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20 (define-module (gnu packages perl)
21 #:use-module (guix licenses)
22 #:use-module (gnu packages)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix build-system gnu)
26 #:use-module (guix build-system perl))
29 ;; Yeah, Perl... It is required early in the bootstrap process by Linux.
35 (uri (string-append "http://www.cpan.org/src/5.0/perl-"
39 "15qxzba3a50c9nik5ydgyfp62x7h9vxxn12yd1jgl93hb1wj96km"))
40 (patches (list (search-patch "perl-no-sys-dirs.patch")))))
41 (build-system gnu-build-system)
47 (lambda* (#:key inputs outputs #:allow-other-keys)
48 (let ((out (assoc-ref outputs "out"))
49 (libc (assoc-ref inputs "libc")))
50 ;; Use the right path for `pwd'.
51 (substitute* "dist/Cwd/Cwd.pm"
56 (system* "./Configure"
57 (string-append "-Dprefix=" out)
58 (string-append "-Dman1dir=" out "/share/man/man1")
59 (string-append "-Dman3dir=" out "/share/man/man3")
62 "-Dinstallstyle=lib/perl5"
64 (string-append "-Dlocincpth=" libc "/include")
65 (string-append "-Dloclibpth=" libc "/lib")))))
67 (native-search-paths (list (search-path-specification
69 (directories '("lib/perl5/site_perl")))))
70 (synopsis "Implementation of the Perl programming language")
72 "Perl 5 is a highly capable, feature-rich programming language with over
73 24 years of development.")
74 (home-page "http://www.perl.org/")
75 (license gpl1+))) ; or "Artistic"
77 (define-public perl-file-list
79 (name "perl-file-list")
84 "mirror://cpan/authors/id/D/DO/DOPACKI/File-List-"
88 "00m5ax4aq59hdvav6yc4g63vhx3a57006rglyypagvrzfxjvm8s8"))))
89 (build-system perl-build-system)
97 (license (package-license perl))
98 (synopsis "Perl extension for crawling directory trees and compiling
101 "The File::List module crawls the directory tree starting at the
102 provided base directory and can return files (and/or directories if desired)
103 matching a regular expression.")
104 (home-page "http://search.cpan.org/~dopacki/File-List/")))
106 (define-public perl-io-tty
112 (uri (string-append "mirror://cpan/authors/id/T/TO/TODDR/IO-Tty-"
116 "0lgd9xcbi4gf4gw1ka6fj94my3w1f3k1zamb4pfln0qxz45zlxx4"))))
117 (build-system perl-build-system)
118 (home-page "http://search.cpan.org/~toddr/IO-Tty/")
119 (synopsis "Perl interface to pseudo ttys")
121 "This package provides the 'IO::Pty' and 'IO::Tty' Perl interfaces to
123 (license (package-license perl))))