1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
3 ;;; Copyright © 2016, 2017 Thomas Danckaert <post@thomasdanckaert.be>
5 ;;; This file is part of GNU Guix.
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20 (define-module (gnu packages kde)
21 #:use-module (guix build-system cmake)
22 #:use-module (guix download)
23 #:use-module ((guix licenses) #:prefix license:)
24 #:use-module (guix packages)
25 #:use-module (guix utils)
26 #:use-module (gnu packages apr)
27 #:use-module (gnu packages boost)
28 #:use-module (gnu packages compression)
29 #:use-module (gnu packages documentation)
30 #:use-module (gnu packages gl)
31 #:use-module (gnu packages gnome)
32 #:use-module (gnu packages kde-frameworks)
33 #:use-module (gnu packages llvm)
34 #:use-module (gnu packages pkg-config)
35 #:use-module (gnu packages tls)
36 #:use-module (gnu packages qt)
37 #:use-module (gnu packages version-control))
39 (define-public kdevelop
46 (uri (string-append "mirror://kde/stable/kdevelop"
47 "/" version "/src/kdevelop-"
51 "0max4g1i8xf5g7a8zm60qkr2j8w5bsqzxz914z43fj5ipnr4448r"))))
52 (build-system cmake-build-system)
54 `(("extra-cmake-modules" ,extra-cmake-modules)
55 ("pkg-config" ,pkg-config)
56 ("qttools" ,qttools)))
58 `(("kdevplatform" ,kdevplatform)
59 ("kdevelop-pg-qt" ,kdevelop-pg-qt)
61 ("qtdeclarative" ,qtdeclarative)
62 ("qtquickcontrols" ,qtquickcontrols)
63 ("qtwebkit" ,qtwebkit)
64 ("karchive" ,karchive)
65 ("kcmutils" ,kcmutils)
67 ("kdeclarative" ,kdeclarative)
68 ("kdoctools" ,kdoctools)
69 ("kguiaddons" ,kguiaddons)
72 ("kiconthemes" ,kiconthemes)
73 ("kitemmodels" ,kitemmodels)
74 ("kitemviews" ,kitemviews)
75 ("kjobwidgets" ,kjobwidgets)
76 ("knotifyconfig" ,knotifyconfig)
77 ("knotifications" ,knotifications)
80 ("knewstuff" ,knewstuff)
83 ("libksysguard" ,libksysguard)
84 ("threadweaver" ,threadweaver)
85 ("ktexteditor" ,ktexteditor)
86 ("kwindowsystem" ,kwindowsystem)
87 ("plasma" ,plasma-framework)
88 ("grantlee" ,grantlee)
89 ("libepoxy" ,libepoxy)
91 ("shared-mime-info" ,shared-mime-info)))
94 (modify-phases %standard-phases
95 (delete 'check) ;; there are some issues with the test suite
96 (add-after 'install 'wrap-executable
97 (lambda* (#:key inputs outputs #:allow-other-keys)
98 (let* ((out (assoc-ref outputs "out"))
99 (kdevplatform (assoc-ref inputs "kdevplatform"))
100 (kio (assoc-ref inputs "kio"))
101 (kcmutils (assoc-ref inputs "kcmutils"))
102 (qtquickcontrols (assoc-ref inputs "qtquickcontrols"))
103 (qtdeclarative (assoc-ref inputs "qtdeclarative"))
104 (profile "$HOME/.guix-profile")
106 (wrap-program (string-append out "/bin/kdevelop")
107 `("XDG_DATA_DIRS" ":" prefix
108 ,(map (lambda (s) (string-append s "/share"))
109 (list profile out kdevplatform kcmutils)))
110 `("QT_PLUGIN_PATH" ":" prefix
111 ,(map (lambda (s) (string-append s "/lib/plugins"))
112 (list profile out kdevplatform kio)))
113 `("QML2_IMPORT_PATH" ":" prefix
114 (,(string-append qtquickcontrols qml)
115 ,(string-append qtdeclarative qml))))))))))
116 (home-page "https://kdevelop.org")
117 (synopsis "IDE for C, C++, Python, Javascript and PHP")
118 (description "The KDevelop IDE provides semantic syntax highlighting, as
119 well as code navigation and completion for C, C++ (using Clang/LLVM), QML,
120 JavaScript, Python and PHP. It also integrates with a debugger, different
121 build systems (CMake, QMake, custom Makefiles) and version control
122 software (Git, Subversion, Mercurial, CVS and Bazaar).")
123 (license license:lgpl2.1+)))
125 (define-public kdevelop-pg-qt
127 (name "kdevelop-pg-qt")
132 (uri (string-append "https://github.com/KDE/kdevelop-pg-qt/archive/v"
134 (file-name (string-append name "-" version ".tar.gz"))
136 (base32 "1av8plqz7hyhrd07avnmn6ryslqlarmxn0pw7swzvb6ddiqp59j4"))))
138 `(("extra-cmake-modules" ,extra-cmake-modules)))
140 `(("qtbase" ,qtbase)))
141 (build-system cmake-build-system)
142 (home-page "https://kde.org")
143 (synopsis "Parser generator library for KDevplatform")
144 (description "KDevelop-PG-Qt is the parser generator used in KDevplatform
145 for some KDevelop language plugins (Ruby, PHP, CSS...).")
146 (license license:lgpl2.0+)))
148 (define-public kdevplatform
150 (name "kdevplatform")
154 (uri (string-append "mirror://kde/stable/kdevelop"
155 "/" version "/src/kdevplatform-"
159 "0wfl5azblnpmc7hydfvm7450343m1v7cr2g9gw0qs1432gbzraq1"))))
160 (build-system cmake-build-system)
162 `(("extra-cmake-modules" ,extra-cmake-modules)
163 ("pkg-config" ,pkg-config)))
166 ("apr-util" ,apr-util)
168 ("karchive" ,karchive)
169 ("kconfigwidgets" ,kconfigwidgets)
170 ("kcmutils" ,kcmutils)
171 ("kiconthemes" ,kiconthemes)
172 ("kdeclarative" ,kdeclarative)
173 ("kdoctools" ,kdoctools)
174 ("kguiaddons" ,kguiaddons)
176 ("kitemmodels" ,kitemmodels)
177 ("knewstuff" ,knewstuff)
178 ("knotifications" ,knotifications)
179 ("knotifyconfig" ,knotifyconfig)
180 ("kwindowsystem" ,kwindowsystem)
184 ("kservice" ,kservice)
185 ("grantlee" ,grantlee)
186 ("libkomparediff2" ,libkomparediff2)
188 ("threadweaver" ,threadweaver)
189 ("ktexteditor" ,ktexteditor)
191 ("qtdeclarative" ,qtdeclarative)
192 ("qtscript" ,qtscript)
193 ("qtwebkit" ,qtwebkit)
194 ("qtx11extras" ,qtx11extras)
195 ("plasma" ,plasma-framework)
196 ("subversion" ,subversion)
200 (modify-phases %standard-phases
202 (add-after 'install 'check ;; add-after 'install
203 (lambda* (#:key outputs #:allow-other-keys)
204 (let ((out (assoc-ref outputs "out")))
205 (setenv "CTEST_OUTPUT_ON_FAILURE" "1")
206 (setenv "QT_PLUGIN_PATH"
207 (string-append out "/lib/plugins:"
208 (getenv "QT_PLUGIN_PATH")))
209 (setenv "XDG_DATA_DIRS"
210 (string-append out "/share:"
211 (getenv "XDG_DATA_DIRS")))
213 (system* "ctest" "-R" ;; almost all tests require a display
214 "filteringstrategy|kdevvarlengtharray|kdevhash"))))))))
215 (home-page "https://github.com/KDE/kdevplatform")
216 (synopsis "Framework to build integrated development environments (IDEs)")
217 (description "KDevPlatform is the basis of KDevelop and contains some
218 plugins, as well as code to create plugins, or complete applications.")
219 (license license:gpl3+)))
221 (define-public libkomparediff2
223 (name "libkomparediff2")
228 (uri (string-append "https://github.com/KDE/libkomparediff2/archive/v"
230 (file-name (string-append name "-" version ".tar.gz"))
233 "1lafifrwfxvn0jwhz67kwv7m38lm4syips3fq77rwcvfhmkiijmh"))))
235 `(("extra-cmake-modules" ,extra-cmake-modules)
236 ("pkg-config" ,pkg-config)))
238 `(("kcodecs" ,kcodecs)
240 ("kcoreaddons" ,kcoreaddons)
245 (build-system cmake-build-system)
246 (home-page "https://kde.org")
247 (synopsis "Library to compare files and strings, used in Kompare and KDevelop")
248 (description "Libkomparediff2 is a library to work with diffs and patches,
249 used in KDE development tools Kompare and KDevelop.")
251 ;; GPL, some files are also licensed under LGPL or BSD, see COPYING in the
253 (license (list license:gpl2+ license:lgpl2.0+ license:bsd-3))))
255 (define-public libksysguard
257 (name "libksysguard")
262 (uri (string-append "mirror://kde//stable/plasma/" version
263 "/libksysguard-" version ".tar.xz"))
266 "158n30wbpsgbw3axhhsc58hnwhwdd02j3zc9hhcybmnbkfl5c96l"))))
268 `(("extra-cmake-modules" ,extra-cmake-modules)
269 ("pkg-config" ,pkg-config)))
271 `(("kconfigwidgets" ,kconfigwidgets)
272 ("kiconthemes" ,kiconthemes)
273 ("kwindowsystem" ,kwindowsystem)
276 ("kcompletion" ,kcompletion)
278 ("kcoreaddons" ,kcoreaddons)
279 ("kwidgetsaddons" ,kwidgetsaddons)
280 ("kservice" ,kservice)
282 ("qtscript" ,qtscript)
283 ("qtwebkit" ,qtwebkit)
284 ("qtx11extras" ,qtx11extras)
285 ("plasma" ,plasma-framework)
287 (build-system cmake-build-system)
290 `(,(string-append "-DKDE_INSTALL_DATADIR="
291 (assoc-ref %outputs "out") "/share"))
293 (modify-phases %standard-phases
294 (add-before 'configure 'patch-cmakelists
296 (substitute* "processcore/CMakeLists.txt"
297 (("KAUTH_HELPER_INSTALL_DIR") "KDE_INSTALL_LIBEXECDIR"))))
299 (lambda _ ;other tests require a display and therefore fail
300 (zero? (system* "ctest" "-R" "chronotest")))))))
301 (home-page "https://www.kde.org/info/plasma-5.8.2.php")
302 (synopsis "Network enabled task and system monitoring")
303 (description "KSysGuard can obtain information on system load and
304 manage running processes. It obtains this information by interacting
305 with a ksysguardd daemon, which may also run on a remote system.")
306 (license license:gpl3+)))
315 (uri (string-append "http://download.kde.org/stable/qca/" version
316 "/src/qca-" version ".tar.xz"))
319 "10z9icq28fww4qbzwra8d9z55ywbv74qk68nhiqfrydm21wkxplm"))))
320 (build-system cmake-build-system)
322 `(("pkg-config" ,pkg-config)))
324 `(("openssl" ,openssl)
326 (home-page "http://delta.affinix.com/qca/")
327 (synopsis "Libraries for the Qt Cryptographic Architecture")
328 (description "The Qt Cryptographic Architecture (QCA) provides a
329 straightforward and cross-platform API for a range of cryptographic features,
330 including SSL/TLS, X.509 certificates, SASL, OpenPGP, S/MIME CMS, and smart
332 (license license:lgpl2.1)))
334 (define-public snorenotify
341 (uri (string-append "http://download.kde.org/stable/snorenotify/"
342 version "/src/snorenotify-" version ".tar.xz"))
345 "0jz6ivk90h7iwgyxar7xzzj8yvzn6s1my6cqs9bdnwqswfk1nhbd"))))
346 (build-system cmake-build-system)
348 `(#:tests? #f)) ; both tests fail, require display
350 `(("extra-cmake-modules" ,extra-cmake-modules)
352 ("qttools" ,qttools)))
353 (home-page "https://techbase.kde.org/Projects/Snorenotify")
354 (synopsis "Qt notification framework")
355 (description "Snorenotify is a multi platform Qt notification framework.
356 Using a plugin system it is possible to create notifications with many
357 different notification systems.")
358 (license license:lgpl3)))