gnu: libavif: Honor #:tests? flag.

* gnu/packages/image.scm (libavif)[arguments]: Adjust custom 'check
phase to honor the #:tests? flag.
This commit is contained in:
Efraim Flashner 2023-01-03 21:57:35 +02:00
parent 6f53d04c32
commit 9c098979a2
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -8,7 +8,7 @@
;;; Copyright © 2015 Amirouche Boubekki <amirouche@hypermove.net>
;;; Copyright © 2014, 2017 John Darrington <jmd@gnu.org>
;;; Copyright © 2016, 2017, 2018, 2020 Leo Famulari <leo@famulari.name>
;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016-2023 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 20162022 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2016, 2017, 2020, 2021, 2022 Arun Isaac <arunisaac@systemreboot.net>
@ -2181,8 +2181,9 @@ (define-public libavif
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "./aviftest" "../source/tests/data")))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "./aviftest" "../source/tests/data"))))
(add-after 'install 'install-readme
(lambda _
(let ((doc (string-append #$output "/share/doc/libavif-" #$version)))