all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#26437: [PATCH] gnu: Add emacspeak.
@ 2017-04-10 22:41 Kei Kebreau
  2017-04-11 12:33 ` Ludovic Courtès
  2017-04-11 15:25 ` Kei Kebreau
  0 siblings, 2 replies; 4+ messages in thread
From: Kei Kebreau @ 2017-04-10 22:41 UTC (permalink / raw)
  To: 26437; +Cc: Kei Kebreau

* gnu/packages/emacs.scm (emacspeak): New variable.
---
 gnu/packages/emacs.scm | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 3db31f207..ac78bea94 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -22,6 +22,7 @@
 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
 ;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
 ;;; Copyright © 2017 Kyle Meyer <kyle@kyleam.com>
+;;; Copyright © 2017 Kei Kebreau <kei@openmailbox.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -51,6 +52,7 @@
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system trivial)
   #:use-module (gnu packages)
+  #:use-module (gnu packages audio)
   #:use-module (gnu packages code)
   #:use-module (gnu packages guile)
   #:use-module (gnu packages gtk)
@@ -58,6 +60,7 @@
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages tex)
   #:use-module (gnu packages texinfo)
+  #:use-module (gnu packages tcl)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages xorg)
@@ -4057,3 +4060,61 @@ jQuery and Bootstrap resources included via osscdn.")
     (description
      "This Emacs package highlights the s-exp at the current position.")
     (license license:gpl3+)))
+
+(define-public emacspeak
+  (package
+    (name "emacspeak")
+    (version "45.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://github.com/tvraman/emacspeak/releases/download/"
+             version "/emacspeak-" version ".tar.bz2"))
+       (sha256
+        (base32
+         "0npcr867xbbhwa0i7v26hnk4z2d51522jwcfwc594j74kbv3g6ka"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:make-flags (list (string-append "prefix="
+                                         (assoc-ref %outputs "out")))
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+           (lambda* (#:key outputs #:allow-other-keys)
+             (substitute* "Makefile"
+               (("\\$\\(INSTALL\\) -d \\$\\(libdir\\)/servers/linux-outloud")
+                "")
+               (("\\$\\(INSTALL\\)  -m 755 \\$\\{OUTLOUD\\}.*$") "")
+               (("\\*info\\*") "*"))
+             (substitute* "etc/emacspeak.sh.def"
+               (("<emacspeak-dir>")
+                (string-append (assoc-ref outputs "out")
+                               "/share/emacs/site-lisp/emacspeak/lisp")))
+             (zero? (system* "make" "config"))))
+         (add-after 'install 'install-espeak-server
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))            
+               (with-directory-excursion "servers/linux-espeak"
+                 (and (zero? (system* "make"))
+                      (zero? (system* "make" "install"
+                                      (string-append "PREFIX=" out))))))))
+         (add-after 'install-espeak-server '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")))
+               (wrap-program emacspeak
+                 `("DTK_PROGRAM" ":" prefix (,espeak)))))))
+       #:tests? #f)) ; no check target
+    (inputs
+     `(("espeak" ,espeak)
+       ("tcl" ,tcl)
+       ("tclx" ,tclx)))
+    (native-inputs `(("emacs" ,emacs-minimal)))
+    (home-page "http://emacspeak.sourceforge.net")
+    (synopsis "Audio desktop interface for Emacs")
+    (description
+     "Emacspeak is an Emacs subsystem that provides complete speech access.")
+    (license license:gpl2+)))
-- 
2.12.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#26437: [PATCH] gnu: Add emacspeak.
  2017-04-10 22:41 bug#26437: [PATCH] gnu: Add emacspeak Kei Kebreau
@ 2017-04-11 12:33 ` Ludovic Courtès
  2017-04-11 15:22   ` Kei Kebreau
  2017-04-11 15:25 ` Kei Kebreau
  1 sibling, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2017-04-11 12:33 UTC (permalink / raw)
  To: Kei Kebreau; +Cc: 26437

Hello Kei,

Kei Kebreau <kei@openmailbox.org> skribis:

> * gnu/packages/emacs.scm (emacspeak): New variable.

[...]

> +         (add-after 'install-espeak-server '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")))
> +               (wrap-program emacspeak
> +                 `("DTK_PROGRAM" ":" prefix (,espeak)))))))

Please return #t here.  Could you also add a note about what
‘DTK_PROGRAM’ is and what component honors it?

> +    (home-page "http://emacspeak.sourceforge.net")
> +    (synopsis "Audio desktop interface for Emacs")
> +    (description
> +     "Emacspeak is an Emacs subsystem that provides complete speech access.")

Could you expound a bit, probably borrowing bits from their home page?

Otherwise LGTM.  OK with these changes!

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#26437: [PATCH] gnu: Add emacspeak.
  2017-04-11 12:33 ` Ludovic Courtès
@ 2017-04-11 15:22   ` Kei Kebreau
  0 siblings, 0 replies; 4+ messages in thread
From: Kei Kebreau @ 2017-04-11 15:22 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 26437

[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]

ludo@gnu.org (Ludovic Courtès) writes:

> Hello Kei,
>
> Kei Kebreau <kei@openmailbox.org> skribis:
>
>> * gnu/packages/emacs.scm (emacspeak): New variable.
>
> [...]
>
>> +         (add-after 'install-espeak-server '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")))
>> +               (wrap-program emacspeak
>> +                 `("DTK_PROGRAM" ":" prefix (,espeak)))))))
>
> Please return #t here.  Could you also add a note about what
> ‘DTK_PROGRAM’ is and what component honors it?
>
>> +    (home-page "http://emacspeak.sourceforge.net")
>> +    (synopsis "Audio desktop interface for Emacs")
>> +    (description
>> + "Emacspeak is an Emacs subsystem that provides complete speech
>> access.")
>
> Could you expound a bit, probably borrowing bits from their home page?
>
> Otherwise LGTM.  OK with these changes!
>
> Thanks,
> Ludo’.

Pushed to master with the required changes. Thanks for the review.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#26437: [PATCH] gnu: Add emacspeak.
  2017-04-10 22:41 bug#26437: [PATCH] gnu: Add emacspeak Kei Kebreau
  2017-04-11 12:33 ` Ludovic Courtès
@ 2017-04-11 15:25 ` Kei Kebreau
  1 sibling, 0 replies; 4+ messages in thread
From: Kei Kebreau @ 2017-04-11 15:25 UTC (permalink / raw)
  To: 26437-done

[-- Attachment #1: Type: text/plain, Size: 40 bytes --]

This package has been pushed to master.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-11 15:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-10 22:41 bug#26437: [PATCH] gnu: Add emacspeak Kei Kebreau
2017-04-11 12:33 ` Ludovic Courtès
2017-04-11 15:22   ` Kei Kebreau
2017-04-11 15:25 ` Kei Kebreau

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.