Commit | Line | Data |
---|---|---|
233e7676 | 1 | ;;; GNU Guix --- Functional package management for GNU |
4ed06287 | 2 | ;;; Copyright © 2012, 2013, 2017 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 build-system gnu)) |
24 | ||
25 | (define-public gperf | |
26 | (package | |
27 | (name "gperf") | |
c5481600 | 28 | (version "3.1") |
1627f7f7 LC |
29 | (source |
30 | (origin | |
87f5d366 | 31 | (method url-fetch) |
0db342a5 | 32 | (uri (string-append "mirror://gnu/gperf/gperf-" |
1627f7f7 LC |
33 | version ".tar.gz")) |
34 | (sha256 | |
35 | (base32 | |
c5481600 | 36 | "1qispg6i508rq8pkajh26cznwimbnj06wq9sd85vg95v8nwld1aq")))) |
1627f7f7 LC |
37 | (build-system gnu-build-system) |
38 | (arguments '(#:parallel-tests? #f)) | |
6fd52309 | 39 | (home-page "https://www.gnu.org/software/gperf/") |
f50d2669 | 40 | (synopsis "Perfect hash function generator") |
1627f7f7 | 41 | (description |
12bcf94a | 42 | "gperf is a perfect hash function generator. For a given list of |
c5779c93 LC |
43 | strings, it produces a hash function and hash table in C or C++ code. That |
44 | the hash function is perfect means that no collisions can exist and that | |
45 | look-ups can be made by single string comparisons.") | |
4a44e743 | 46 | (license gpl3+))) |
4ed06287 LC |
47 | |
48 | (define-public gperf-3.0 | |
49 | ;; This older version would use 'unsigned int' in its generated lookup | |
50 | ;; functions whereas 3.1 uses 'size_t', which causes breakage such as | |
51 | ;; <https://github.com/wingo/elogind/issues/8>. | |
52 | (package | |
53 | (inherit gperf) | |
54 | (version "3.0.4") | |
55 | (source (origin | |
56 | (method url-fetch) | |
57 | (uri (string-append "mirror://gnu/gperf/gperf-" | |
58 | version ".tar.gz")) | |
59 | (sha256 | |
60 | (base32 | |
61 | "0gnnm8iqcl52m8iha3sxrzrl9mcyhg7lfrhhqgdn4zj00ji14wbn")))))) |