distro: Change the module name space to (gnu ...).
[jackhill/guix/guix.git] / gnu / packages / gperf.scm
CommitLineData
233e7676
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012 Ludovic Courtès <ludo@gnu.org>
1627f7f7 3;;;
233e7676 4;;; This file is part of GNU Guix.
1627f7f7 5;;;
233e7676 6;;; GNU Guix is free software; you can redistribute it and/or modify it
1627f7f7
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
1627f7f7
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/>.
1627f7f7 18
1ffa7090 19(define-module (gnu packages gperf)
4a44e743 20 #:use-module (guix licenses)
1627f7f7 21 #:use-module (guix packages)
87f5d366 22 #:use-module (guix download)
1627f7f7
LC
23 #:use-module (guix utils)
24 #:use-module (guix build-system gnu))
25
26(define-public gperf
27 (package
28 (name "gperf")
29 (version "3.0.4")
30 (source
31 (origin
87f5d366 32 (method url-fetch)
0db342a5 33 (uri (string-append "mirror://gnu/gperf/gperf-"
1627f7f7
LC
34 version ".tar.gz"))
35 (sha256
36 (base32
37 "0gnnm8iqcl52m8iha3sxrzrl9mcyhg7lfrhhqgdn4zj00ji14wbn"))))
38 (build-system gnu-build-system)
39 (arguments '(#:parallel-tests? #f))
40 (home-page "http://www.gnu.org/software/gperf/")
41 (synopsis
42 "GNU gperf, a perfect hash function generator")
43 (description
44 "GNU gperf is a perfect hash function generator. For a given
45list of strings, it produces a hash function and hash table, in
46form of C or C++ code, for looking up a value depending on the
47input string. The hash function is perfect, which means that
48the hash table has no collisions, and the hash table lookup
49needs a single string comparison only.
50
51GNU gperf is highly customizable. There are options for
52generating C or C++ code, for emitting switch statements or
53nested ifs instead of a hash table, and for tuning the algorithm
54employed by gperf.")
4a44e743 55 (license gpl3+)))