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.
 
 
 
 
 
 

89 linhas
3.4 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
  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 apr)
  19. #:use-module (guix licenses)
  20. #:use-module (guix packages)
  21. #:use-module (guix download)
  22. #:use-module (guix build-system gnu)
  23. #:use-module (gnu packages)
  24. #:use-module (gnu packages perl)
  25. #:use-module (gnu packages autotools))
  26. (define-public apr
  27. (package
  28. (name "apr")
  29. (version "1.4.8")
  30. (source (origin
  31. (method url-fetch)
  32. (uri (string-append "mirror://apache/apr/apr-"
  33. version ".tar.bz2"))
  34. (sha256
  35. (base32
  36. "0884csfk3f530yscak0jlr6w929s3ys0n7fpwdg3dii1sgwd5f31"))
  37. (patches
  38. (list (search-patch "apr-skip-getservbyname-test.patch")))
  39. (patch-flags '("-p0"))))
  40. (build-system gnu-build-system)
  41. (inputs `(("perl" ,perl)
  42. ("libtool" ,libtool)))
  43. (home-page "http://apr.apache.org/")
  44. (synopsis "The Apache Portable Runtime Library")
  45. (description
  46. "The mission of the Apache Portable Runtime (APR) project is to create and
  47. maintain software libraries that provide a predictable and consistent interface
  48. to underlying platform-specific implementations. The primary goal is to provide
  49. an API to which software developers may code and be assured of predictable if
  50. not identical behaviour regardless of the platform on which their software is
  51. built, relieving them of the need to code special-case conditions to work
  52. around or take advantage of platform-specific deficiencies or features.")
  53. (license asl2.0)))
  54. (define-public apr-util
  55. (package
  56. (name "apr-util")
  57. (version "1.5.2")
  58. (source (origin
  59. (method url-fetch)
  60. (uri (string-append "mirror://apache/apr/apr-util-"
  61. version ".tar.bz2"))
  62. (sha256
  63. (base32
  64. "19qjxpckb9p4j9pbk8kcirg6k5vqnjrqhnk9xx2c5m9964p3vkls"))))
  65. (build-system gnu-build-system)
  66. (inputs
  67. `(("apr" ,apr)))
  68. (arguments
  69. '(#:phases
  70. (alist-replace
  71. 'configure
  72. (lambda* (#:key inputs outputs #:allow-other-keys)
  73. (let ((out (assoc-ref outputs "out"))
  74. (apr (assoc-ref inputs "apr")))
  75. (setenv "CONFIG_SHELL" (which "bash"))
  76. (zero?
  77. (system* "./configure"
  78. (string-append "--prefix=" out)
  79. (string-append "--with-apr=" apr)))))
  80. %standard-phases)))
  81. (home-page "http://apr.apache.org/")
  82. (synopsis "One of the Apache Portable Runtime Library companions")
  83. (description
  84. "APR-util provides a number of helpful abstractions on top of APR.")
  85. (license asl2.0)))