1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; This file is part of GNU Guix.
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.
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.
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/>.
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))
34 (uri (string-append "mirror://apache/apr/apr-"
38 "0884csfk3f530yscak0jlr6w929s3ys0n7fpwdg3dii1sgwd5f31"))
40 (list (search-patch "apr-skip-getservbyname-test.patch")))
41 (patch-flags '("-p0"))))
42 (build-system gnu-build-system)
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")
53 "The mission of the Apache Portable Runtime (APR) project is to create and
54 maintain software libraries that provide a predictable and consistent interface
55 to underlying platform-specific implementations. The primary goal is to provide
56 an API to which software developers may code and be assured of predictable if
57 not identical behaviour regardless of the platform on which their software is
58 built, relieving them of the need to code special-case conditions to work
59 around or take advantage of platform-specific deficiencies or features.")
62 (define-public apr-util
68 (uri (string-append "mirror://apache/apr/apr-util-"
72 "19qjxpckb9p4j9pbk8kcirg6k5vqnjrqhnk9xx2c5m9964p3vkls"))))
73 (build-system gnu-build-system)
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"))
85 (system* "./configure"
86 (string-append "--prefix=" out)
87 (string-append "--with-apr=" apr)))))
89 (home-page "http://apr.apache.org/")
90 (synopsis "One of the Apache Portable Runtime Library companions")
92 "APR-util provides a number of helpful abstractions on top of APR.")