projects/guix·blob javascript-team · refs

66 lines · 2.8 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 Chris Marusich <[email protected]>
3;;; Copyright © 2019 Björn Höfling <[email protected]>
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
31 (origin
32 (method url-fetch)
33 ;; The URI does not appear to be easily guessable. For
34 ;; example, you cannot download version "9100g" simply
35 ;; by replacing "9100h" in the URI.
36 (uri (string-append "https://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
37 "distfiles/31/anthy-9100h.tar.gz"))
38 (sha256
39 (base32 "0ism4zibcsa5nl77wwi12vdsfjys3waxcphn1p5s7d0qy1sz0mnj"))))
40 (build-system gnu-build-system)
41 ;; Anthy also contains elisp modules for using anthy within Emacs.
42 ;; However, these modules are incompatible with the latest version
43 ;; of Emacs. This is because they rely on the presence of
44 ;; last-command-char, which was removed in Emacs 24.3. So, we
45 ;; don't try to install them here at this time.
46 (arguments
47 `(#:phases
48 (modify-phases %standard-phases
49 (replace 'check
50 (lambda _
51 (with-directory-excursion "test"
52 (invoke "./anthy" "--all")))))))
53 (home-page "https://anthy.osdn.jp/")
54 (synopsis "Japanese input method")
55 (description "Anthy is a Japanese input method for converting
56hiragana text to mixed kana and kanji. It is written in the C
57programming language. Anthy stores personal customizations (words it
58has learned from the user's input, words the user has explicitly
59added, etc.) in the @file{~/.anthy/} directory. This package contains the
60anthy C libraries, the cannadic and alt-cannadic kana dictionaries, as
61well as command-line tools for using anthy and managing
62dictionaries.")
63 ;; Most of anthy is lgpl2.1+. However, some files (e.g., from
64 ;; alt-cannadic) use gpl2. See the file "COPYING" in the anthy
65 ;; source for details.
66 (license (list lgpl2.1+ gpl2))))