gnu: kcmutils: Use G-expressions.
* gnu/packages/kde-frameworks.scm (kcmutils)[arguments]: Rewrite as G-expressions. Signed-off-by: 宋文武 <iyzsong@member.fsf.org>master
parent
2a27e67db3
commit
039b976c39
|
@ -2217,21 +2217,27 @@ using the XBEL format.")
|
|||
(native-inputs
|
||||
(list extra-cmake-modules))
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch
|
||||
(lambda _
|
||||
(substitute* "src/kpluginselector.cpp"
|
||||
;; make QDirIterator follow symlinks
|
||||
(("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
|
||||
(string-append a " | QDirIterator::FollowSymlinks" b)))
|
||||
(substitute* "src/kcmoduleloader.cpp"
|
||||
;; print plugin name when loading fails
|
||||
(("^\\s*(qWarning\\(\\) << \"Error loading) (plugin:\")( << loader\\.errorString\\(\\);)" _ a b c)
|
||||
(string-append a " KCM plugin\" << mod.service()->library() << \":\"" c)))))
|
||||
(add-before 'check 'check-setup
|
||||
(lambda _
|
||||
(setenv "QT_QPA_PLATFORM" "offscreen"))))))
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch
|
||||
(lambda _
|
||||
(substitute* "src/kpluginselector.cpp"
|
||||
;; make QDirIterator follow symlinks
|
||||
(("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)"
|
||||
_ a b)
|
||||
(string-append a
|
||||
" | QDirIterator::FollowSymlinks" b)))
|
||||
(substitute* "src/kcmoduleloader.cpp"
|
||||
;; print plugin name when loading fails
|
||||
(("^\\s*(qWarning\\(\\) << \"Error loading) (plugin:\")( << loader\\.errorString\\(\\);)"
|
||||
_ a b c)
|
||||
(string-append a
|
||||
" KCM plugin\" << mod.service()->library() << \":\""
|
||||
c)))))
|
||||
(add-before 'check 'check-setup
|
||||
(lambda _
|
||||
(setenv "QT_QPA_PLATFORM" "offscreen"))))))
|
||||
(inputs
|
||||
(list kauth
|
||||
kcodecs
|
||||
|
|
Reference in New Issue