Archived
1
0
Fork 0

gnu: kimageformats: Use G-expressions.

* gnu/packages/kde-frameworks.scm (kimageformats)[arguments]:
Rewrite as G-expressions.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
This commit is contained in:
Zheng Junjie 2023-07-12 23:10:21 +08:00 committed by 宋文武
parent f8c3938755
commit 78a38c5e54
No known key found for this signature in database
GPG key ID: D415BF253B515976

View file

@ -1811,8 +1811,9 @@ by applications to write metadata.")
openexr-2 ; for OpenEXR high dynamic-range images openexr-2 ; for OpenEXR high dynamic-range images
qtbase-5)) qtbase-5))
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
#~(modify-phases %standard-phases
(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
@ -1823,16 +1824,17 @@ by applications to write metadata.")
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(setenv "HOME" (getcwd)) (setenv "HOME"
(getcwd))
;; FIXME: I guess kde's qt no this fail. ;; FIXME: I guess kde's qt no this fail.
;; see https://invent.kde.org/frameworks/kimageformats/-/jobs/1046283 ;; see https://invent.kde.org/frameworks/kimageformats/-/jobs/1046283
(invoke "ctest" "-E" "kimageformats-read-psd"))))) (invoke "ctest" "-E" "kimageformats-read-psd")))))
;; FIXME: The header files of ilmbase (propagated by openexr) are not ;; FIXME: The header files of ilmbase (propagated by openexr) are not
;; found when included by the header files of openexr, and an explicit ;; found when included by the header files of openexr, and an explicit
;; flag needs to be set. ;; flag needs to be set.
#:configure-flags #:configure-flags #~(list (string-append "-DCMAKE_CXX_FLAGS=-I"
(list (string-append "-DCMAKE_CXX_FLAGS=-I" (assoc-ref %build-inputs
(assoc-ref %build-inputs "ilmbase") "ilmbase")
"/include/OpenEXR")))) "/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")