gnu: libdvdcss: Update to 1.4.3.
[jackhill/guix/guix.git] / gnu / packages / anthy.scm
CommitLineData
4862910d
CM
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
91a403a4 3;;; Copyright © 2019 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
4862910d
CM
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20(define-module (gnu packages anthy)
21 #:use-module (guix licenses)
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu))
25
26(define-public anthy
27 (package
28 (name "anthy")
29 (version "9100h")
30 (source (origin
31 (method url-fetch)
32 ;; The URI does not appear to be easily guessable. For
33 ;; example, you cannot download version "9100g" simply
34 ;; by replacing "9100h" in the URI.
91a403a4 35 (uri "http://dl.osdn.jp/anthy/37536/anthy-9100h.tar.gz")
4862910d
CM
36 (sha256
37 (base32
38 "0ism4zibcsa5nl77wwi12vdsfjys3waxcphn1p5s7d0qy1sz0mnj"))))
39 (build-system gnu-build-system)
40 ;; Anthy also contains elisp modules for using anthy within Emacs.
41 ;; However, these modules are incompatible with the latest version
42 ;; of Emacs. This is because they rely on the presence of
43 ;; last-command-char, which was removed in Emacs 24.3. So, we
44 ;; don't try to install them here at this time.
45 (arguments
46 `(#:phases
47 (modify-phases %standard-phases
48 (replace 'check
49 (lambda _
50 (with-directory-excursion "test"
bdd914af 51 (invoke "./anthy" "--all")))))))
203475e4 52 (home-page "https://anthy.osdn.jp/")
4862910d
CM
53 (synopsis "Japanese input method")
54 (description "Anthy is a Japanese input method for converting
55hiragana text to mixed kana and kanji. It is written in the C
56programming language. Anthy stores personal customizations (words it
57has learned from the user's input, words the user has explicitly
58added, etc.) in the ~/.anthy/ directory. This package contains the
59anthy C libraries, the cannadic and alt-cannadic kana dictionaries, as
60well as command-line tools for using anthy and managing
61dictionaries.")
62 ;; Most of anthy is lgpl2.1+. However, some files (e.g., from
63 ;; alt-cannadic) use gpl2. See the file "COPYING" in the anthy
64 ;; source for details.
65 (license (list lgpl2.1+ gpl2))))