mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 20:49:29 -05:00
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.
This commit is contained in:
parent
235f2c98b9
commit
50616a7dfb
1 changed files with 12 additions and 13 deletions
|
@ -12126,8 +12126,18 @@ (define-public emacspeak
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda _
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(setenv "SHELL" (which "sh"))
|
(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.
|
;; Configure Emacspeak according to etc/install.org.
|
||||||
(invoke "make" "config")))
|
(invoke "make" "config")))
|
||||||
(add-after 'build 'build-espeak
|
(add-after 'build 'build-espeak
|
||||||
|
@ -12155,18 +12165,7 @@ (define-public emacspeak
|
||||||
;; Install the convenient startup script.
|
;; Install the convenient startup script.
|
||||||
(mkdir-p bin)
|
(mkdir-p bin)
|
||||||
(copy-file "run" (string-append bin "/emacspeak")))
|
(copy-file "run" (string-append bin "/emacspeak")))
|
||||||
#t))
|
#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))))
|
|
||||||
#:tests? #f)) ; no check target
|
#:tests? #f)) ; no check target
|
||||||
(inputs
|
(inputs
|
||||||
`(("emacs" ,emacs)
|
`(("emacs" ,emacs)
|
||||||
|
|
Loading…
Reference in a new issue