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