gnu: Add kconfigwidgets-5.

* gnu/packages/kde-frameworks.scm (kconfigwidgets-5): New variable.

Change-Id: I0b209ffc5210eae5aa3e2df7f34b038c614a561d
This commit is contained in:
Zheng Junjie 2024-07-08 13:52:50 +08:00
parent fc3365fff0
commit 7d1ed997cc
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -3055,6 +3055,46 @@ (define-public kconfigwidgets
;; dual licensed
(license (list license:gpl2+ license:lgpl2.1+))))
(define-public kconfigwidgets-5
(package
(inherit kconfigwidgets)
(name "kconfigwidgets")
(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
"1f65ayyyadiajf7xgf7369rly2yzigh6gqlb0nkgg8cp2bq9fmp4"))))
(propagated-inputs
(list kauth-5 kcodecs-5 kconfig-5 kwidgetsaddons-5))
(native-inputs
(list extra-cmake-modules kdoctools-5 qttools-5))
(inputs
(list kcoreaddons-5
kguiaddons-5
;; todo: PythonModuleGeneration
ki18n-5))
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch
(lambda _
(substitute* "src/khelpclient.cpp"
;; make QDirIterator follow symlinks
(("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
(string-append a " | QDirIterator::FollowSymlinks" b)))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "HOME"
(getcwd))
(invoke "ctest" "-E" "kstandardactiontest")))))))))
(define-public kdeclarative
(package
(name "kdeclarative")