Update license headers.
[jackhill/guix/guix.git] / distro / packages / gdbm.scm
CommitLineData
233e7676
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012 Ludovic Courtès <ludo@gnu.org>
30c40755 3;;;
233e7676 4;;; This file is part of GNU Guix.
30c40755 5;;;
233e7676 6;;; GNU Guix is free software; you can redistribute it and/or modify it
30c40755
LC
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
30c40755
LC
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/>.
30c40755
LC
18
19(define-module (distro packages gdbm)
4a44e743 20 #:use-module (guix licenses)
30c40755
LC
21 #:use-module (guix packages)
22 #:use-module (guix download)
23 #:use-module (guix build-system gnu))
24
25(define-public gdbm
26 (package
27 (name "gdbm")
28 (version "1.10")
29 (source
30 (origin
31 (method url-fetch)
32 (uri (string-append "mirror://gnu/gdbm/gdbm-"
33 version ".tar.gz"))
34 (sha256
35 (base32
36 "0h9lfzdjc2yl849y0byg51h6xfjg0y7vg9jnsw3gpfwlbd617y13"))))
37 (build-system gnu-build-system)
38 (home-page "http://www.gnu.org/software/gdbm/")
39 (synopsis "GNU dbm key/value database library")
40 (description
41 "GNU dbm (or GDBM, for short) is a library of database functions
42that use extensible hashing and work similar to the standard UNIX dbm.
43These routines are provided to a programmer needing to create and
44manipulate a hashed database.
45
46The basic use of GDBM is to store key/data pairs in a data file. Each
47key must be unique and each key is paired with only one data item.
48
49The library provides primitives for storing key/data pairs, searching
50and retrieving the data by its key and deleting a key along with its
51data. It also support sequential iteration over all key/data pairs in a
52database.
53
54For compatibility with programs using old UNIX dbm function, the package
55also provides traditional dbm and ndbm interfaces.")
4a44e743 56 (license gpl3+)))