Subject: [PATCH] gnu: emacs-dired-preview: Add Info manual.
From: [email-masked]
To: [email-masked]
Cc: Kierin Bell <[email-masked]>
Date: Tue, 29 Aug 2023 13:57:12 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

From: Kierin Bell <[email-masked]>

* gnu/packages/emacs-xyz.scm (emacs-dired-preview): Add Info manual.
---
 gnu/packages/emacs-xyz.scm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 3eaf215134..05f1488650 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -27347,6 +27347,21 @@ (define-public emacs-dired-preview
                (base32
                 "0d485812k1rv0qrw4xvzv4z3qf370apsajnf4q3pjk3q0r1fpm8b"))))
     (build-system emacs-build-system)
+    (native-inputs (list texinfo))
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'install 'makeinfo
+            (lambda _
+              (invoke "emacs"
+                      "--batch"
+                      "--eval=(require 'ox-texinfo)"
+                      "--eval=(find-file \"README.org\")"
+                      "--eval=(org-texinfo-export-to-info)")
+              (install-file "dired-preview.info"
+                            (string-append #$output
+                                           "/share/info")))))))
     (home-page "https://protesilaos.com/emacs/dired-preview")
     (synopsis "Automatically preview file at point in Dired")
     (description

base-commit: 9f4b6bcb5c548f9206b89270b13da54abdff31b1
-- 
2.41.0