gnu: monero: Update to 0.18.1.2.
[jackhill/guix/guix.git] / gnu / packages / dico.scm
CommitLineData
c9e34a6a 1;;; GNU Guix --- Functional package management for GNU
1ae29e3f 2;;; Copyright © 2015, 2016, 2018 Ludovic Courtès <ludo@gnu.org>
a6a9e628 3;;; Copyright © 2016, 2018 Efraim Flashner <efraim@flashner.co.il>
dbfe885e 4;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
5f98b84c 5;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
20955894 6;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
c9e34a6a
LC
7;;;
8;;; This file is part of GNU Guix.
9;;;
10;;; GNU Guix is free software; you can redistribute it and/or modify it
11;;; under the terms of the GNU General Public License as published by
12;;; the Free Software Foundation; either version 3 of the License, or (at
13;;; your option) any later version.
14;;;
15;;; GNU Guix is distributed in the hope that it will be useful, but
16;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18;;; GNU General Public License for more details.
19;;;
20;;; You should have received a copy of the GNU General Public License
21;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22
23(define-module (gnu packages dico)
24 #:use-module (guix packages)
25 #:use-module ((guix licenses) #:select (gpl3+))
26 #:use-module (guix download)
27 #:use-module (guix build-system gnu)
28 #:use-module (gnu packages)
29 #:use-module (gnu packages readline)
30 #:use-module (gnu packages m4)
f64b989b 31 #:use-module (gnu packages groff)
c9e34a6a
LC
32 #:use-module (gnu packages guile)
33 #:use-module (gnu packages python)
34 #:use-module (gnu packages pcre)
35 #:use-module (gnu packages gsasl)
36 #:use-module (gnu packages autotools)
37 #:use-module (gnu packages compression)
38 #:use-module (gnu packages wordnet))
39
40(define-public dico
41 (package
42 (name "dico")
dbfe885e 43 (version "2.11")
c9e34a6a 44 (source (origin
20955894
MC
45 (method url-fetch)
46 (uri (string-append "mirror://gnu/dico/dico-"
47 version ".tar.xz"))
48 (sha256
49 (base32
50 "0nic4mggc0yhms130k7x4qp5k9c42fwg6n8hmk5cmynh6gi9h7xc"))))
c9e34a6a
LC
51 (build-system gnu-build-system)
52 (arguments
53 '(#:configure-flags (list (string-append "--with-guile-site-dir=" %output
6332ad54
TGR
54 "/share/guile/site/2.0")
55 "--disable-static")
b6094b1f 56 #:make-flags '("V=1")
c9e34a6a
LC
57 #:phases (modify-phases %standard-phases
58 (add-before 'check 'silence-guile
59 (lambda _
60 ;; Guile is too talkative, which disturbs the test
61 ;; infrastructure. Gag it.
62 (setenv "GUILE_AUTO_COMPILE" "0")
20955894 63 (setenv "GUILE_WARN_DEPRECATED" "no")))
3d190d6a
TGR
64 (replace 'check
65 (lambda _
66 ;; Test '71: append + dooffs + env' fails if $V is not 2.
67 (invoke "make" "check" "V=2"))))))
8394619b 68 (native-inputs (list groff))
c9e34a6a 69 (inputs
20955894
MC
70 (list m4 ;used at run time
71 pcre
72 python-wrapper
73 guile-2.2
74 gsasl
75 readline
76 zlib
77 wordnet
78 libltdl))
6fd52309 79 (home-page "https://www.gnu.org/software/dico/")
c9e34a6a
LC
80 (synopsis "Implementation of DICT server (RFC 2229)")
81 (description
82 "GNU Dico implements a flexible dictionary server and client according to
83RFC 2229 (DICT Server). It is able to access any database available,
84regardless of format, thanks to its modular structure. New modules may be
85written in C, Guile or Python. Dico also includes a command-line client,
86which may be used to query remote dictionary databases.")
20955894 87 (license gpl3+)))