diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2025-07-08 11:01:21 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2025-07-16 23:50:51 +0200 |
commit | 8897360fb367908c6972559b075f7c10810ae69b (patch) | |
tree | 13dace66696edcdf9b79ef599b552ff1ee5432bb | |
parent | 9cd3b961e4e530b4361ef25132fc8ee9756aab4b (diff) |
build-system: guile: Make #:documentation-file-regexp configurable.
* guix/build/guile-build-system.scm
(install-documentation): Unset documentation-file-regexp keyword
default.
(%documentation-file-regexp): Move variable to...
* guix/build-system/guile.scm
(%documentation-file-regexp): New variable.
(guile-build, guile-cross-build): Use it.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r-- | guix/build-system/guile.scm | 8 | ||||
-rw-r--r-- | guix/build/guile-build-system.scm | 8 |
2 files changed, 9 insertions, 7 deletions
diff --git a/guix/build-system/guile.scm b/guix/build-system/guile.scm index df6988a1b7..e2ba720e9c 100644 --- a/guix/build-system/guile.scm +++ b/guix/build-system/guile.scm @@ -33,6 +33,10 @@ ;; Regexp to match Scheme files. "\\.(scm|sls)$") +(define %documentation-file-regexp + ;; Regexp to match README files and the likes. + "^(README.*|.*\\.html|.*\\.org|.*\\.md)$") + (define %guile-build-system-modules ;; Build-side modules imported by default. `((guix build guile-build-system) @@ -85,6 +89,7 @@ (source-directory ".") not-compiled-file-regexp (scheme-file-regexp %scheme-file-regexp) + (documentation-file-regexp %documentation-file-regexp) ;; FIXME: Turn on parallel building of Guile modules by ;; default after the non-determinism issues in the Guile byte ;; compiler are resolved (see bug #20272). @@ -104,6 +109,7 @@ #:source #+source #:source-directory #$source-directory #:scheme-file-regexp #$scheme-file-regexp + #:documentation-file-regexp #$documentation-file-regexp #:not-compiled-file-regexp #$not-compiled-file-regexp #:parallel-build? #$parallel-build? #:compile-flags #$compile-flags @@ -136,6 +142,7 @@ (phases '%standard-phases) (source-directory ".") (scheme-file-regexp %scheme-file-regexp) + (documentation-file-regexp %documentation-file-regexp) not-compiled-file-regexp ;; FIXME: Turn on parallel building of Guile ;; modules by default after the non-determinism @@ -169,6 +176,7 @@ #:source-directory #$source-directory #:scheme-file-regexp #$scheme-file-regexp #:not-compiled-file-regexp #$not-compiled-file-regexp + #:documentation-file-regexp #$documentation-file-regexp #:parallel-build? #$parallel-build? #:compile-flags #$compile-flags #:inputs %build-target-inputs diff --git a/guix/build/guile-build-system.scm b/guix/build/guile-build-system.scm index d2198b6715..8934278a97 100644 --- a/guix/build/guile-build-system.scm +++ b/guix/build/guile-build-system.scm @@ -66,10 +66,6 @@ determined." ;; Regexp to match Scheme files. "\\.(scm|sls)$") -(define %documentation-file-regexp - ;; Regexp to match README files and the likes. - "^(README.*|.*\\.html|.*\\.org|.*\\.md)$") - (define* (set-locale-path #:key inputs native-inputs #:allow-other-keys) "Set 'GUIX_LOCPATH'." @@ -212,9 +208,7 @@ installed; this is useful for files that are meant to be included." #:max-processes (if parallel-build? (parallel-job-count) 1) #:report-progress report-build-progress)))) -(define* (install-documentation #:key outputs - (documentation-file-regexp - %documentation-file-regexp) +(define* (install-documentation #:key outputs documentation-file-regexp #:allow-other-keys) "Install files that match DOCUMENTATION-FILE-REGEXP." (let* ((out (assoc-ref outputs "out")) |