From d5b0aa99f8d339b13dbea504bdb9a230e59915a0 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 22 Feb 2020 22:06:06 +0530 Subject: gnu: uim: Use emacs-substitute-variables instead of substitute*. * gnu/packages/xorg.scm (uim)[arguments]: In the configure-uim-el phase, use emacs-substitute-variables instead of substitute*. --- gnu/packages/xorg.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu/packages') diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm index a7ba6fe9eb..2bf920b20d 100644 --- a/gnu/packages/xorg.scm +++ b/gnu/packages/xorg.scm @@ -6145,10 +6145,10 @@ X11 servers, Windows, or macOS.") ;; Set path of uim-el-agent and uim-el-helper-agent executables (add-after 'configure 'configure-uim-el (lambda* (#:key outputs #:allow-other-keys) - (substitute* "emacs/uim-var.el" - (("\"(uim-el-agent|uim-el-helper-agent)\"" _ executable) - (string-append "\"" (assoc-ref outputs "out") - "/bin/" executable "\""))) + (let ((out (assoc-ref outputs "out"))) + (emacs-substitute-variables "emacs/uim-var.el" + ("uim-el-agent" (string-append out "/bin/uim-el-agent")) + ("uim-el-helper-agent" (string-append out "/bin/uim-el-helper-agent")))) #t)) ;; Fix installation path by renaming share/emacs/uim-el to ;; share/emacs/site-lisp -- cgit 1.4.1