Subject: [PATCH v2 05/30] gnu: perl: Autoload unless used by Guix.

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

See first commit in the series for the procedure.
---
 gnu/packages/perl.scm | 68 ++++++++++++++++++++++++++-----------------
 1 file changed, 41 insertions(+), 27 deletions(-)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 42c7d18c9d..cd80ec8999 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -59,33 +59,47 @@ (define-module (gnu packages perl)
   #:use-module (guix utils)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system perl)
-  #:use-module (gnu packages base)
-  #:use-module (gnu packages bash)
-  #:use-module (gnu packages compression)
-  #:use-module (gnu packages databases)
-  #:use-module (gnu packages fontutils)
-  #:use-module (gnu packages freedesktop)
-  #:use-module (gnu packages gcc)
-  #:use-module (gnu packages gd)
-  #:use-module (gnu packages gl)
-  #:use-module (gnu packages gtk)
-  #:use-module (gnu packages hurd)
-  #:use-module (gnu packages image)
-  #:use-module (gnu packages less)
-  #:use-module (gnu packages ncurses)
-  #:use-module (gnu packages perl-check)
-  #:use-module (gnu packages perl-compression)
-  #:use-module (gnu packages perl-maths)
-  #:use-module (gnu packages perl-web)
-  #:use-module (gnu packages pkg-config)
-  #:use-module (gnu packages python)
-  #:use-module (gnu packages readline)
-  #:use-module (gnu packages sdl)
-  #:use-module (gnu packages textutils)
-  #:use-module (gnu packages video)
-  #:use-module (gnu packages web)
-  #:use-module (gnu packages xml)
-  #:use-module (gnu packages xorg))
+  #:use-module (gnu packages base) ; required by "guix build guix"
+  #:autoload (gnu packages bash) (bash-minimal)
+  #:autoload (gnu packages compression) (zlib)
+  #:autoload (gnu packages databases) (perl-dbd-mysql)
+  #:autoload (gnu packages fontutils) (fontconfig freetype)
+  #:autoload (gnu packages freedesktop) (perl-file-mimeinfo)
+  #:autoload (gnu packages gcc) (gcc-7)
+  #:autoload (gnu packages gd) (perl-gd)
+  #:autoload (gnu packages gl) (freeglut mesa)
+  #:autoload (gnu packages gtk) (pango)
+  #:autoload (gnu packages hurd) ()
+  #:autoload (gnu packages image) (libjpeg-turbo libpng libtiff)
+  #:autoload (gnu packages less) (less)
+  #:autoload (gnu packages ncurses) (ncurses)
+  #:autoload (gnu packages perl-check)
+  (perl-mock-config
+   perl-test-base perl-test-cleannamespaces perl-test-deep perl-test-differences
+   perl-test-distribution perl-test-exception perl-test-failwarnings
+   perl-test-fatal perl-test-file-sharedir-dist perl-test-filename
+   perl-test-harness perl-test-leaktrace perl-test-memory-cycle
+   perl-test-mockobject perl-test-mocktime perl-test-more-utf8 perl-test-most
+   perl-test-needs perl-test-nowarnings perl-test-number-delta perl-test-object
+   perl-test-output perl-test-pod perl-test-pod-coverage perl-test-requires
+   perl-test-sharedfork perl-test-script perl-test-simple perl-test-subcalls
+   perl-test-portability-files perl-test-trap perl-test-warn perl-test-warnings
+   perl-test-without-module perl-test-yaml perl-test2-plugin-nowarnings
+   perl-test2-suite)
+  #:autoload (gnu packages perl-compression)
+  (perl-archive-extract perl-archive-zip)
+  #:autoload (gnu packages perl-maths) (perl-math-cephes perl-math-matrixreal)
+  #:autoload (gnu packages perl-web) (perl-mojolicious)
+  #:autoload (gnu packages pkg-config) (pkg-config)
+  #:autoload (gnu packages python) (python)
+  #:autoload (gnu packages readline) (readline)
+  #:autoload (gnu packages sdl)
+  (sdl sdl-gfx sdl-image sdl-mixer sdl-net sdl-pango sdl-ttf sdl-union)
+  #:autoload (gnu packages textutils) (libconfig)
+  #:autoload (gnu packages video) (libsmpeg)
+  #:autoload (gnu packages web) (perl-html-parser perl-http-lite perl-uri)
+  #:autoload (gnu packages xml) (libxslt)
+  #:autoload (gnu packages xorg) (libxi libxmu))
 
 ;;;
 ;;; Please: Try to add new module packages in alphabetic order.
-- 
2.37.2