Subject: [PATCH emacs-team WIP v4 07/24] gnu: emacs-eweouz: Build variants.

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

* gnu/packages/emacs-xyz.scm (emacs-eweouz)[native-inputs]: Replace
emacs-minimal with emacs.
[properties]: Add ‘minimal-variant’, ‘next-variant’ and ‘pgtk-variant’.
(emacs-minimal-eweouz, emacs-next-eweouz, emacs-pgtk-eweouz): New variables.
---
 gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++--
 1 file changed, 24 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index ce92c12885..0ec3d4a240 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -4210,7 +4210,7 @@ (define-public emacs-eweouz
     (native-inputs
      (list autoconf
            automake
-           emacs-minimal
+           emacs
            pkg-config))
     (inputs
      (list evolution-data-server))
@@ -4220,7 +4220,29 @@ (define-public emacs-eweouz
      "Eweouz is an tool for looking up contacts from Evolution Data Server
 from Emacs.  It is similar to BBDB, except much, much simpler.")
     ;; Most things are GPLv2-only although lisp/vcard.el is GPLv2+.
-    (license (list license:gpl2 license:gpl2+))))
+    (license (list license:gpl2 license:gpl2+))
+    (properties
+     `((minimal-variant . ,(delay emacs-minimal-eweouz))
+       (next-variant . ,(delay emacs-next-eweouz))
+       (pgtk-variant . ,(delay emacs-pgtk-eweouz))))))
+
+(define-public emacs-minimal-eweouz
+  (package/inherit emacs-eweouz
+    (name "emacs-minimal-eweouz")
+    (native-inputs (modify-inputs (package-native-inputs emacs-eweouz)
+                     (replace "emacs" emacs-minimal)))))
+
+(define-public emacs-next-eweouz
+  (package/inherit emacs-eweouz
+    (name "emacs-next-eweouz")
+    (native-inputs (modify-inputs (package-native-inputs emacs-eweouz)
+                     (replace "emacs" emacs-next)))))
+
+(define-public emacs-pgtk-eweouz
+  (package/inherit emacs-eweouz
+    (name "emacs-pgtk-eweouz")
+    (native-inputs (modify-inputs (package-native-inputs emacs-eweouz)
+                     (replace "emacs" emacs-pgtk)))))
 
 (define-public emacs-beacon
   (package
-- 
2.45.2