Subject: [PATCH] gnu: emacs-evil: Add info page.

From: Michael Rohleder <[email-masked]>
Date: Tue, 20 Oct 2020 00:05:50 +0200

* gnu/packages/emacs-xyz.scm (emacs-evil): Add info page.
[arguments]: Add phase make-info.
[native-inputs]: Add texinfo.
---
 gnu/packages/emacs-xyz.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 5acb8ce6ec..41f76132a6 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -9392,8 +9392,14 @@ news items, openrc and runscripts.")
            (lambda _
              (substitute* "evil-test-helpers.el"
                (("\\(undo-tree-mode 1\\)") ""))
-             #t)))))
+             #t))
+         (add-before 'install 'make-info
+           (lambda _
+             (chdir "doc/build/texinfo")
+             (invoke "makeinfo" "--no-split"
+                     "-o" "evil.info" "evil.texi"))))))
     (build-system emacs-build-system)
+    (native-inputs `(("texinfo" ,texinfo)))
     (home-page "https://github.com/emacs-evil/evil")
     (synopsis "Extensible Vi layer for Emacs")
     (description
-- 
2.28.0