guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#51668] [PATCH] gnu: Add fcitx5-rime.


From: dan
Subject: [bug#51668] [PATCH] gnu: Add fcitx5-rime.
Date: Sun, 7 Nov 2021 23:44:29 +0800

---
 gnu/packages/fcitx5.scm | 41 ++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 40 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/fcitx5.scm b/gnu/packages/fcitx5.scm
index 737f47f20f..4391bbeadd 100644
--- a/gnu/packages/fcitx5.scm
+++ b/gnu/packages/fcitx5.scm
@@ -47,7 +47,8 @@ (define-module (gnu packages fcitx5)
   #:use-module (gnu packages web)
   #:use-module (gnu packages xdisorg)
   #:use-module (gnu packages xml)
-  #:use-module (gnu packages xorg))
+  #:use-module (gnu packages xorg)
+  #:use-module (gnu packages ibus))
 
 (define-public xcb-imdkit
   (package
@@ -453,3 +454,41 @@ (define (install-theme-variant variant target)
 @item DeepPurple
 @end itemize\n")
     (license license:asl2.0)))
+
+(define-public fcitx5-rime
+  (package
+    (name "fcitx5-rime")
+    (version "5.0.8")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+            (url "https://github.com/fcitx/fcitx5-rime";)
+            (commit version)))
+       (sha256
+        (base32
+         "17fi36m70d8gwwyragms4rl7xjx4k7g5ixs8rcj8r2ph1ak9ymhy"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f
+                #:configure-flags
+                (list (string-append "-DRIME_DATA_DIR="
+                                    (assoc-ref %build-inputs "rime-data")
+                                    "/share/rime-data"))))
+    (inputs
+     `(("gettext", gettext-minimal)
+       ("fcitx5", fcitx5)
+       ("librime", librime)
+       ("rime-data", rime-data)))
+    (native-inputs
+     `(("extra-cmake-modules", extra-cmake-modules)
+       ("pkg-config", pkg-config)))
+    (home-page "https://github.com/fcitx/fcitx5-rime";)
+    (synopsis "Rime Input Method Engine for fcitx5")
+    (description "@dfn{fcitx5-rime} provides the Rime input method engine for
++fcitx5. Rime is a lightweight, extensible input method engine supporting
++various input schemas including glyph-based input methods, romanization-based
++input methods as well as those for Chinese dialects. It has the ability to
++compose phrases and sentences intelligently and provide very accurate
++traditional Chinese output.")
+    (license license:lgpl2.1+)))
-- 
2.33.1.windows.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]