You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

61 lines
2.4 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2012 Andreas Enge <andreas@enge.fr>
  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. (define-module (gnu packages bdb)
  19. #:use-module (gnu packages)
  20. #:use-module (guix licenses)
  21. #:use-module (guix packages)
  22. #:use-module (guix download)
  23. #:use-module (guix build-system gnu))
  24. (define-public bdb
  25. (package
  26. (name "bdb")
  27. (version "5.3.21")
  28. (source (origin
  29. (method url-fetch)
  30. (uri (string-append "http://download.oracle.com/berkeley-db/db-" version
  31. ".tar.gz"))
  32. (sha256 (base32
  33. "1f2g2612lf8djbwbwhxsvmffmf9d7693kh2l20195pqp0f9jmnfx"))))
  34. (build-system gnu-build-system)
  35. (arguments
  36. '(#:tests? #f ; no check target available
  37. #:phases
  38. (alist-replace
  39. 'configure
  40. (lambda* (#:key outputs #:allow-other-keys)
  41. (let ((out (assoc-ref outputs "out")))
  42. (zero?
  43. (system* "./dist/configure"
  44. (string-append "--prefix=" out)
  45. (string-append "CONFIG_SHELL=" (which "bash"))
  46. (string-append "SHELL=" (which "bash"))
  47. ;; The compatibility mode is needed by some packages,
  48. ;; notably iproute2.
  49. "--enable-compat185"))))
  50. %standard-phases)))
  51. (synopsis "db, the Berkeley database")
  52. (description
  53. "Berkeley DB is an embeddable database allowing developers the choice of
  54. SQL, Key/Value, XML/XQuery or Java Object storage for their data model.")
  55. (license (bsd-style "file://LICENSE"
  56. "See LICENSE in the distribution."))
  57. (home-page "http://www.oracle.com/us/products/database/berkeley-db/overview/index.html")))