Commit | Line | Data |
---|---|---|
df84950e CR |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com> | |
3d77ecfe | 3 | ;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org> |
df84950e CR |
4 | ;;; |
5 | ;;; This file is part of GNU Guix. | |
6 | ;;; | |
7 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
8 | ;;; under the terms of the GNU General Public License as published by | |
9 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
10 | ;;; your option) any later version. | |
11 | ;;; | |
12 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
13 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ;;; GNU General Public License for more details. | |
16 | ;;; | |
17 | ;;; You should have received a copy of the GNU General Public License | |
18 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
19 | ||
2b24faa2 | 20 | (define-module (gnu packages apr) |
9f9d073b | 21 | #:use-module ((guix licenses) #:prefix l:) |
df84950e CR |
22 | #:use-module (guix packages) |
23 | #:use-module (guix download) | |
24 | #:use-module (guix build-system gnu) | |
25 | #:use-module (gnu packages) | |
26 | #:use-module (gnu packages perl) | |
9f9d073b | 27 | #:use-module (gnu packages xml) |
df84950e CR |
28 | #:use-module (gnu packages autotools)) |
29 | ||
2b24faa2 | 30 | (define-public apr |
df84950e | 31 | (package |
2b24faa2 | 32 | (name "apr") |
118be6e8 | 33 | (version "1.6.5") |
df84950e CR |
34 | (source (origin |
35 | (method url-fetch) | |
cc957c3c | 36 | (uri (string-append "mirror://apache/apr/apr-" |
df84950e CR |
37 | version ".tar.bz2")) |
38 | (sha256 | |
39 | (base32 | |
118be6e8 | 40 | "01d1n1ql66bxsjx0wyzazmkqdqdmr0is6a7lwyy5kzy4z7yajz56")) |
01eafd38 | 41 | (patches |
fc1adab1 | 42 | (search-patches "apr-skip-getservbyname-test.patch")) |
01eafd38 | 43 | (patch-flags '("-p0")))) |
df84950e | 44 | (build-system gnu-build-system) |
c3428a08 LC |
45 | (arguments |
46 | ;; Sometimes we end up with two processes concurrently trying to make | |
47 | ;; 'libmod_test.la': <http://hydra.gnu.org/build/60266/nixlog/2/raw>. | |
48 | ;; Thus, build sequentially. | |
f798837f MW |
49 | '(#:parallel-build? #f |
50 | #:parallel-tests? #f)) | |
df84950e | 51 | (inputs `(("perl" ,perl) |
3246cc91 | 52 | ("libltdl" ,libltdl))) |
df84950e CR |
53 | (home-page "http://apr.apache.org/") |
54 | (synopsis "The Apache Portable Runtime Library") | |
cc957c3c | 55 | (description |
df84950e CR |
56 | "The mission of the Apache Portable Runtime (APR) project is to create and |
57 | maintain software libraries that provide a predictable and consistent interface | |
35b9e423 | 58 | to underlying platform-specific implementations. The primary goal is to provide |
df84950e CR |
59 | an API to which software developers may code and be assured of predictable if |
60 | not identical behaviour regardless of the platform on which their software is | |
61 | built, relieving them of the need to code special-case conditions to work | |
62 | around or take advantage of platform-specific deficiencies or features.") | |
9f9d073b | 63 | (license l:asl2.0))) |
695e6717 | 64 | |
2b24faa2 | 65 | (define-public apr-util |
695e6717 | 66 | (package |
2b24faa2 | 67 | (name "apr-util") |
b275cd22 | 68 | (version "1.6.1") |
695e6717 CR |
69 | (source (origin |
70 | (method url-fetch) | |
cc957c3c | 71 | (uri (string-append "mirror://apache/apr/apr-util-" |
695e6717 CR |
72 | version ".tar.bz2")) |
73 | (sha256 | |
74 | (base32 | |
b275cd22 | 75 | "0nq3s1yn13vplgl6qfm09f7n0wm08malff9s59bqf9nid9xjzqfk")))) |
695e6717 CR |
76 | (build-system gnu-build-system) |
77 | (inputs | |
9f9d073b MW |
78 | `(("apr" ,apr))) |
79 | (propagated-inputs | |
80 | `(("expat" ,expat))) | |
695e6717 CR |
81 | (arguments |
82 | '(#:phases | |
dc1d3cde KK |
83 | (modify-phases %standard-phases |
84 | (replace 'configure | |
85 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
86 | (let ((out (assoc-ref outputs "out")) | |
87 | (apr (assoc-ref inputs "apr")) | |
88 | (expat (assoc-ref inputs "expat"))) | |
89 | (setenv "CONFIG_SHELL" (which "bash")) | |
3d77ecfe MW |
90 | (invoke "./configure" |
91 | (string-append "--prefix=" out) | |
92 | (string-append "--with-apr=" apr) | |
93 | (string-append "--with-expat=" expat)))))) | |
e5b648e0 LC |
94 | |
95 | ;; There are race conditions during 'make check'. Typically, the | |
96 | ;; 'testall' executable is not built yet by the time 'make check' tries | |
97 | ;; to run it. See | |
98 | ;; <http://lists.gnu.org/archive/html/guix-devel/2014-03/msg00261.html>. | |
99 | #:parallel-tests? #f)) | |
695e6717 CR |
100 | (home-page "http://apr.apache.org/") |
101 | (synopsis "One of the Apache Portable Runtime Library companions") | |
102 | (description | |
103 | "APR-util provides a number of helpful abstractions on top of APR.") | |
9f9d073b | 104 | (license l:asl2.0))) |