[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
26/277: gnu: fcitx: Update package definition.
From: |
guix-commits |
Subject: |
26/277: gnu: fcitx: Update package definition. |
Date: |
Thu, 6 Aug 2020 17:02:39 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit b106371b70c5825d37cad9f74a42e85c2f621ad4
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Tue Jun 2 20:42:46 2020 -0400
gnu: fcitx: Update package definition.
* gnu/packages/fcitx.scm (fcitx): Update packages definition.
[arguments]<#:configure-flags>[-DENABLE_QT_GUI]: New flag.
[-DGOBJECT_INTROSPECTION_GIRDIR]: New flag.
[-DGOBJECT_INTROSPECTION_TYPELIBDIR]: New flag.
[-DENABLE_GIR]: Remove flag.
[native-inputs]: Add dot, gettext, gobject-introspection, intltool,
libxml2 and python-wrapper.
[inputs]: Add cairo, ecm, fontconfig, libx11, libxkbcommon, opencc,
pango and presage. Remove glib and libxml2.
[propagated-inputs]: Add glib.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/fcitx.scm | 106 ++++++++++++++++++++++++++++++-------------------
1 file changed, 65 insertions(+), 41 deletions(-)
diff --git a/gnu/packages/fcitx.scm b/gnu/packages/fcitx.scm
index 279a9c8..5e96e60 100644
--- a/gnu/packages/fcitx.scm
+++ b/gnu/packages/fcitx.scm
@@ -24,8 +24,10 @@
#:use-module (guix build-system cmake)
#:use-module (guix build-system glib-or-gtk)
#:use-module (gnu packages check)
+ #:use-module (gnu packages compression)
#:use-module (gnu packages documentation)
#:use-module (gnu packages enchant)
+ #:use-module (gnu packages fontutils)
#:use-module (gnu packages gettext)
#:use-module (gnu packages glib)
#:use-module (gnu packages graphviz)
@@ -37,9 +39,11 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages sqlite)
+ #:use-module (gnu packages textutils)
#:use-module (gnu packages web)
#:use-module (gnu packages xml)
- #:use-module (gnu packages xorg))
+ #:use-module (gnu packages xorg)
+ #:use-module (gnu packages xdisorg))
(define-public presage
(package
@@ -98,60 +102,80 @@ by the different predictive algorithms.")
(package
(name "fcitx")
(version "4.2.9.7")
- (source (origin
- (method url-fetch)
- (uri (string-append "http://download.fcitx-im.org/fcitx/"
- "fcitx-" version "_dict.tar.xz"))
- (sha256
- (base32
- "13vg7yzfq0vj2r8zdf9ly3n243nwwggkhd5qv3z6yqdyj0m3ncyg"))))
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "http://download.fcitx-im.org/fcitx/"
+ "fcitx-" version "_dict.tar.xz"))
+ (sha256
+ (base32 "13vg7yzfq0vj2r8zdf9ly3n243nwwggkhd5qv3z6yqdyj0m3ncyg"))))
(build-system cmake-build-system)
(outputs '("out" "gtk2" "gtk3"))
(arguments
`(#:configure-flags
- (list "-DENABLE_TEST=ON"
- (string-append "-DXKB_RULES_XML_FILE="
- (assoc-ref %build-inputs "xkeyboard-config")
- "/share/X11/xkb/rules/evdev.xml")
- "-DENABLE_GTK2_IM_MODULE=ON"
- "-DENABLE_GTK3_IM_MODULE=ON"
- (string-append "-DGTK2_IM_MODULEDIR="
- (assoc-ref %outputs "gtk2")
- "/lib/gtk-2.0/2.10.0/immodules")
- (string-append "-DGTK3_IM_MODULEDIR="
- (assoc-ref %outputs "gtk3")
- "/lib/gtk-3.0/3.0.0/immodules")
- ;; XXX: Enable GObject Introspection and Qt4 support.
- "-DENABLE_GIR=OFF"
- "-DENABLE_QT=OFF"
- "-DENABLE_QT_IM_MODULE=OFF")))
+ (list
+ "-DENABLE_GTK2_IM_MODULE=ON"
+ "-DENABLE_GTK3_IM_MODULE=ON"
+ "-DENABLE_QT=OFF"
+ "-DENABLE_QT_IM_MODULE=OFF"
+ "-DENABLE_QT_GUI=OFF"
+ "-DENABLE_TEST=ON"
+ (string-append "-DGOBJECT_INTROSPECTION_GIRDIR="
+ (assoc-ref %outputs "out")
+ "/share/gir-1.0")
+ (string-append "-DGOBJECT_INTROSPECTION_TYPELIBDIR="
+ (assoc-ref %outputs "out")
+ "/lib/girepository-1.0")
+ (string-append "-DXKB_RULES_XML_FILE="
+ (assoc-ref %build-inputs "xkeyboard-config")
+ "/share/X11/xkb/rules/evdev.xml")
+ (string-append "-DGTK2_IM_MODULEDIR="
+ (assoc-ref %outputs "gtk2")
+ "/lib/gtk-2.0/2.10.0/immodules")
+ (string-append "-DGTK3_IM_MODULEDIR="
+ (assoc-ref %outputs "gtk3")
+ "/lib/gtk-3.0/3.0.0/immodules"))))
(native-inputs
- `(("doxygen" ,doxygen)
+ `(("dot" ,graphviz)
+ ("doxygen" ,doxygen)
("extra-cmake-modules"
;; XXX: We can't simply #:use-module due to a cycle somewhere.
,(module-ref
(resolve-interface '(gnu packages kde-frameworks))
'extra-cmake-modules))
- ("glib:bin" ,glib "bin") ; for glib-genmarshal
- ("pkg-config" ,pkg-config)))
+ ("gettext" ,gettext-minimal)
+ ("glib:bin" ,glib "bin")
+ ("gobject-introspection" ,gobject-introspection)
+ ("intltool" ,intltool)
+ ("libxml2" ,libxml2)
+ ("pkg-config" ,pkg-config)
+ ("python-wrapper" ,python-wrapper)))
(inputs
- `(("dbus" ,dbus)
- ("enchant" ,enchant-1.6)
- ("gettext" ,gettext-minimal)
- ("gtk2" ,gtk+-2)
- ("gtk3" ,gtk+)
- ("icu4c" ,icu4c)
- ("iso-codes" ,iso-codes)
- ("json-c" ,json-c)
- ("libxkbfile" ,libxkbfile)
- ("libxml2" ,libxml2)
+ `(("cairo" ,cairo)
+ ("dbus" ,dbus)
+ ("ecm" ,ecm)
+ ("enchant" ,enchant-1.6)
+ ("fontconfig" ,fontconfig)
+ ("gtk2" ,gtk+-2)
+ ("gtk3" ,gtk+)
+ ("icu4c" ,icu4c)
+ ("iso-codes" ,iso-codes)
+ ("json-c" ,json-c)
+ ("libx11" ,libx11)
+ ("libxkbcommon" ,libxkbcommon)
+ ("libxkbfile" ,libxkbfile)
+ ("opencc" ,opencc)
+ ("pango" ,pango)
+ ("presage" ,presage)
("xkeyboard-config" ,xkeyboard-config)))
- (home-page "https://fcitx-im.org")
+ (propagated-inputs
+ `(("glib" ,glib)))
(synopsis "Input method framework")
- (description
- "Fcitx is an input method framework with extension support. It has
-Pinyin, Quwei and some table-based (Wubi, Cangjie, Erbi, etc.) input methods
+ (description "Fcitx is an input method framework with extension support.
It
+has Pinyin, Quwei and some table-based (Wubi, Cangjie, Erbi, etc.) input
methods
built-in.")
+ (home-page "https://fcitx-im.org")
(license gpl2+)))
(define-public fcitx-configtool
- 06/277: gnu: Add libxmlb., (continued)
- 06/277: gnu: Add libxmlb., guix-commits, 2020/08/06
- 01/277: gnu: Add krb5-auth-dialog., guix-commits, 2020/08/06
- 10/277: gnu: appstream-glib: Update package definition., guix-commits, 2020/08/06
- 22/277: gnu: Add nuspell., guix-commits, 2020/08/06
- 11/277: gnu: at-spi2-core: Update package definition., guix-commits, 2020/08/06
- 19/277: gnu: cogl: Update package definition., guix-commits, 2020/08/06
- 24/277: gnu: enchant: Update package definition., guix-commits, 2020/08/06
- 18/277: gnu: clutter-gst: Update package definition., guix-commits, 2020/08/06
- 21/277: gnu: Add ronn., guix-commits, 2020/08/06
- 25/277: gnu: Add presage., guix-commits, 2020/08/06
- 26/277: gnu: fcitx: Update package definition.,
guix-commits <=
- 08/277: gnu: Add gnome-photos., guix-commits, 2020/08/06
- 02/277: gnu: Add tepl., guix-commits, 2020/08/06
- 07/277: gnu: Add gnome-music., guix-commits, 2020/08/06
- 12/277: gnu: at-spi2-atk: Update to 2.34.2., guix-commits, 2020/08/06
- 13/277: gnu: atk: Update to 2.36.0., guix-commits, 2020/08/06
- 14/277: gnu: google-brotli: Update package definition., guix-commits, 2020/08/06
- 27/277: gnu: gcab: Update to 1.4., guix-commits, 2020/08/06
- 35/277: gnu: Add mutest., guix-commits, 2020/08/06
- 31/277: gnu: geoclue: Update to 2.5.6., guix-commits, 2020/08/06
- 32/277: gnu: Add sysprof., guix-commits, 2020/08/06