Subject: [bug#54539] [PATCH v2 29/30] gnu: documentation: Autoload unless used by Guix.

From: Maxime Devos <[email-masked]>
Date: Sat, 3 Sep 2022 18:43:31 +0200

See first commit in the series for the procedure.
---
 gnu/packages/documentation.scm | 43 +++++++++++++++++-----------------
 1 file changed, 22 insertions(+), 21 deletions(-)

diff --git a/gnu/packages/documentation.scm b/gnu/packages/documentation.scm
index 585a295fb4..c46db10a02 100644
--- a/gnu/packages/documentation.scm
+++ b/gnu/packages/documentation.scm
@@ -40,27 +40,28 @@ (define-module (gnu packages documentation)
   #:use-module (guix build-system qt)
   #:use-module (guix deprecation)
   #:use-module (gnu packages)
-  #:use-module (gnu packages autotools)
-  #:use-module (gnu packages backup)
-  #:use-module (gnu packages base)
-  #:use-module (gnu packages bash)
-  #:use-module (gnu packages check)
-  #:use-module (gnu packages python)
-  #:use-module (gnu packages python-xyz)
-  #:use-module (gnu packages bison)
-  #:use-module (gnu packages kde-frameworks)
-  #:use-module (gnu packages docbook)
-  #:use-module (gnu packages flex)
-  #:use-module (gnu packages graphviz)
-  #:use-module (gnu packages gettext)
-  #:use-module (gnu packages glib)
-  #:use-module (gnu packages perl)
-  #:use-module (gnu packages pkg-config)
-  #:use-module (gnu packages qt)
-  #:use-module (gnu packages sqlite)
-  #:use-module (gnu packages sphinx)
-  #:use-module (gnu packages xml)
-  #:use-module (gnu packages xorg))
+  #:autoload (gnu packages autotools) (autoconf)
+  #:autoload (gnu packages backup) (libarchive)
+  #:use-module (gnu packages bash) ; required by "guix build -d guix"
+  #:autoload (gnu packages check) (python-pytest python-pytest-asyncio)
+  #:use-module (gnu packages python) ; required by "guix build -d guix"
+  #:autoload (gnu packages python-xyz)
+  (python-docutils python-ipython python-jinja2 python-matplotlib python-numpy)
+  #:use-module (gnu packages bison) ; required by "guix build -d guix"
+  #:autoload (gnu packages kde-frameworks) (extra-cmake-modules)
+  #:autoload (gnu packages docbook) (docbook-xml docbook-xml-4.2 docbook-xsl)
+  #:use-module (gnu packages flex) ; required by "guix build -d guix"
+  #:autoload (gnu packages gettext) (gettext-minimal)
+  #:autoload (gnu packages glib) (intltool)
+  #:autoload (gnu packages perl) (perl)
+  #:autoload (gnu packages pkg-config) (pkg-config)
+  #:autoload (gnu packages qt)
+  (qtbase-5 qtdeclarative-5 qtquickcontrols-5 qtwebchannel-5 qtwebengine-5
+            qtx11extras)
+  #:autoload (gnu packages sqlite) (sqlite)
+  #:autoload (gnu packages sphinx) (python-sphinx)
+  #:use-module (gnu packages xml) ; required by "guix build -d guix"
+  #:autoload (gnu packages xorg) (xcb-util-keysyms))
 
 (define-public latex2html
   (package
-- 
2.37.2