1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
4 ;;; This file is part of GNU Guix.
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.
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.
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/>.
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))
41 (uri (string-append "mirror://gnu/dico/dico-"
45 "04pjks075x20d19l623mj50bw64g8i41s63z4kzzqcbg9qg96x64"))
46 (patches (search-patches "cpio-gets-undeclared.patch"
47 "dico-libtool-deterministic.patch"))))
48 (build-system gnu-build-system)
50 '(#:configure-flags (list (string-append "--with-guile-site-dir=" %output
51 "/share/guile/site/2.0"))
53 #:phases (modify-phases %standard-phases
54 (add-before 'check 'silence-guile
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")
62 `(("m4" ,m4) ;used at run time
64 ;; ("python" ,python-2)
67 ("readline" ,readline-6.2)
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)")
74 "GNU Dico implements a flexible dictionary server and client according to
75 RFC 2229 (DICT Server). It is able to access any database available,
76 regardless of format, thanks to its modular structure. New modules may be
77 written in C, Guile or Python. Dico also includes a command-line client,
78 which may be used to query remote dictionary databases.")