Archived
1
0
Fork 0

gnu: libavif: Update to 0.11.1.

libavif commit 97306bf64266cf9571dd141f3d04492534a9deea removes
JSON-based tests along with cJSON.

Aditionally, googletest is now required to build libavif. The test target
has since changed and can be called directly from cmake, no longer being
necessary to replace 'check target.

* gnu/packages/image.scm (libavif): Update to 0.11.1.
[arguments]: Adjust configure-flags, remove 'check phase replacement.
[native-inputs]: Add googletest.
[license]: Remove expat.

Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Bruno Victal 2023-01-15 01:45:43 +00:00 committed by Christopher Baines
parent 8553148dfb
commit e2deccf6e4
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -2153,7 +2153,7 @@ This package can be used to create @code{favicon.ico} files for web sites.")
(define-public libavif (define-public libavif
(package (package
(name "libavif") (name "libavif")
(version "0.9.2") (version "0.11.1")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@ -2162,7 +2162,7 @@ This package can be used to create @code{favicon.ico} files for web sites.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1yxmgjlxm1srm98zyj79bj8r8vmg67daqnq0ggcvxknq54plkznk")))) "02zmb62g0yx6rfz4w1isyzfrckv5i7dzyz26rp2mspbx9w6v8j4r"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
@ -2171,13 +2171,10 @@ This package can be used to create @code{favicon.ico} files for web sites.")
#$@(if (this-package-input "rav1e") #$@(if (this-package-input "rav1e")
'("-DAVIF_CODEC_RAV1E=ON") '("-DAVIF_CODEC_RAV1E=ON")
'()) '())
"-DAVIF_BUILD_TESTS=ON" "-DAVIF_BUILD_APPS=ON") "-DAVIF_BUILD_TESTS=ON" "-DAVIF_ENABLE_GTEST=ON"
"-DAVIF_BUILD_APPS=ON")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "./aviftest" "../source/tests/data"))))
(add-after 'install 'install-readme (add-after 'install 'install-readme
(lambda _ (lambda _
(let ((doc (string-append #$output "/share/doc/libavif-" #$version))) (let ((doc (string-append #$output "/share/doc/libavif-" #$version)))
@ -2196,6 +2193,7 @@ This package can be used to create @code{favicon.ico} files for web sites.")
(chmod new #o555)) (chmod new #o555))
(list avifenc avifdec) (list avifenc avifdec)
(list avifenc* avifdec*)))))))) (list avifenc* avifdec*))))))))
(native-inputs (list googletest))
(inputs (inputs
(append (append
(if (member (%current-system) (package-transitive-supported-systems rav1e)) (if (member (%current-system) (package-transitive-supported-systems rav1e))
@ -2208,8 +2206,7 @@ This package can be used to create @code{favicon.ico} files for web sites.")
File Format}. It can encode and decode all YUV formats and bit depths supported File Format}. It can encode and decode all YUV formats and bit depths supported
by AOM, including with alpha.") by AOM, including with alpha.")
(home-page "https://github.com/AOMediaCodec/libavif") (home-page "https://github.com/AOMediaCodec/libavif")
(license (list license:bsd-2 ; libavif itself (license (list license:bsd-2))))
license:expat)))) ; cJSON in the test suite
(define-public libheif (define-public libheif
(package (package