guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/04: gnu: git: Install Info manual.


From: guix-commits
Subject: 01/04: gnu: git: Install Info manual.
Date: Mon, 11 Jul 2022 17:43:48 -0400 (EDT)

apteryx pushed a commit to branch core-updates
in repository guix.

commit 245ddc255a51c576ddad8fab6222cde1c3da21ab
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Jul 11 17:24:34 2022 -0400

    gnu: git: Install Info manual.
    
    Partially fixes <https://issues.guix.gnu.org/55821>.
    
    * gnu/packages/version-control.scm (git)[native-inputs]: Add docbook2x,
    libxslt and texinfo.
    [phases]{install-info-manual}: New phase.
---
 gnu/packages/version-control.scm | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 67fec6ff46..4202d3fd3e 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -251,9 +251,12 @@ Python 3.3 and later, rather than on Python 2.")
             "0vsfjs6xg228yhqcpaiwkpncaqcghnm0pwdxmgibz0rj6d8ydrmi"))))
       ;; For subtree documentation.
       ("asciidoc" ,asciidoc)
+      ("docbook2x" ,docbook2x)
       ("docbook-xsl" ,docbook-xsl)
-      ("xmlto" ,xmlto)
-      ("pkg-config" ,pkg-config)))
+      ("libxslt" ,libxslt)
+      ("pkg-config" ,pkg-config)
+      ("texinfo" ,texinfo)
+      ("xmlto" ,xmlto)))
    (inputs
     `(("curl" ,curl)
       ("expat" ,expat)
@@ -430,6 +433,16 @@ Python 3.3 and later, rather than on Python 2.")
                           "t/t9167-git-svn-cmd-branch-subproject.sh"
                           "t/t9141-git-svn-multiple-branches.sh"))
               #t)))
+        (add-after 'install 'install-info-manual
+          (lambda* (#:key parallel-build? #:allow-other-keys)
+            (define job-count (if parallel-build?
+                                  (number->string (parallel-job-count))
+                                  "1"))
+            (invoke "make" "-C" "Documentation" "install-info"
+                    "-j" job-count
+                    ;; The Makefile refer to 'docbook2x-texi', but our binary
+                    ;; is named 'docbook2texi'.
+                    "DOCBOOK2X_TEXI=docbook2texi" "PERL_PATH=perl")))
         (add-after 'install 'install-shell-completion
           (lambda* (#:key outputs #:allow-other-keys)
             (let* ((out         (assoc-ref outputs "out"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]