gnu: docbook-xsl update to 1.78.1
[jackhill/guix/guix.git] / gnu / packages / bdb.scm
CommitLineData
233e7676
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012 Andreas Enge <andreas@enge.fr>
60a29092 3;;;
233e7676 4;;; This file is part of GNU Guix.
60a29092 5;;;
233e7676 6;;; GNU Guix is free software; you can redistribute it and/or modify it
60a29092
AE
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;;;
233e7676 11;;; GNU Guix is distributed in the hope that it will be useful, but
60a29092
AE
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
233e7676 17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
60a29092 18
1ffa7090 19(define-module (gnu packages bdb)
59a43334 20 #:use-module (gnu packages)
60a29092
AE
21 #:use-module (guix licenses)
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu))
25
26(define-public bdb
27 (package
28 (name "bdb")
29 (version "5.3.21")
30 (source (origin
31 (method url-fetch)
32 (uri (string-append "http://download.oracle.com/berkeley-db/db-" version
33 ".tar.gz"))
34 (sha256 (base32
35 "1f2g2612lf8djbwbwhxsvmffmf9d7693kh2l20195pqp0f9jmnfx"))))
36 (build-system gnu-build-system)
cc24623d
LC
37 (outputs '("out" ; programs, libraries, headers
38 "doc")) ; 94 MiB of HTML docs
60a29092 39 (arguments
12abb19d
LC
40 '(#:tests? #f ; no check target available
41 #:phases
42 (alist-replace
43 'configure
44 (lambda* (#:key outputs #:allow-other-keys)
cc24623d
LC
45 (let ((out (assoc-ref outputs "out"))
46 (doc (assoc-ref outputs "doc")))
47 ;; '--docdir' is not honored, so we need to patch.
48 (substitute* "dist/Makefile.in"
49 (("docdir[[:blank:]]*=.*")
50 (string-append "docdir = " doc "/share/doc/bdb")))
51
12abb19d
LC
52 (zero?
53 (system* "./dist/configure"
54 (string-append "--prefix=" out)
55 (string-append "CONFIG_SHELL=" (which "bash"))
90a0048f
LC
56 (string-append "SHELL=" (which "bash"))
57
58 ;; The compatibility mode is needed by some packages,
59 ;; notably iproute2.
60 "--enable-compat185"))))
12abb19d 61 %standard-phases)))
60a29092
AE
62 (synopsis "db, the Berkeley database")
63 (description
64 "Berkeley DB is an embeddable database allowing developers the choice of
65SQL, Key/Value, XML/XQuery or Java Object storage for their data model.")
66 (license (bsd-style "file://LICENSE"
67 "See LICENSE in the distribution."))
68 (home-page "http://www.oracle.com/us/products/database/berkeley-db/overview/index.html")))