You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

131 lines
5.0 KiB

gnu: Add and use gettext-minimal. * gnu/packages/gettext.scm (gnu-gettext): Rename to... (gettext-minimal): ... this. Adjust synopsis and description. (gnu-gettext): Inherit from it. (po4a): Use 'gettext-minimal' instead of 'gnu-gettext'. * gnu/packages/acl.scm: Likewise. * gnu/packages/admin.scm: Likewise. * gnu/packages/apl.scm: Likewise. * gnu/packages/attr.scm: Likewise. * gnu/packages/audio.scm: Likewise. * gnu/packages/base.scm: Likewise. * gnu/packages/cdrom.scm: Likewise. * gnu/packages/commencement.scm: Likewise. * gnu/packages/crypto.scm: Likewise. * gnu/packages/databases.scm: Likewise. * gnu/packages/disk.scm: Likewise. * gnu/packages/documentation.scm: Likewise. * gnu/packages/education.scm: Likewise. * gnu/packages/engineering.scm: Likewise. * gnu/packages/enlightenment.scm: Likewise. * gnu/packages/fcitx.scm: Likewise. * gnu/packages/fontutils.scm: Likewise. * gnu/packages/freedesktop.scm: Likewise. * gnu/packages/games.scm: Likewise. * gnu/packages/gkrellm.scm: Likewise. * gnu/packages/glib.scm: Likewise. * gnu/packages/gnome.scm: Likewise. * gnu/packages/grub.scm: Likewise. * gnu/packages/gtk.scm: Likewise. * gnu/packages/guile.scm: Likewise. * gnu/packages/ibus.scm: Likewise. * gnu/packages/irc.scm: Likewise. * gnu/packages/iso-codes.scm: Likewise. * gnu/packages/kde-frameworks.scm: Likewise. * gnu/packages/kodi.scm: Likewise. * gnu/packages/linux.scm: Likewise. * gnu/packages/man.scm: Likewise. * gnu/packages/maths.scm: Likewise. * gnu/packages/mono.scm: Likewise. * gnu/packages/mp3.scm: Likewise. * gnu/packages/music.scm: Likewise. * gnu/packages/nano.scm: Likewise. * gnu/packages/networking.scm: Likewise. * gnu/packages/package-management.scm: Likewise. * gnu/packages/pdf.scm: Likewise. * gnu/packages/sawfish.scm: Likewise. * gnu/packages/statistics.scm: Likewise. * gnu/packages/terminals.scm: Likewise. * gnu/packages/version-control.scm: Likewise. * gnu/packages/vpn.scm: Likewise. * gnu/packages/w3m.scm: Likewise. * gnu/packages/webkit.scm: Likewise. * gnu/packages/wicd.scm: Likewise. * gnu/packages/wine.scm: Likewise. * gnu/packages/xdisorg.scm: Likewise. * gnu/packages/xorg.scm: Likewise.
5 years ago
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
  3. ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
  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. (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)
  24. #:use-module (gnu packages documentation)
  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 web)
  33. #:use-module (gnu packages xml)
  34. #:use-module (gnu packages xorg))
  35. (define-public fcitx
  36. (package
  37. (name "fcitx")
  38. (version "4.2.9.7")
  39. (source (origin
  40. (method url-fetch)
  41. (uri (string-append "http://download.fcitx-im.org/fcitx/"
  42. "fcitx-" version "_dict.tar.xz"))
  43. (sha256
  44. (base32
  45. "13vg7yzfq0vj2r8zdf9ly3n243nwwggkhd5qv3z6yqdyj0m3ncyg"))))
  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. ("extra-cmake-modules"
  69. ;; XXX: We can't simply #:use-module due to a cycle somewhere.
  70. ,(module-ref
  71. (resolve-interface '(gnu packages kde-frameworks))
  72. 'extra-cmake-modules))
  73. ("glib:bin" ,glib "bin") ; for glib-genmarshal
  74. ("pkg-config" ,pkg-config)))
  75. (inputs
  76. `(("dbus" ,dbus)
  77. ("enchant" ,enchant-1.6)
  78. ("gettext" ,gettext-minimal)
  79. ("gtk2" ,gtk+-2)
  80. ("gtk3" ,gtk+)
  81. ("icu4c" ,icu4c)
  82. ("iso-codes" ,iso-codes)
  83. ("json-c" ,json-c)
  84. ("libxkbfile" ,libxkbfile)
  85. ("libxml2" ,libxml2)
  86. ("xkeyboard-config" ,xkeyboard-config)))
  87. (home-page "https://fcitx-im.org")
  88. (synopsis "Input method framework")
  89. (description
  90. "Fcitx is an input method framework with extension support. It has
  91. Pinyin, Quwei and some table-based (Wubi, Cangjie, Erbi, etc.) input methods
  92. built-in.")
  93. (license gpl2+)))
  94. (define-public fcitx-configtool
  95. (package
  96. (name "fcitx-configtool")
  97. (version "0.4.10")
  98. (source (origin
  99. (method url-fetch)
  100. (uri (string-append "https://download.fcitx-im.org/fcitx-configtool/"
  101. "fcitx-configtool-" version ".tar.xz"))
  102. (sha256
  103. (base32
  104. "1yyi9jhkwn49lx9a47k1zbvwgazv4y4z72gnqgzdpgdzfrlrgi5w"))))
  105. (build-system cmake-build-system)
  106. (arguments
  107. `(#:configure-flags
  108. (list "-DENABLE_GTK2=ON"
  109. "-DENABLE_GTK3=ON")
  110. #:tests? #f)) ; No tests.
  111. (native-inputs
  112. `(("glib:bin" ,glib "bin")
  113. ("pkg-config" ,pkg-config)))
  114. (inputs
  115. `(("fcitx" ,fcitx)
  116. ("dbus-glib" ,dbus-glib)
  117. ("gettext" ,gettext-minimal)
  118. ("gtk2" ,gtk+-2)
  119. ("gtk3" ,gtk+)
  120. ("iso-codes" ,iso-codes)))
  121. (home-page "https://fcitx-im.org/wiki/Configtool")
  122. (synopsis "Graphic Fcitx configuration tool")
  123. (description
  124. "Fcitx is an input method framework with extension support. It has
  125. Pinyin, Quwei and some table-based (Wubi, Cangjie, Erbi, etc.) input methods
  126. built-in. This package provides GTK version of the graphic configuration
  127. tool of Fcitx.")
  128. (license gpl2+)))