gnu: libtommath: Honor the #:tests? flag.
* gnu/packages/multiprecision.scm (libtommath)[arguments]: Adjust custom 'check phase to honor the #:tests? flag.
This commit is contained in:
parent
b428b49d8f
commit
cf388642ce
1 changed files with 4 additions and 3 deletions
|
@ -470,9 +470,10 @@ number generators, public key cryptography and a plethora of other routines.")
|
||||||
"/lib/libtommath.a"))
|
"/lib/libtommath.a"))
|
||||||
#t))
|
#t))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key test-target make-flags #:allow-other-keys)
|
(lambda* (#:key tests? test-target make-flags #:allow-other-keys)
|
||||||
(apply invoke "make" test-target make-flags)
|
(when tests?
|
||||||
(invoke "sh" "test")))
|
(apply invoke "make" test-target make-flags)
|
||||||
|
(invoke "sh" "test"))))
|
||||||
(add-after 'install 'install-static-library
|
(add-after 'install 'install-static-library
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(invoke "make" "-f" "makefile.unix" "install"
|
(invoke "make" "-f" "makefile.unix" "install"
|
||||||
|
|
Reference in a new issue