aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorAndrew Tropin <andrew@trop.in>2023-02-28 06:30:30 +0400
committerAndrew Tropin <andrew@trop.in>2023-02-28 06:35:15 +0400
commit699936485ab2fd495cc58f7fcce69d8f49bc9931 (patch)
tree08a9a7974f7fa31f06cf568d6ab61cf7e909bfbc /gnu
parent60e03bb5e75be35440fb64a626d3e71918dc465c (diff)
downloadguix-699936485ab2fd495cc58f7fcce69d8f49bc9931.tar
guix-699936485ab2fd495cc58f7fcce69d8f49bc9931.tar.gz
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.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/emacs-xyz.scm14
1 files changed, 14 insertions, 0 deletions
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")