gnu: kimageformats: Update to 6.3.0.

* gnu/packages/kde-frameworks.scm (kimageformats): Update to 6.3.0.
[inputs]: Remove openexr-2 and qtbase-5; add openexr, qtbase, libjxl, libraw,
libavif, qtimageformats, imath, and zlib.
[arguments]: Stop replace check phase; Remove configure-flags.

Change-Id: Ia2258792a5a867ff4c33843c1a1a91cc496f9ec7
This commit is contained in:
Zheng Junjie 2024-07-06 00:51:10 +08:00
parent ba33f53c48
commit a3a8c9dc71
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -1879,7 +1879,7 @@ by applications to write metadata.")
(define-public kimageformats (define-public kimageformats
(package (package
(name "kimageformats") (name "kimageformats")
(version "5.114.0") (version "6.3.0")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
@ -1888,14 +1888,22 @@ by applications to write metadata.")
name "-" version ".tar.xz")) name "-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"1nfzpgnrbwncx9zp9cwa169jlfv7i85p00a07d4jc5hrdyvvkn0w")))) "040j1jr7v4bc0zh4lf7bn9sj4a7g3c8icljagjpm7v9mpmqhgm0f"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(native-inputs (native-inputs
(list extra-cmake-modules pkg-config)) (list extra-cmake-modules pkg-config))
(inputs (inputs
(list karchive ; for Krita and OpenRaster images (list karchive ; for Krita and OpenRaster images
openexr-2 ; for OpenEXR high dynamic-range images openexr ; for OpenEXR high dynamic-range images
qtbase-5)) qtbase
libjxl
libraw
libavif
;; see https://bugs.kde.org/show_bug.cgi?id=468288,
;; kimageformats-read-psd test need QTiffPlugin
qtimageformats
;; FIXME: make openexr propagate two package
imath zlib))
(arguments (arguments
(list (list
#:phases #:phases
@ -1903,25 +1911,7 @@ by applications to write metadata.")
(add-before 'check 'check-setup (add-before 'check 'check-setup
(lambda _ (lambda _
;; make Qt render "offscreen", required for tests ;; make Qt render "offscreen", required for tests
(setenv "QT_QPA_PLATFORM" "offscreen") (setenv "QT_QPA_PLATFORM" "offscreen"))))))
(setenv "QT_PLUGIN_PATH"
(string-append (getcwd) "/bin:"
(getenv "QT_PLUGIN_PATH")))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "HOME"
(getcwd))
;; FIXME: I guess kde's qt no this fail.
;; see https://invent.kde.org/frameworks/kimageformats/-/jobs/1046283
(invoke "ctest" "-E" "kimageformats-read-psd")))))
;; FIXME: The header files of ilmbase (propagated by openexr) are not
;; found when included by the header files of openexr, and an explicit
;; flag needs to be set.
#:configure-flags #~(list (string-append "-DCMAKE_CXX_FLAGS=-I"
(assoc-ref %build-inputs
"ilmbase")
"/include/OpenEXR"))))
(home-page "https://community.kde.org/Frameworks") (home-page "https://community.kde.org/Frameworks")
(synopsis "Plugins to allow QImage to support extra file formats") (synopsis "Plugins to allow QImage to support extra file formats")
(description "This framework provides additional image format plugins for (description "This framework provides additional image format plugins for