summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorkanichos@yandex.ru <kanichos@yandex.ru>2020-01-01 13:28:28 +0300
committerLudovic Courtès <ludo@gnu.org>2020-01-06 16:31:54 +0100
commit562b4e47cdc7621c5eda10869be061d8cc2e82d9 (patch)
tree2c945b844dd7b9361b921bfa5cee5e4cc89a4a7c /gnu
parent6a7c4636d4dec47eefa03c95da5a1315bd0e0413 (diff)
downloadguix-562b4e47cdc7621c5eda10869be061d8cc2e82d9.tar.gz
gnu: ibus-rime: Record the right file name in "rime.xml".
* gnu/packages/ibus.scm (ibus-rime)[arguments]: Add 'fix-file-names' phase.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/ibus.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm
index 70e10eae01..512a1ff9ec 100644
--- a/gnu/packages/ibus.scm
+++ b/gnu/packages/ibus.scm
@@ -669,6 +669,13 @@ Method Engine.")
                                (assoc-ref inputs "rime-data")
                                "/share/rime-data\"\n")))
              #t))
+         (add-after 'unpack 'fix-file-names
+           (lambda* (#:key outputs #:allow-other-keys)
+             ;; IBus uses the component file rime.xml to start the Rime
+             ;; engine.  It must be patched with appropriate file names.
+             (substitute* "rime.xml"
+               (("/usr") (assoc-ref outputs "out")))
+             #t))
          (delete 'configure))))
     (inputs
      `(("gdk-pixbuf" ,gdk-pixbuf)