guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/07: gnu: emacs-cape: Generate info from README.org.


From: guix-commits
Subject: 02/07: gnu: emacs-cape: Generate info from README.org.
Date: Mon, 27 Feb 2023 21:42:20 -0500 (EST)

abcdw pushed a commit to branch master
in repository guix.

commit 699936485ab2fd495cc58f7fcce69d8f49bc9931
Author: Andrew Tropin <andrew@trop.in>
AuthorDate: Tue Feb 28 06:30:30 2023 +0400

    gnu: emacs-cape: Generate info from README.org.
    
    * gnu/packages/emacs-xyz.scm (emacs-cape)[native-inputs]: Add texinfo.
    [arguments]: Generate info from README.org.
---
 gnu/packages/emacs-xyz.scm | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 35399fce38..8d259914dd 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -3867,6 +3867,20 @@ be regarded as @code{emacs-company-quickhelp} for 
@code{emacs-corfu}.")
        (sha256
         (base32 "0nvmqfp9rv2mrisyvwfr285yww22c6wb5by3s25c83ay2ivpi8ya"))))
     (build-system emacs-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'install 'makeinfo
+            (lambda* (#:key outputs #:allow-other-keys)
+              (invoke "emacs"
+                      "--batch"
+                      "--eval=(require 'ox-texinfo)"
+                      "--eval=(find-file \"README.org\")"
+                      "--eval=(org-texinfo-export-to-info)")
+              (install-file "cape.info"
+                            (string-append #$output "/share/info")))))))
+    (native-inputs (list texinfo))
     (propagated-inputs
      (list emacs-compat))
     (home-page "https://github.com/minad/cape";)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]