me
/
guix
Archived
1
0
Fork 0

gnu: libtommath: Honor the #:tests? flag.

* gnu/packages/multiprecision.scm (libtommath)[arguments]: Adjust custom
'check phase to honor the #:tests? flag.
master
Efraim Flashner 2023-06-01 15:45:30 +03:00
parent b428b49d8f
commit cf388642ce
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 4 additions and 3 deletions

View File

@ -470,9 +470,10 @@ number generators, public key cryptography and a plethora of other routines.")
"/lib/libtommath.a"))
#t))
(replace 'check
(lambda* (#:key test-target make-flags #:allow-other-keys)
(apply invoke "make" test-target make-flags)
(invoke "sh" "test")))
(lambda* (#:key tests? test-target make-flags #:allow-other-keys)
(when tests?
(apply invoke "make" test-target make-flags)
(invoke "sh" "test"))))
(add-after 'install 'install-static-library
(lambda* (#:key outputs #:allow-other-keys)
(invoke "make" "-f" "makefile.unix" "install"