Merge branch 'gettext-upgrade'
[jackhill/guix/guix.git] / gnu / packages / apr.scm
CommitLineData
df84950e
CR
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
2b24faa2 19(define-module (gnu packages apr)
df84950e
CR
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
2b24faa2 28(define-public apr
df84950e 29 (package
2b24faa2 30 (name "apr")
d409c8ab 31 (version "1.4.8")
df84950e
CR
32 (source (origin
33 (method url-fetch)
cc957c3c 34 (uri (string-append "mirror://apache/apr/apr-"
df84950e
CR
35 version ".tar.bz2"))
36 (sha256
37 (base32
01eafd38
LC
38 "0884csfk3f530yscak0jlr6w929s3ys0n7fpwdg3dii1sgwd5f31"))
39 (patches
40 (list (search-patch "apr-skip-getservbyname-test.patch")))
41 (patch-flags '("-p0"))))
df84950e 42 (build-system gnu-build-system)
c3428a08
LC
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))
df84950e 48 (inputs `(("perl" ,perl)
01eafd38 49 ("libtool" ,libtool)))
df84950e
CR
50 (home-page "http://apr.apache.org/")
51 (synopsis "The Apache Portable Runtime Library")
cc957c3c 52 (description
df84950e
CR
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)))
695e6717 61
2b24faa2 62(define-public apr-util
695e6717 63 (package
2b24faa2 64 (name "apr-util")
d409c8ab 65 (version "1.5.2")
695e6717
CR
66 (source (origin
67 (method url-fetch)
cc957c3c 68 (uri (string-append "mirror://apache/apr/apr-util-"
695e6717
CR
69 version ".tar.bz2"))
70 (sha256
71 (base32
d409c8ab 72 "19qjxpckb9p4j9pbk8kcirg6k5vqnjrqhnk9xx2c5m9964p3vkls"))))
695e6717
CR
73 (build-system gnu-build-system)
74 (inputs
2b24faa2 75 `(("apr" ,apr)))
695e6717
CR
76 (arguments
77 '(#:phases
78 (alist-replace
79 'configure
80 (lambda* (#:key inputs outputs #:allow-other-keys)
81 (let ((out (assoc-ref outputs "out"))
2b24faa2 82 (apr (assoc-ref inputs "apr")))
695e6717
CR
83 (setenv "CONFIG_SHELL" (which "bash"))
84 (zero?
85 (system* "./configure"
86 (string-append "--prefix=" out)
2b24faa2 87 (string-append "--with-apr=" apr)))))
695e6717
CR
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)))