guix-commits
[Top][All Lists]
Advanced

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

03/06: gnu: ibus-rime: Record the right file name in "rime.xml".


From: guix-commits
Subject: 03/06: gnu: ibus-rime: Record the right file name in "rime.xml".
Date: Mon, 6 Jan 2020 10:32:16 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 562b4e47cdc7621c5eda10869be061d8cc2e82d9
Author: address@hidden <address@hidden>
AuthorDate: Wed Jan 1 13:28:28 2020 +0300

    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 <address@hidden>
---
 gnu/packages/ibus.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm
index 70e10ea..512a1ff 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)



reply via email to

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