Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

74 linhas
2.9 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
  3. ;;;
  4. ;;; This file is part of GNU Guix.
  5. ;;;
  6. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  7. ;;; under the terms of the GNU General Public License as published by
  8. ;;; the Free Software Foundation; either version 3 of the License, or (at
  9. ;;; your option) any later version.
  10. ;;;
  11. ;;; GNU Guix is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;;; GNU General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU General Public License
  17. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  18. (define-module (gnu packages perl)
  19. #:use-module (guix licenses)
  20. #:use-module (gnu packages)
  21. #:use-module (guix packages)
  22. #:use-module (guix download)
  23. #:use-module (guix build-system gnu))
  24. (define-public perl
  25. ;; Yeah, Perl... It is required early in the bootstrap process by Linux.
  26. (package
  27. (name "perl")
  28. (version "5.16.1")
  29. (source (origin
  30. (method url-fetch)
  31. (uri (string-append "http://www.cpan.org/src/5.0/perl-"
  32. version ".tar.gz"))
  33. (sha256
  34. (base32
  35. "15qxzba3a50c9nik5ydgyfp62x7h9vxxn12yd1jgl93hb1wj96km"))
  36. (patches (list (search-patch "perl-no-sys-dirs.patch")))))
  37. (build-system gnu-build-system)
  38. (arguments
  39. '(#:tests? #f
  40. #:phases
  41. (alist-replace
  42. 'configure
  43. (lambda* (#:key inputs outputs #:allow-other-keys)
  44. (let ((out (assoc-ref outputs "out"))
  45. (libc (assoc-ref inputs "libc")))
  46. ;; Use the right path for `pwd'.
  47. (substitute* "dist/Cwd/Cwd.pm"
  48. (("/bin/pwd")
  49. (which "pwd")))
  50. (zero?
  51. (system* "./Configure"
  52. (string-append "-Dprefix=" out)
  53. (string-append "-Dman1dir=" out "/share/man/man1")
  54. (string-append "-Dman3dir=" out "/share/man/man3")
  55. "-de" "-Dcc=gcc"
  56. "-Uinstallusrbinperl"
  57. "-Dinstallstyle=lib/perl5"
  58. "-Duseshrplib"
  59. (string-append "-Dlocincpth=" libc "/include")
  60. (string-append "-Dloclibpth=" libc "/lib")))))
  61. %standard-phases)))
  62. (native-search-paths (list (search-path-specification
  63. (variable "PERL5LIB")
  64. (directories '("lib/perl5/site_perl")))))
  65. (synopsis "Implementation of the Perl programming language")
  66. (description
  67. "Perl 5 is a highly capable, feature-rich programming language with over
  68. 24 years of development.")
  69. (home-page "http://www.perl.org/")
  70. (license gpl1+))) ; or "Artistic"