Subject: [PATCH v2 15/30] gnu: icu4c: Autoload unless used by Guix.

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

See first commit in the series for the procedure.

This helps with, but is not sufficient for, avoiding loading the Java-related
modules when only the guix package is required.
---
 gnu/packages/icu4c.scm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/icu4c.scm b/gnu/packages/icu4c.scm
index 94a72fac15..ec4fa8354e 100644
--- a/gnu/packages/icu4c.scm
+++ b/gnu/packages/icu4c.scm
@@ -27,9 +27,10 @@
 
 (define-module (gnu packages icu4c)
   #:use-module (gnu packages)
-  #:use-module (gnu packages java)
-  #:use-module (gnu packages perl)
-  #:use-module (gnu packages python)
+  #:autoload (gnu packages java)
+  (java-junit java-junitparams java-hamcrest-core)
+  #:use-module (gnu packages perl) ; required by "guix build -d guix"
+  #:use-module (gnu packages python) ; required by "guix build -d guix"
   #:use-module (guix gexp)
   #:use-module (guix licenses)
   #:use-module (guix packages)
-- 
2.37.2