aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorZheng Junjie <zhengjunjie@iscas.ac.cn>2024-07-14 17:23:22 +0800
committerZheng Junjie <zhengjunjie@iscas.ac.cn>2024-07-18 10:45:36 +0800
commit7db116a322d3e54290eb853beb48e671fe4a888c (patch)
tree674bd4f19be3e1da12cc210db95534e2923ece39 /gnu/packages
parent12303853c7ace15a1776742f5bf4b5a3fbf23211 (diff)
downloadguix-7db116a322d3e54290eb853beb48e671fe4a888c.tar.gz
guix-7db116a322d3e54290eb853beb48e671fe4a888c.zip
gnu: Add kimageformats-5.
* gnu/packages/kde-frameworks.scm (kimageformats-5): New variable. Change-Id: I151594513fde3f38d6f4858f938128878e1cacee
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/kde-frameworks.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 4da65a94d0..386d8c7903 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -2696,6 +2696,40 @@ but may be a runtime requirement for Qt-based software to support certain image
formats.")
(license license:lgpl2.1+)))
+(define-public kimageformats-5
+ (package
+ (inherit kimageformats)
+ (name "kimageformats")
+ (version "5.116.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://kde/stable/frameworks/"
+ (version-major+minor version) "/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32
+ "174g32s3m7irzv2h3lk7bmp3yfc7zrmp7lmp02n3m5ppbv6rn4bw"))))
+ (native-inputs
+ (list extra-cmake-modules pkg-config))
+ (inputs
+ (list karchive-5 ; for Krita and OpenRaster images
+ openexr-2 ; for OpenEXR high dynamic-range images
+ qtbase-5
+ qtimageformats-5))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'check-setup
+ (lambda _
+ ;; make Qt render "offscreen", required for tests
+ (setenv "QT_QPA_PLATFORM" "offscreen"))))
+ #:configure-flags #~(list (string-append "-DCMAKE_CXX_FLAGS=-I"
+ (assoc-ref %build-inputs
+ "ilmbase")
+ "/include/OpenEXR"))))))
+
(define-public kjobwidgets
(package
(name "kjobwidgets")