Commit | Line | Data |
---|---|---|
488c34ec SB |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com> | |
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 fcitx) | |
20 | #:use-module ((guix licenses) #:select (gpl2+)) | |
21 | #:use-module (guix packages) | |
22 | #:use-module (guix download) | |
23 | #:use-module (guix build-system cmake) | |
99828fa7 | 24 | #:use-module (gnu packages documentation) |
488c34ec SB |
25 | #:use-module (gnu packages enchant) |
26 | #:use-module (gnu packages gettext) | |
27 | #:use-module (gnu packages glib) | |
28 | #:use-module (gnu packages gtk) | |
29 | #:use-module (gnu packages icu4c) | |
30 | #:use-module (gnu packages iso-codes) | |
31 | #:use-module (gnu packages pkg-config) | |
32 | #:use-module (gnu packages xml) | |
33 | #:use-module (gnu packages xorg)) | |
34 | ||
35 | (define-public fcitx | |
36 | (package | |
37 | (name "fcitx") | |
38 | (version "4.2.8.6") | |
39 | (source (origin | |
40 | (method url-fetch) | |
41 | (uri (string-append "http://download.fcitx-im.org/fcitx/" | |
42 | name "-" version "_dict.tar.xz")) | |
43 | (sha256 | |
44 | (base32 | |
45 | "15ymd42kg920ri0f8fymq3i68g8k1kgpmdlnk9jf5fvnz6g4w0wi")))) | |
46 | (build-system cmake-build-system) | |
47 | (outputs '("out" "gtk2" "gtk3")) | |
48 | (arguments | |
49 | `(#:configure-flags | |
50 | (list "-DENABLE_TEST=ON" | |
51 | (string-append "-DXKB_RULES_XML_FILE=" | |
52 | (assoc-ref %build-inputs "xkeyboard-config") | |
53 | "/share/X11/xkb/rules/evdev.xml") | |
54 | "-DENABLE_GTK2_IM_MODULE=ON" | |
55 | "-DENABLE_GTK3_IM_MODULE=ON" | |
56 | (string-append "-DGTK2_IM_MODULEDIR=" | |
57 | (assoc-ref %outputs "gtk2") | |
58 | "/lib/gtk-2.0/2.10.0/immodules") | |
59 | (string-append "-DGTK3_IM_MODULEDIR=" | |
60 | (assoc-ref %outputs "gtk3") | |
61 | "/lib/gtk-3.0/3.0.0/immodules") | |
62 | ;; XXX: Enable GObject Introspection and Qt4 support. | |
63 | "-DENABLE_GIR=OFF" | |
64 | "-DENABLE_QT=OFF" | |
65 | "-DENABLE_QT_IM_MODULE=OFF"))) | |
66 | (native-inputs | |
67 | `(("doxygen" ,doxygen) | |
68 | ("glib:bin" ,glib "bin") ; for glib-genmarshal | |
69 | ("pkg-config" ,pkg-config))) | |
70 | (inputs | |
71 | `(("dbus" ,dbus) | |
72 | ("enchant" ,enchant) | |
b94a6ca0 | 73 | ("gettext" ,gettext-minimal) |
488c34ec SB |
74 | ("gtk2" ,gtk+-2) |
75 | ("gtk3" ,gtk+) | |
76 | ("icu4c" ,icu4c) | |
77 | ("iso-codes" ,iso-codes) | |
78 | ("libxkbfile" ,libxkbfile) | |
79 | ("libxml2" ,libxml2) | |
80 | ("xkeyboard-config" ,xkeyboard-config))) | |
81 | (home-page "http://fcitx-im.org") | |
82 | (synopsis "Input method framework") | |
83 | (description | |
84 | "Fcitx is an input method framework with extension support. It has | |
85 | Pinyin, Quwei and some table-based (Wubi, Cangjie, Erbi, etc.) input methods | |
86 | built-in.") | |
87 | (license gpl2+))) | |
7386a048 FS |
88 | |
89 | (define-public fcitx-configtool | |
90 | (package | |
91 | (name "fcitx-configtool") | |
92 | (version "0.4.8") | |
93 | (source (origin | |
94 | (method url-fetch) | |
95 | (uri (string-append "https://download.fcitx-im.org/fcitx-configtool/" | |
96 | name "-" version ".tar.xz")) | |
97 | (sha256 | |
98 | (base32 | |
99 | "1vaim0namw58bfafbvws1vgd4010p19zwqfbx6bd1zi5sgchdg0f")))) | |
100 | (build-system cmake-build-system) | |
101 | (arguments | |
102 | `(#:configure-flags | |
103 | (list "-DENABLE_GTK2=ON" | |
104 | "-DENABLE_GTK3=ON") | |
105 | #:tests? #f)) ; No tests. | |
106 | (native-inputs | |
107 | `(("glib:bin" ,glib "bin") | |
108 | ("pkg-config" ,pkg-config))) | |
109 | (inputs | |
110 | `(("fcitx" ,fcitx) | |
111 | ("dbus-glib" ,dbus-glib) | |
112 | ("gettext" ,gettext-minimal) | |
113 | ("gtk2" ,gtk+-2) | |
114 | ("gtk3" ,gtk+) | |
115 | ("iso-codes" ,iso-codes))) | |
116 | (home-page "https://fcitx-im.org/wiki/Configtool") | |
117 | (synopsis "Graphic Fcitx configuration tool") | |
118 | (description | |
119 | "Fcitx is an input method framework with extension support. It has | |
120 | Pinyin, Quwei and some table-based (Wubi, Cangjie, Erbi, etc.) input methods | |
121 | built-in. This package provides GTK version of the graphic configuration | |
122 | tool of Fcitx.") | |
123 | (license gpl2+))) |