Subject: [bug#72406] [PATCH emacs-team WIP v4 19/24] gnu: emacspeak: Build variants.

From: Liliana Marie Prikler <[email-masked]>
Date: Sun, 11 Aug 2024 14:58:48 +0200

* gnu/packages/emacs-xyz.scm (emacspeak)[properties]: Add ‘minimal-variant’,
‘next-variant’ and ‘pgtk-variant’.
(emacspeak-minimal, emacspeak-next, emacspeak-pgtk): New variables.
---
 gnu/packages/emacs-xyz.scm | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index f0fb00a697..22c21340bc 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -19296,7 +19296,29 @@ (define-public emacspeak
 information.  By seamlessly blending all aspects of the Internet such as
 Web-surfing and messaging, Emacspeak speech-enables local and remote
 information via a consistent and well-integrated user interface.")
-    (license license:gpl2+)))
+    (license license:gpl2+)
+    (properties
+     `((minimal-variant . ,(delay emacspeak-minimal))
+       (next-variant . ,(delay emacspeak-next))
+       (pgtk-variant . ,(delay emacspeak-pgtk))))))
+
+(define-public emacspeak-minimal
+  (package (inherit emacspeak)
+           (name "emacspeak-minimal")
+           (inputs (modify-inputs (package-inputs emacspeak)
+                     (replace "emacs" emacs-minimal)))))
+
+(define-public emacspeak-next
+  (package (inherit emacspeak)
+           (name "emacspeak-next")
+           (inputs (modify-inputs (package-inputs emacspeak)
+                     (replace "emacs" emacs-next)))))
+
+(define-public emacspeak-pgtk
+  (package (inherit emacspeak)
+           (name "emacspeak-pgtk")
+           (inputs (modify-inputs (package-inputs emacspeak)
+                     (replace "emacs" emacs-pgtk)))))
 
 (define-public emacs-adaptive-wrap
   (package
-- 
2.45.2