gnu: ibus-rime: Record the right file name in "rime.xml".
authorkanichos@yandex.ru <kanichos@yandex.ru>
Wed, 1 Jan 2020 10:28:28 +0000 (13:28 +0300)
committerLudovic Courtès <ludo@gnu.org>
Mon, 6 Jan 2020 15:31:54 +0000 (16:31 +0100)
* gnu/packages/ibus.scm (ibus-rime)[arguments]: Add 'fix-file-names' phase.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
gnu/packages/ibus.scm

index 70e10ea..512a1ff 100644 (file)
@@ -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)