[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: emacspeak: Fix Tclx and espeak server loadin
From: |
guix-commits |
Subject: |
branch master updated: gnu: emacspeak: Fix Tclx and espeak server loading. |
Date: |
Wed, 21 Apr 2021 17:31:25 -0400 |
This is an automated email from the git hooks/post-receive script.
kkebreau pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 50616a7 gnu: emacspeak: Fix Tclx and espeak server loading.
50616a7 is described below
commit 50616a7dfbbda1d7f8d5cffceaa165b829d2c8ae
Author: Kei Kebreau <kkebreau@posteo.net>
AuthorDate: Sun Mar 28 22:38:09 2021 -0400
gnu: emacspeak: Fix Tclx and espeak server loading.
Fixes <https://issues.guix.gnu.org/42861>.
* gnu/packages/emacs-xyz.scm (emacspeak)[arguments]: In the 'configure'
phase,
add Tclx library to the load path of Tcl in the espeak server script.
Remove
'wrap-program' phase.
---
gnu/packages/emacs-xyz.scm | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 20aab59..c7cce15 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -12126,8 +12126,18 @@ highlights quasi-quoted expressions.")
#:phases
(modify-phases %standard-phases
(replace 'configure
- (lambda _
+ (lambda* (#:key inputs outputs #:allow-other-keys)
(setenv "SHELL" (which "sh"))
+ ;; Ensure the tclespeak.so binary is found in the correct location
+ ;; by adding the path to the Tclx library to the Tcl $auto_path
+ ;; variable.
+ (with-fluids ((%default-port-encoding "ISO-8859-1"))
+ (substitute* "servers/espeak"
+ (("package require Tclx")
+ (string-append "set auto_path [linsert $auto_path 0 "
+ (assoc-ref inputs "tclx")
+ "/lib]\n"
+ "package require Tclx"))))
;; Configure Emacspeak according to etc/install.org.
(invoke "make" "config")))
(add-after 'build 'build-espeak
@@ -12155,18 +12165,7 @@ highlights quasi-quoted expressions.")
;; Install the convenient startup script.
(mkdir-p bin)
(copy-file "run" (string-append bin "/emacspeak")))
- #t))
- (add-after 'install 'wrap-program
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (emacspeak (string-append out "/bin/emacspeak"))
- (espeak (string-append (assoc-ref inputs "espeak")
- "/bin/espeak")))
- ;; The environment variable DTK_PROGRAM tells emacspeak what
- ;; program to use for speech.
- (wrap-program emacspeak
- `("DTK_PROGRAM" ":" prefix (,espeak)))
- #t))))
+ #t)))
#:tests? #f)) ; no check target
(inputs
`(("emacs" ,emacs)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: emacspeak: Fix Tclx and espeak server loading.,
guix-commits <=