Subject: [PATCH 4/5] gnu: emacs-pyim-basedict: Install pyim-basedict.pyim file.
From: [email-masked]
To: [email-masked]
Cc: Feng Shu <[email-masked]>
Date: Wed, 4 Jan 2023 20:47:11 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

From: Feng Shu <[email-masked]>

* gnu/packages/emacs-xyz.scm (emacs-pyim-basedict) [arguments]: New field.
[#:phases]: Install pyim-basedict.pyim file.
---
 gnu/packages/emacs-xyz.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 417e9ee1f5..5ba150c815 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -16624,6 +16624,17 @@ (define-public emacs-pyim-basedict
          (sha256
           (base32 "0fzyh8qmicq2vy9j1ca708ir67dpxp1cwjaw0sw469p24cvj12yy"))))
       (build-system emacs-build-system)
+      (arguments
+       (list
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'install 'install-basedict-file
+              (lambda _
+                (install-file "pyim-basedict.pyim"
+                              (string-append
+                               #$output
+                               "/share/emacs/site-lisp/pyim-basedict-"
+                               #$version)))))))
       (propagated-inputs
        (list emacs-pyim))
       (home-page "https://github.com/tumashu/pyim-basedict")
-- 
2.38.1