From 8adbef898ef80851753ba9d64b31eed727bb34de Mon Sep 17 00:00:00 2001 From: Andrew Tropin Date: Wed, 31 Aug 2022 12:16:10 +0300 Subject: [PATCH v2 2/2] gnu: emacs-xyz: Add documentation-files example usage. * gnu/packages/emacs-xyz.scm (emacs-geiser, emacs-geiser-guile, emacs-magit, emacs-dash, emacs-consult, emacs-tempel): Add documentation-files example usage. --- gnu/packages/emacs-xyz.scm | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 90ee485f1e..df0570a4a1 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -262,7 +262,8 @@ (define-public emacs-geiser (base32 "1pm33zlcq84h61xhplmrlicckrax1pv39zrmv8ryzhi9mqrb6bdg")))) (build-system emacs-build-system) (arguments - '(#:phases + '(#:documentation-files (list "doc/geiser.texi") + #:phases (modify-phases %standard-phases ;; Move the source files to the top level, which is included in ;; the EMACSLOADPATH. @@ -271,12 +272,7 @@ (define-public emacs-geiser (let ((el-files (find-files "./elisp" ".*\\.el$"))) (for-each (lambda (f) (rename-file f (basename f))) - el-files)))) - (add-before 'install 'make-info - (lambda _ - (with-directory-excursion "doc" - (invoke "makeinfo" "--no-split" - "-o" "geiser.info" "geiser.texi"))))))) + el-files))))))) (native-inputs (list texinfo)) (home-page "https://www.nongnu.org/geiser/") @@ -311,6 +307,7 @@ (define-public emacs-geiser-guile (arguments (list #:include #~(cons "^src/" %default-include) + #:documentation-files #~(list "geiser-guile.texi") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-geiser-guile-binary @@ -978,17 +975,11 @@ (define-public emacs-magit #:exclude #~(cons* "magit-libgit.el" "magit-libgit-pkg.el" %default-exclude) + #:documentation-files #~(list "Documentation/magit.texi" + "Documentation/magit-section.texi") #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'build-info-manual - (lambda _ - (invoke "make" "info") - ;; Copy info files to the lisp directory, which acts as - ;; the root of the project for the emacs-build-system. - (for-each (lambda (f) - (install-file f "lisp")) - (find-files "Documentation" "\\.info$")))) - (add-after 'build-info-manual 'set-magit-version + (add-after 'unpack 'set-magit-version (lambda _ (make-file-writable "lisp/magit.el") (emacs-substitute-variables "lisp/magit.el" @@ -3909,6 +3900,7 @@ (define-public emacs-dash (build-system emacs-build-system) (arguments (list #:tests? #t + #:documentation-files #~(list "dash.texi") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'disable-byte-compile-error-on-warn @@ -9188,6 +9180,7 @@ (define-public emacs-consult (sha256 (base32 "0sy4rn1vjk1g50r8z14hzj8lds6s7ij2zkjqfi6mfash5il75wnq")) (file-name (git-file-name name version)))) + (arguments (list #:documentation-files #~(list "README.org"))) (build-system emacs-build-system) (propagated-inputs (list emacs-compat)) (home-page "https://github.com/minad/consult") @@ -14145,6 +14138,7 @@ (define-public emacs-tempel (base32 "0iyh6wxchqg83gpwvg6lz4qy4c2qh25iqjpjm56kif52346a99d2")))) (build-system emacs-build-system) + (arguments (list #:documentation-files #~(list "README.org"))) (home-page "https://github.com/minad/tempel") (synopsis "Simple templates for Emacs") (description -- 2.37.2