summary refs log tree commit diff
path: root/gnu/packages/kde-frameworks.scm
diff options
context:
space:
mode:
authorZheng Junjie <zhengjunjie@iscas.ac.cn>2024-07-08 15:37:47 +0800
committerZheng Junjie <zhengjunjie@iscas.ac.cn>2024-07-18 10:45:28 +0800
commitcbb77b8d6b04a8596cf686db7c58131183a57526 (patch)
tree3e48489650e67e467005d639ef6a3ca303c6e8c8 /gnu/packages/kde-frameworks.scm
parent460bd9d77b134fff60843019505eccf00ecfd79b (diff)
downloadguix-cbb77b8d6b04a8596cf686db7c58131183a57526.tar.gz
gnu: Add ktexteditor-5.
* gnu/packages/kde-frameworks.scm (ktexteditor-5): New variable.

Change-Id: Id8b753ca89f1d3ee776370061f70c4b58f978ef5
Diffstat (limited to 'gnu/packages/kde-frameworks.scm')
-rw-r--r--gnu/packages/kde-frameworks.scm70
1 files changed, 70 insertions, 0 deletions
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index a431334ddc..b9e56ae071 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -4431,6 +4431,76 @@ library.")
     ;; triple licensed
     (license (list license:gpl2+ license:lgpl2.0+ license:lgpl2.1+))))
 
+(define-public ktexteditor-5
+  (package
+    (inherit ktexteditor)
+    (name "ktexteditor")
+    (version "5.116.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://kde/stable/frameworks/"
+                    (version-major+minor version) "/"
+                    "ktexteditor-" version ".tar.xz"))
+              (sha256
+               (base32
+                "0rph5nwp7d02xicjxrqpbz3kjb9kqqa40pp1w81fnq8jgln3hhh5"))))
+    (propagated-inputs
+     (list kparts-5
+           ksyntaxhighlighting-5))
+    (native-inputs
+     (list extra-cmake-modules pkg-config))
+    (inputs
+     (list editorconfig-core-c
+           karchive-5
+           kauth-5
+           kbookmarks-5
+           kcodecs-5
+           kcompletion-5
+           kconfig-5
+           kconfigwidgets-5
+           kcoreaddons-5
+           kguiaddons-5
+           kiconthemes-5
+           kio-5
+           kitemviews-5
+           ki18n-5
+           kjobwidgets-5
+           kparts-5
+           kservice-5
+           ktextwidgets-5
+           kwidgetsaddons-5
+           kxmlgui-5
+           libgit2
+           perl
+           qtbase-5
+           qtdeclarative-5
+           qtscript
+           qtxmlpatterns
+           solid-5
+           sonnet-5))
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'setup
+                 (lambda* (#:key inputs #:allow-other-keys)
+                   (setenv "XDG_DATA_DIRS" ; FIXME build phase doesn't find parts.desktop
+                           (string-append #$(this-package-input "kparts") "/share"))))
+               (replace 'check
+                 (lambda* (#:key tests? #:allow-other-keys)
+                   (when tests? ;; Maybe locale issues with tests?
+                     (setenv "QT_QPA_PLATFORM" "offscreen")
+                     (invoke "ctest" "-E" "(kateview_test|movingrange_test)"))))
+               (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 #$output
+                                              "/share/kservicetypes5/")))
+                     (symlink (string-append kst5 "ktexteditorplugin.desktop")
+                              (string-append kst5 "ktexteditor-plugin.desktop"))))))))))
+
 (define-public ktextwidgets
   (package
     (name "ktextwidgets")