gnu: java-commons-collections4: Remove references to %build-inputs.

* gnu/packages/java.scm (java-commons-collections4)[arguments]: Use a gexp
to remove references to %build-inputs.
This commit is contained in:
Julien Lepiller 2021-12-04 21:48:45 +01:00
parent 035fec27fc
commit ba5cb6456d
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -5991,15 +5991,15 @@ targeting the JVM.")
(arguments (arguments
`(#:test-target "test" `(#:test-target "test"
#:make-flags #:make-flags
(let ((hamcrest (assoc-ref %build-inputs "java-hamcrest-core")) ,#~(let ((hamcrest #$(this-package-native-input "java-hamcrest-core"))
(junit (assoc-ref %build-inputs "java-junit")) (junit #$(this-package-native-input "java-junit"))
(easymock (assoc-ref %build-inputs "java-easymock"))) (easymock #$(this-package-native-input "java-easymock")))
(list (string-append "-Djunit.jar=" (list (string-append "-Djunit.jar="
(car (find-files junit "jar$"))) (car (find-files junit "jar$")))
(string-append "-Dhamcrest.jar=" (string-append "-Dhamcrest.jar="
(car (find-files hamcrest "jar$"))) (car (find-files hamcrest "jar$")))
(string-append "-Deasymock.jar=" easymock (string-append "-Deasymock.jar=" easymock
"/share/java/easymock.jar"))) "/share/java/easymock.jar")))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'install (replace 'install