gnu: packages: Use 'search-patches' everywhere.
[jackhill/guix/guix.git] / gnu / packages / dico.scm
CommitLineData
c9e34a6a
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
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
19(define-module (gnu packages dico)
20 #:use-module (guix packages)
21 #:use-module ((guix licenses) #:select (gpl3+))
22 #:use-module (guix download)
23 #:use-module (guix build-system gnu)
24 #:use-module (gnu packages)
25 #:use-module (gnu packages readline)
26 #:use-module (gnu packages m4)
27 #:use-module (gnu packages guile)
28 #:use-module (gnu packages python)
29 #:use-module (gnu packages pcre)
30 #:use-module (gnu packages gsasl)
31 #:use-module (gnu packages autotools)
32 #:use-module (gnu packages compression)
33 #:use-module (gnu packages wordnet))
34
35(define-public dico
36 (package
37 (name "dico")
38 (version "2.2")
39 (source (origin
40 (method url-fetch)
41 (uri (string-append "mirror://gnu/dico/dico-"
42 version ".tar.xz"))
43 (sha256
44 (base32
45 "04pjks075x20d19l623mj50bw64g8i41s63z4kzzqcbg9qg96x64"))
fc1adab1
AK
46 (patches (search-patches "cpio-gets-undeclared.patch"
47 "dico-libtool-deterministic.patch"))))
c9e34a6a
LC
48 (build-system gnu-build-system)
49 (arguments
50 '(#:configure-flags (list (string-append "--with-guile-site-dir=" %output
51 "/share/guile/site/2.0"))
b6094b1f 52 #:make-flags '("V=1")
c9e34a6a
LC
53 #:phases (modify-phases %standard-phases
54 (add-before 'check 'silence-guile
55 (lambda _
56 ;; Guile is too talkative, which disturbs the test
57 ;; infrastructure. Gag it.
58 (setenv "GUILE_AUTO_COMPILE" "0")
59 (setenv "GUILE_WARN_DEPRECATED" "no")
60 #t)))))
61 (inputs
62 `(("m4" ,m4) ;used at run time
63 ("pcre" ,pcre)
64 ;; ("python" ,python-2)
65 ("guile" ,guile-2.0)
66 ("gsasl" ,gsasl)
67 ("readline" ,readline-6.2)
68 ("zlib" ,zlib)
69 ;; ("wordnet" ,wordnet) ;FIXME: link failure
70 ("libltdl" ,libltdl)))
71 (home-page "http://www.gnu.org/software/dico/")
72 (synopsis "Implementation of DICT server (RFC 2229)")
73 (description
74 "GNU Dico implements a flexible dictionary server and client according to
75RFC 2229 (DICT Server). It is able to access any database available,
76regardless of format, thanks to its modular structure. New modules may be
77written in C, Guile or Python. Dico also includes a command-line client,
78which may be used to query remote dictionary databases.")
79 (license gpl3+)))