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

* gnu/packages/emacs-xyz.scm (emacs-corfu)[native-inputs]: Add texinfo.
[arguments]: Migrate to gexps, generate info from README.org.
This commit is contained in:
Andrew Tropin 2023-02-28 06:27:52 +04:00
parent ff5fbcc19b
commit 60e03bb5e7
No known key found for this signature in database
GPG key ID: 2208D20958C1DEB0

View file

@ -3798,8 +3798,9 @@ of bibliographic references.")
(base32 "1xqg796844wk6kvn3xw4bqlxn9ra6jlwk7rsc5gy4j77l0gwl441")))) (base32 "1xqg796844wk6kvn3xw4bqlxn9ra6jlwk7rsc5gy4j77l0gwl441"))))
(build-system emacs-build-system) (build-system emacs-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
#~(modify-phases %standard-phases
;; Move the extensions source files to the top level, which is included ;; Move the extensions source files to the top level, which is included
;; in the EMACSLOADPATH. ;; in the EMACSLOADPATH.
(add-after 'unpack 'move-source-files (add-after 'unpack 'move-source-files
@ -3807,7 +3808,17 @@ of bibliographic references.")
(let ((el-files (find-files "./extensions" ".*\\.el$"))) (let ((el-files (find-files "./extensions" ".*\\.el$")))
(for-each (lambda (f) (for-each (lambda (f)
(rename-file f (basename f))) (rename-file f (basename f)))
el-files))))))) 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 "corfu.info"
(string-append #$output "/share/info")))))))
(native-inputs (list texinfo))
(propagated-inputs (propagated-inputs
(list emacs-compat)) (list emacs-compat))
(home-page "https://github.com/minad/corfu") (home-page "https://github.com/minad/corfu")