gnu: emacs-embark: Generate info from README.org.

* gnu/packages/emacs-xyz.scm (emacs-embark)[native-inputs]: Add texinfo.
[arguments]: Generate info from README.org.
This commit is contained in:
Andrew Tropin 2023-02-28 06:31:05 +04:00
parent 699936485a
commit 62e8ba15d7
No known key found for this signature in database
GPG key ID: 2208D20958C1DEB0

View file

@ -10466,6 +10466,20 @@ (define-public emacs-embark
(base32 "14qp46wa1xgmb09jyk9cadj0b3m7bwspqnprk3zbfc6gw1r53235"))
(file-name (git-file-name name version))))
(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 "embark.info"
(string-append #$output "/share/info")))))))
(native-inputs (list texinfo))
(propagated-inputs
(list emacs-avy emacs-consult))
(home-page "https://github.com/oantolin/embark")