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

* gnu/packages/emacs-xyz.scm (emacs-vertico)[arguments]: Migrate to gexps,
generate info from README.org.
This commit is contained in:
Andrew Tropin 2023-02-28 06:33:42 +04:00
parent eed41fbcdd
commit 2369e8b0ac
No known key found for this signature in database
GPG key ID: 2208D20958C1DEB0

View file

@ -34696,16 +34696,26 @@ (define-public emacs-vertico
(base32 "0djc1im6caa67aq0bi8d607ycb1lq4lsirfqsx8kqbfl46852f60"))))
(build-system emacs-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
;; Move the extensions source files to the top level, which is
;; included in the EMACSLOADPATH.
(add-after 'unpack 'move-source-files
(lambda _
(let ((el-files (find-files "./extensions" ".*\\.el$")))
(for-each (lambda (f)
(rename-file f (basename f)))
el-files)))))))
(list
#:phases
#~(modify-phases %standard-phases
;; Move the extensions source files to the top level, which is
;; included in the EMACSLOADPATH.
(add-after 'unpack 'move-source-files
(lambda _
(let ((el-files (find-files "./extensions" ".*\\.el$")))
(for-each (lambda (f)
(rename-file f (basename f)))
el-files))))
(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 "vertico.info"
(string-append #$output "/share/info")))))))
(native-inputs
(list texinfo))
(propagated-inputs