gnu: ktexteditor: Symlink some files referred to by different names.

* gnu/package/kde-frameworks.scm (ktexteditor)[arguments]
  <#:phases>'add-symlinks': New phase.
master
Hartmut Goebel 2017-09-26 20:23:42 +02:00
parent d3726f0587
commit b87633fc0f
No known key found for this signature in database
GPG Key ID: 634A8DFFD3F631DF
1 changed files with 10 additions and 1 deletions

View File

@ -2849,7 +2849,16 @@ types or handled by application specific code.")
(setenv "HOME" (getcwd))
;; make Qt render "offscreen", required for tests
(setenv "QT_QPA_PLATFORM" "offscreen")
#t)))))
#t))
(add-after 'install 'add-symlinks
;; Some package(s) (e.g. plasma-sdk) refer to these service types
;; by the wrong name. I would prefer to patch those packages, but
;; I cannot find the files!
(lambda* (#:key outputs #:allow-other-keys)
(let ((kst5 (string-append (assoc-ref outputs "out")
"/share/kservicetypes5/")))
(symlink (string-append kst5 "ktexteditorplugin.desktop")
(string-append kst5 "ktexteditor-plugin.desktop"))))))))
(home-page "https://community.kde.org/Frameworks")
(synopsis "Full text editor component")
(description "KTextEditor provides a powerful text editor component that you