gnu: subversion: Support running the tests in parallel.

This drops the time to build the package on my machine from ~14 minutes to ~5
minutes.

* gnu/packages/version-control.scm (subversion)[arguments]: Add set-PARALLEL
phase to set the PARALLEL environment variable.
This commit is contained in:
Christopher Baines 2020-02-06 08:36:12 +00:00
parent 41884bfa5b
commit 59796dfd63
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -1448,6 +1448,10 @@ (define-public subversion
(substitute* "subversion/tests/libsvn_repos/repos-test.c"
(("#!/bin/sh") (string-append "#!" (which "sh"))))
#t))
(add-before 'check 'set-PARALLEL
(lambda _
(setenv "PARALLEL" (number->string (parallel-job-count)))
#t))
(add-after 'install 'install-perl-bindings
(lambda* (#:key outputs #:allow-other-keys)
;; Follow the instructions from 'subversion/bindings/swig/INSTALL'.