1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il>
4 ;;; Copyright © 2016-2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
5 ;;; Copyright © 2016 David Craven <david@craven.ch>
6 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
7 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
10 ;;; This file is part of GNU Guix.
12 ;;; GNU Guix is free software; you can redistribute it and/or modify it
13 ;;; under the terms of the GNU General Public License as published by
14 ;;; the Free Software Foundation; either version 3 of the License, or (at
15 ;;; your option) any later version.
17 ;;; GNU Guix is distributed in the hope that it will be useful, but
18 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;;; GNU General Public License for more details.
22 ;;; You should have received a copy of the GNU General Public License
23 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25 (define-module (gnu packages kde-frameworks)
26 #:use-module (guix build-system cmake)
27 #:use-module (guix build-system qt)
28 #:use-module (guix download)
29 #:use-module ((guix licenses) #:prefix license:)
30 #:use-module (guix packages)
31 #:use-module (guix utils)
32 #:use-module (gnu packages)
33 #:use-module (gnu packages acl)
34 #:use-module (gnu packages admin)
35 #:use-module (gnu packages aidc)
36 #:use-module (gnu packages attr)
37 #:use-module (gnu packages avahi)
38 #:use-module (gnu packages base)
39 #:use-module (gnu packages boost)
40 #:use-module (gnu packages bison)
41 #:use-module (gnu packages boost)
42 #:use-module (gnu packages calendar)
43 #:use-module (gnu packages compression)
44 #:use-module (gnu packages databases)
45 #:use-module (gnu packages docbook)
46 #:use-module (gnu packages flex)
47 #:use-module (gnu packages freedesktop)
48 #:use-module (gnu packages gettext)
49 #:use-module (gnu packages gl)
50 #:use-module (gnu packages glib)
51 #:use-module (gnu packages gnome)
52 #:use-module (gnu packages gnupg)
53 #:use-module (gnu packages gperf)
54 #:use-module (gnu packages graphics)
55 #:use-module (gnu packages gstreamer)
56 #:use-module (gnu packages image)
57 #:use-module (gnu packages kerberos)
58 #:use-module (gnu packages libreoffice)
59 #:use-module (gnu packages linux)
60 #:use-module (gnu packages mp3)
61 #:use-module (gnu packages openbox)
62 #:use-module (gnu packages pdf)
63 #:use-module (gnu packages pcre)
64 #:use-module (gnu packages perl)
65 #:use-module (gnu packages pkg-config)
66 #:use-module (gnu packages polkit)
67 #:use-module (gnu packages python)
68 #:use-module (gnu packages python-xyz)
69 #:use-module (gnu packages qt)
70 #:use-module (gnu packages textutils)
71 #:use-module (gnu packages tls)
72 #:use-module (gnu packages version-control)
73 #:use-module (gnu packages video)
74 #:use-module (gnu packages web)
75 #:use-module (gnu packages xml)
76 #:use-module (gnu packages xorg)
77 #:use-module (srfi srfi-1))
79 (define-public extra-cmake-modules
81 (name "extra-cmake-modules")
86 "mirror://kde/stable/frameworks/"
87 (version-major+minor version) "/"
88 name "-" version ".tar.xz"))
91 "14h7519bfkwzh58lxgxrj5jlfhfnrakhjcm6lmhafnkg5h56m4kr"))))
92 (build-system cmake-build-system)
94 `(("qtbase" ,qtbase))) ; For tests (needs qmake)
97 (modify-phases %standard-phases
98 (add-after 'unpack 'fix-lib-path
100 ;; Always install into /lib and not into /lib64.
101 (substitute* "kde-modules/KDEInstallDirs.cmake"
102 (("\"lib64\"") "\"lib\"")
103 ;; TODO: Base the following on values taken from Qt
104 ;; Install plugins into lib/qt5/plugins
105 ;; TODO: Check if this is okay for Android, too
106 ;; (see comment in KDEInstallDirs.cmake)
107 (("_define_relative\\(QTPLUGINDIR \"\\$\\{_pluginsDirParent}\" \"plugins\"")
108 "_define_relative(QTPLUGINDIR \"${_pluginsDirParent}\" \"qt5/plugins\"")
109 ;; Install imports into lib/qt5/imports
110 (("_define_relative\\(QTQUICKIMPORTSDIR QTPLUGINDIR \"imports\"")
111 "_define_relative(QTQUICKIMPORTSDIR LIBDIR \"qt5/imports\"")
112 ;; Install qml-files into lib/qt5/qml
113 (("_define_relative\\(QMLDIR LIBDIR \"qml\"")
114 "_define_relative(QMLDIR LIBDIR \"qt5/qml\""))
115 (substitute* "modules/ECMGeneratePriFile.cmake"
116 ;; Install pri-files into lib/qt5/mkspecs
117 (("set\\(ECM_MKSPECS_INSTALL_DIR mkspecs/modules")
118 "set(ECM_MKSPECS_INSTALL_DIR lib/qt5/mkspecs/modules"))
120 ;; install and check phase are swapped to prevent install from failing
121 ;; after testsuire has run
122 (add-after 'install 'check-post-install
123 (assoc-ref %standard-phases 'check))
125 ;; optional dependencies - to save space, we do not add these inputs.
127 ;; Required to build Extra CMake Modules documentation in Qt Help format.
128 ;; Qt5LinguistTools , Qt5 linguist tools. , <http://www.qt.io/>
129 ;; Required to run tests for the ECMPoQmTools module.
131 ;; Required to run tests for the ECMQtDeclareLoggingCategory module,
132 ;; and for some tests of the KDEInstallDirs module.
133 (home-page "https://community.kde.org/Frameworks")
134 (synopsis "CMake module files for common software used by KDE")
135 (description "The Extra CMake Modules package, or ECM, adds to the
136 modules provided by CMake to find common software. In addition, it provides
137 common build settings used in software produced by the KDE community.")
138 (license license:bsd-3)))
140 (define-public phonon
147 "mirror://kde/stable/phonon"
149 name "-" version ".tar.xz"))
152 "0bfy8iqmjhlg3ma3iqd3kxjc2zkzpjgashbpf5x17y0dc2i1whxl"))))
153 (build-system cmake-build-system)
155 ;; TODO: Think about adding pulseaudio. Is it required for sound?
156 ;; TODO: Add building the super experimental QML support
157 `(("extra-cmake-modules" ,extra-cmake-modules)
158 ("pkg-config" ,pkg-config)
159 ("qttools" ,qttools)))
161 `(("qtbase" ,qtbase)))
164 '("-DCMAKE_CXX_FLAGS=-fPIC"
165 "-DPHONON_BUILD_PHONON4QT5=ON")
167 (modify-phases %standard-phases
168 (add-before 'install 'patch-installdir
169 (lambda* (#:key inputs outputs #:allow-other-keys)
170 (let ((regex (string-append "(INSTALL DESTINATION \")"
171 (assoc-ref inputs "qtbase"))))
172 (substitute* "cmake_install.cmake"
174 (string-append dest (assoc-ref outputs "out")))))
176 (home-page "https://phonon.kde.org")
177 (synopsis "KDE's multimedia library")
178 (description "KDE's multimedia library.")
179 (license license:lgpl2.1+)))
181 (define-public phonon-backend-gstreamer
183 (name "phonon-backend-gstreamer")
188 "mirror://kde/stable/phonon/"
190 name "-" version ".tar.xz"))
193 "1wk1ip2w7fkh65zk6rilj314dna0hgsv2xhjmpr5w08xa8sii1y5"))))
194 (build-system cmake-build-system)
196 `(("extra-cmake-modules" ,extra-cmake-modules)
197 ("pkg-config" ,pkg-config)
198 ("qttools" ,qttools)))
203 ("qtx11extras" ,qtx11extras)
204 ("gstreamer" ,gstreamer)
205 ("gst-plugins-base" ,gst-plugins-base)
206 ("libxml2" ,libxml2)))
209 '( "-DPHONON_BUILD_PHONON4QT5=ON")))
210 (home-page "https://phonon.kde.org")
211 (synopsis "Phonon backend which uses GStreamer")
212 (description "Phonon makes use of backend libraries to provide sound.
213 Phonon-GStreamer is a backend based on the GStreamer multimedia library.")
214 ;; license: source files mention "either version 2.1 or 3"
215 (license (list license:lgpl2.1 license:lgpl3))))
220 ;; Tier 1 frameworks depend only on Qt (and possibly a small number of other
221 ;; third-party libraries), so can easily be used by an Qt-based project.
223 (define-public attica
230 "mirror://kde/stable/frameworks/"
231 (version-major+minor version) "/"
232 name "-" version ".tar.xz"))
235 "0dvsjwl2c3liiicv2m8p1m7hlc3fcapsj5pfirmdm1l38wcayr60"))))
236 (build-system cmake-build-system)
239 (modify-phases %standard-phases
240 (add-after 'unpack 'disable-network-tests
242 ;; These tests require network access.
243 (substitute* "autotests/CMakeLists.txt"
244 ((".*providertest.cpp") "")))))))
246 `(("extra-cmake-modules" ,extra-cmake-modules)))
248 `(("qtbase" ,qtbase)))
249 (home-page "https://community.kde.org/Frameworks")
250 (synopsis "Open Collaboration Service client library")
251 (description "Attica is a Qt library that implements the Open
252 Collaboration Services API version 1.6.
254 It grants easy access to the services such as querying information about
255 persons and contents. The library is used in KNewStuff3 as content provider.
256 In order to integrate with KDE's Plasma Desktop, a platform plugin exists in
259 The REST API is defined here:
260 http://freedesktop.org/wiki/Specifications/open-collaboration-services/")
261 (license (list license:lgpl2.1+ license:lgpl3+))))
263 (define-public bluez-qt
270 "mirror://kde/stable/frameworks/"
271 (version-major+minor version) "/"
272 name "-" version ".tar.xz"))
275 "179am9czhb9mcirmja5bxjmqil3qg81v56n8rmkkp5q50qpln4dh"))))
276 (build-system cmake-build-system)
279 ("extra-cmake-modules" ,extra-cmake-modules)))
281 ;; TODO: qtdeclarative (yields one failing test)
282 `(("qtbase" ,qtbase)))
286 "-DUDEV_RULES_INSTALL_DIR=" %output "/lib/udev/rules.d"))
287 ;; TODO: Make tests pass: DBUS_FATAL_WARNINGS=0 still yields 7/8 tests
288 ;; failing. When running after install, tests hang.
290 (home-page "https://community.kde.org/Frameworks")
291 (synopsis "QML wrapper for BlueZ")
292 (description "bluez-qt is a Qt-style library for accessing the bluez
293 Bluetooth stack. It is used by the KDE Bluetooth stack, BlueDevil.")
294 (license (list license:lgpl2.1+ license:lgpl3+))))
296 (define-public breeze-icons
298 (name "breeze-icons")
303 "mirror://kde/stable/frameworks/"
304 (version-major+minor version) "/"
305 name "-" version ".tar.xz"))
308 "17kil9dlh8w5r29arrjbv47b7jxz45kqzpg06zw3vz70bdgbb995"))))
309 (build-system cmake-build-system)
311 `(("extra-cmake-modules" ,extra-cmake-modules)
313 ("libxml2" ,libxml2)))
315 `(("qtbase" ,qtbase)))
316 (home-page "https://community.kde.org/Frameworks")
317 (synopsis "Default KDE Plasma 5 icon theme")
318 (description "Breeze provides a freedesktop.org compatible icon theme.
319 It is the default icon theme for the KDE Plasma 5 desktop.")
320 ;; The license file mentions lgpl3+. The license files in the source
321 ;; directories are lgpl3, while the top directory contains the lgpl2.1.
323 (license license:lgpl3+)))
325 (define-public kapidox
332 "mirror://kde/stable/frameworks/"
333 (version-major+minor version) "/"
334 name "-" version ".tar.xz"))
337 "0cwprhpz731bqqhr6vra6lc76k5i4pm3m9j0q21km9wm2djfmk19"))))
338 (build-system cmake-build-system)
340 `(#:tests? #f)) ; has no test target
342 `(("extra-cmake-modules" ,extra-cmake-modules)))
344 ;; kapidox is a python programm
345 ;; TODO: check if doxygen has to be installed, the readme does not
346 ;; mention it. The openSuse .rpm lists doxygen, graphviz, graphviz-gd,
349 ("python-jinja2" ,python-jinja2)
350 ("python-pyyaml" ,python-pyyaml)))
352 `(("qtbase" ,qtbase)))
353 (home-page "https://community.kde.org/Frameworks")
354 (synopsis "KDE Doxygen Tools")
355 (description "This framework contains scripts and data for building API
356 documentation (dox) in a standard format and style for KDE.
358 For the actual documentation extraction and formatting the Doxygen tool is
359 used, but this framework provides a wrapper script to make generating the
360 documentation more convenient (including reading settings from the target
361 framework or other module) and a standard template for the generated
363 ;; Most parts are bsd-2, but incuded jquery is expat
364 ;; This list is taken from http://packaging.neon.kde.org/cgit/
365 (license (list license:bsd-2 license:expat))))
367 (define-public karchive
374 "mirror://kde/stable/frameworks/"
375 (version-major+minor version) "/"
376 name "-" version ".tar.xz"))
379 "0ypykybxl9dz57rgsfihx4rfhzhphidypb2f5nwrw1f6vlqkawzs"))))
380 (build-system cmake-build-system)
382 `(("extra-cmake-modules" ,extra-cmake-modules)))
388 (home-page "https://community.kde.org/Frameworks")
389 (synopsis "Qt 5 addon providing access to numerous types of archives")
390 (description "KArchive provides classes for easy reading, creation and
391 manipulation of @code{archive} formats like ZIP and TAR.
393 It also provides transparent compression and decompression of data, like the
394 GZip format, via a subclass of QIODevice.")
395 ;; The included licenses is are gpl2 and lgpl2.1, but the sources are
396 ;; under a variety of licenses.
397 ;; This list is taken from http://packaging.neon.kde.org/cgit/
398 (license (list license:lgpl2.1 license:lgpl2.1+
399 license:lgpl3+ license:bsd-2))))
401 (define-public kcalendarcore
403 (name "kcalendarcore")
408 "mirror://kde/stable/frameworks/"
409 (version-major+minor version) "/"
410 name "-" version ".tar.xz"))
413 "1cqqwpd6faz7sd6jrda564xxvwr231b175h2w3ilxx6hvz9yrps3"))))
414 (build-system cmake-build-system)
416 `(("extra-cmake-modules" ,extra-cmake-modules)
418 ("tzdata" ,tzdata-for-tests)))
420 `(("libical" ,libical)
424 (modify-phases %standard-phases
425 (add-before 'configure 'disable-failing-libical3-tests
427 ;; testicaltimezones fails with some time-zone issue
428 (substitute* "autotests/CMakeLists.txt"
429 (("macro_unit_tests\\(testicaltimezones\\)" line)
430 (string-append "## " line))
431 (("target_link_libraries\\(testicaltimezones " line)
432 (string-append "## " line)))
436 ;; test cases are generated for each .ics file. These fail:
437 "autotests/data/Compat-libical3/AppleICal_1.5.ics"
438 "autotests/data/Compat-libical3/Evolution_2.8.2_timezone_test.ics"
439 "autotests/data/Compat-libical3/KOrganizer_3.1a.ics"
440 "autotests/data/Compat-libical3/MSExchange.ics"
441 "autotests/data/Compat-libical3/Mozilla_1.0.ics"))
443 (add-before 'check 'set-timezone
444 (lambda* (#:key inputs #:allow-other-keys)
445 (setenv "TZ" "Europe/Prague")
447 (string-append (assoc-ref inputs "tzdata")
450 (home-page "https://community.kde.org/Frameworks")
451 (synopsis "Library for interfacing with calendars")
452 (description "This library provides access to and handling of calendar
453 data. It supports the standard formats iCalendar and vCalendar and the group
454 scheduling standard iTIP.
456 A calendar contains information like incidences (events, to-dos, journals),
457 alarms, time zones, and other useful information. This API provides access to
458 that calendar information via well known calendar formats iCalendar (or iCal)
459 and the older vCalendar.")
460 (license (list license:lgpl3+ license:bsd-2))))
462 (define-public kcodecs
469 "mirror://kde/stable/frameworks/"
470 (version-major+minor version) "/"
471 name "-" version ".tar.xz"))
474 "0w5q37lqdzyl84723kg9sh9xxn2g2wv0xfxpy3218hmc9364s89h"))))
475 (build-system cmake-build-system)
477 `(("extra-cmake-modules" ,extra-cmake-modules)
479 ("qttools" ,qttools)))
481 `(("qtbase" ,qtbase)))
482 (home-page "https://community.kde.org/Frameworks")
483 (synopsis "String encoding and manipulating library")
484 (description "KCodecs provide a collection of methods to manipulate
485 strings using various encodings.
487 It can automatically determine the charset of a string, translate XML
488 entities, validate email addresses, and find encodings by name in a more
489 tolerant way than QTextCodec (useful e.g. for data coming from the
491 ;; The included licenses is are gpl2 and lgpl2.1, but the sources are
492 ;; under a variety of licenses.
493 ;; This list is taken from http://packaging.neon.kde.org/cgit/
494 (license (list license:gpl2 license:gpl2+ license:bsd-2
495 license:lgpl2.1 license:lgpl2.1+ license:expat
496 license:lgpl3+ license:mpl1.1))))
498 (define-public kconfig
505 "mirror://kde/stable/frameworks/"
506 (version-major+minor version) "/"
507 name "-" version ".tar.xz"))
510 "1ya0fvrrfiw4a5wkydcjpnkkyq3ampxy5h210dm04qim6a9x8rb1"))))
511 (build-system cmake-build-system)
514 ("extra-cmake-modules" ,extra-cmake-modules)
515 ("inetutils" ,inetutils)
517 ("xorg-server" ,xorg-server-for-tests)))
519 `(("qtbase" ,qtbase)))
522 (modify-phases %standard-phases
523 (add-before 'check 'check-setup
525 (setenv "HOME" (getcwd))
526 (setenv "TMPDIR" (getcwd))
530 (setenv "QT_QPA_PLATFORM" "offscreen")
531 (invoke "dbus-launch" "ctest" "."))))))
532 (home-page "https://community.kde.org/Frameworks")
533 (synopsis "Kconfiguration settings framework for Qt")
534 (description "KConfig provides an advanced configuration system.
535 It is made of two parts: KConfigCore and KConfigGui.
537 KConfigCore provides access to the configuration files themselves.
541 @item Code generation: describe your configuration in an XML file, and use
542 `kconfig_compiler to generate classes that read and write configuration
545 @item Cascading configuration files (global settings overridden by local
548 @item Optional shell expansion support (see docs/options.md).
550 @item The ability to lock down configuration options (see docs/options.md).
553 KConfigGui provides a way to hook widgets to the configuration so that they
554 are automatically initialized from the configuration and automatically
555 propagate their changes to their respective configuration files.")
556 ;; The included licenses is are gpl2 and lgpl2.1, but the sources are
557 ;; under a variety of licenses.
558 ;; This list is taken from http://packaging.neon.kde.org/cgit/
559 (license (list license:lgpl2.1 license:lgpl2.1+ license:expat
560 license:lgpl3+ license:gpl1 ; licende:mit-olif
561 license:bsd-2 license:bsd-3))))
563 (define-public kcoreaddons
570 "mirror://kde/stable/frameworks/"
571 (version-major+minor version) "/"
572 name "-" version ".tar.xz"))
575 "1w658wfksxglr0fjpa2p8gmjbvpd2knzhk3byk2s9dwil7i7cvjd"))))
576 (build-system cmake-build-system)
578 `(("extra-cmake-modules" ,extra-cmake-modules)
580 ("shared-mime-info" ,shared-mime-info)
581 ;; TODO: FAM: File alteration notification http://oss.sgi.com/projects/fam
582 ("xorg-server" ,xorg-server-for-tests))) ; for the tests
584 `(("qtbase" ,qtbase)))
587 (modify-phases %standard-phases
588 (add-before 'check 'blacklist-failing-test
590 ;; Blacklist failing tests.
591 (with-output-to-file "autotests/BLACKLIST"
593 ;; FIXME: Make it pass. Test failure caused by stout/stderr
594 ;; being interleaved.
595 (display "[test_channels]\n*\n")
596 ;; This fails with ENOSPC because of too many inotify watches.
597 (display "[benchNotifyWatcher]\n*\n")))
599 ;; See upstream commit ee424e9b62368485bba4193053cabb553a1d268e
600 (add-after 'unpack 'fix-broken-test
602 (substitute* "autotests/kdirwatch_unittest.cpp"
603 (("QVERIFY\\(waitForRecreationSignal\\(watch, existingFile\\)\\);" m)
604 (string-append m "\nwaitUntilNewSecond();")))
606 (add-before 'check 'check-setup
608 (setenv "HOME" (getcwd))
609 (setenv "TMPDIR" (getcwd))
611 (home-page "https://community.kde.org/Frameworks")
612 (synopsis "Qt addon library with a collection of non-GUI utilities")
613 (description "KCoreAddons provides classes built on top of QtCore to
614 perform various tasks such as manipulating mime types, autosaving files,
615 creating backup files, generating random sequences, performing text
616 manipulations such as macro replacement, accessing user information and
618 (license (list license:lgpl2.0+ license:lgpl2.1+))))
620 (define-public kdbusaddons
627 "mirror://kde/stable/frameworks/"
628 (version-major+minor version) "/"
629 name "-" version ".tar.xz"))
632 "11zwr89v0k4m1235rzr39z4cbfdwn5zg34abs62nfnr8vmba62qv"))
633 (patches (search-patches "kdbusaddons-kinit-file-name.patch"))))
634 (build-system cmake-build-system)
636 `(("extra-cmake-modules" ,extra-cmake-modules)
638 ("qttools" ,qttools)))
641 ("qtx11extras" ,qtx11extras)
642 ("kinit" ,kinit-bootstrap))) ;; kinit-bootstrap: kinit package which does not depend on kdbusaddons.
645 (modify-phases %standard-phases
647 'configure 'patch-source
648 (lambda* (#:key inputs #:allow-other-keys)
649 ;; look for the kdeinit5 executable in kinit's store directory,
650 ;; instead of the current application's directory:
651 (substitute* "src/kdeinitinterface.cpp"
652 (("@SUBSTITUTEME@") (assoc-ref inputs "kinit")))))
655 (setenv "DBUS_FATAL_WARNINGS" "0")
656 (invoke "dbus-launch" "ctest" "."))))))
657 (home-page "https://community.kde.org/Frameworks")
658 (synopsis "Convenience classes for DBus")
659 (description "KDBusAddons provides convenience classes on top of QtDBus,
660 as well as an API to create KDED modules.")
661 ;; Some source files mention lgpl2.0+, but the included license is
662 ;; the lgpl2.1. Some source files are under non-copyleft licenses.
663 (license license:lgpl2.1+)))
665 (define-public kdnssd
672 "mirror://kde/stable/frameworks/"
673 (version-major+minor version) "/"
674 name "-" version ".tar.xz"))
677 "1bn9c6ii1n6ns478i3lp7yzga7dbcqvdb43rfzmz7gndnmh853gm"))))
678 (build-system cmake-build-system)
680 `(("extra-cmake-modules" ,extra-cmake-modules)
681 ("qttools" ,qttools)))
683 `(("avahi" ,avahi) ; alternativly dnssd could be used
685 (home-page "https://community.kde.org/Frameworks")
686 (synopsis "Network service discovery using Zeroconf")
687 (description "KDNSSD is a library for handling the DNS-based Service
688 Discovery Protocol (DNS-SD), the layer of Zeroconf that allows network services,
689 such as printers, to be discovered without any user intervention or centralized
691 (license license:lgpl2.1+)))
693 (define-public kguiaddons
700 "mirror://kde/stable/frameworks/"
701 (version-major+minor version) "/"
702 name "-" version ".tar.xz"))
705 "0k22kargqxf0j09wzk1x90b526npj8a0210ilk0n1k6spc8xa6mr"))))
706 (build-system qt-build-system)
707 ;; TODO: Build packages for the Python bindings. Ideally this will be
708 ;; done for all versions of python guix supports. Requires python,
709 ;; python-sip, clang-python, libclang. Requires python-2 in all cases for
712 `(("extra-cmake-modules" ,extra-cmake-modules)
713 ("pkg-config" ,pkg-config)))
716 ("qtx11extras" ,qtx11extras)))
717 (home-page "https://community.kde.org/Frameworks")
718 (synopsis "Utilities for graphical user interfaces")
719 (description "The KDE GUI addons provide utilities for graphical user
720 interfaces in the areas of colors, fonts, text, images, keyboard input.")
721 (license (list license:gpl2+ license:lgpl2.1+))))
723 (define-public kholidays
730 "mirror://kde/stable/frameworks/"
731 (version-major+minor version) "/"
732 name "-" version ".tar.xz"))
734 (base32 "1035kh0na4hwp4pnsi8p1nd7r114d4bgdnjr0g2hwmy868vx0a67"))))
735 (build-system cmake-build-system)
738 (modify-phases %standard-phases
739 (add-before 'check 'check-setup
741 ;; blacklist a failing test function TODO: make it pass
742 (with-output-to-file "autotests/BLACKLIST"
744 (display "[testDefaultRegions]\n*\n")))
747 `(("extra-cmake-modules" ,extra-cmake-modules)
748 ("qttools" ,qttools)))
751 ("qtdeclarative" ,qtdeclarative)))
752 (home-page "https://cgit.kde.org/kholidays.git")
753 (synopsis "Library for regional holiday information")
754 (description "This library provides a C++ API that determines holiday and
755 other special events for a geographical region.")
756 (license license:lgpl2.0+)))
765 "mirror://kde/stable/frameworks/"
766 (version-major+minor version) "/"
767 name "-" version ".tar.xz"))
770 "1fdp0bdvqbqzbxynbg3bcdridr8j3qnm9spyrrdg5q95sz99a4s9"))))
771 (build-system cmake-build-system)
773 `(("gettext" ,gettext-minimal)
776 `(("extra-cmake-modules" ,extra-cmake-modules)))
779 ("qtdeclarative" ,qtdeclarative)
780 ("qtscript" ,qtscript)))
783 (modify-phases %standard-phases
784 (add-before 'check 'check-setup
786 (setenv "HOME" (getcwd))
788 (home-page "https://community.kde.org/Frameworks")
789 (synopsis "KDE Gettext-based UI text internationalization")
790 (description "KI18n provides functionality for internationalizing user
791 interface text in applications, based on the GNU Gettext translation system. It
792 wraps the standard Gettext functionality, so that the programmers and translators
793 can use the familiar Gettext tools and workflows.
795 KI18n provides additional functionality as well, for both programmers and
796 translators, which can help to achieve a higher overall quality of source and
797 translated text. This includes argument capturing, customizable markup, and
798 translation scripting.")
799 (license license:lgpl2.1+)))
801 (define-public kidletime
808 "mirror://kde/stable/frameworks/"
809 (version-major+minor version) "/"
810 name "-" version ".tar.xz"))
813 "0zd51lsz23rqwk4lnzs5653sanprgr80p33yk8gmgsihgyfbjv0r"))))
814 (build-system cmake-build-system)
816 `(("extra-cmake-modules" ,extra-cmake-modules)
817 ("pkg-config" ,pkg-config)))
819 `(("libxscrnsaver" ,libxscrnsaver) ; X-Screensaver based poller, fallback mode
821 ("qtx11extras" ,qtx11extras)))
822 (home-page "https://community.kde.org/Frameworks")
823 (synopsis "Reporting of idle time of user and system")
824 (description "KIdleTime is a singleton reporting information on idle time.
825 It is useful not only for finding out about the current idle time of the PC,
826 but also for getting notified upon idle time events, such as custom timeouts,
828 (license (list license:gpl2+ license:lgpl2.1+))))
830 (define-public kirigami
831 ;; Kirigami is listed as tier 1 framework, but optionally includes
832 ;; plasma-framework which is tier 3.
839 "mirror://kde/stable/frameworks/"
840 (version-major+minor version) "/"
841 "kirigami2-" version ".tar.xz"))
844 "1v76d1xgmi9kkxiwq4y6rzaxs1hwwm95pw490m09rgqhli7180yv"))))
845 (properties `((upstream-name . "kirigami2")))
846 (build-system cmake-build-system)
848 `(("extra-cmake-modules" ,extra-cmake-modules)
849 ("qttools" ,qttools)))
851 `(("kwindowsystem" ,kwindowsystem)
852 ;; TODO: Find a way to activate this optional include without
853 ;; introducing a recursive dependency.
854 ;;("plasma-frameworks" ,plasma-framework) ;; Tier 3!
856 ("qtdeclarative" ,qtdeclarative)
857 ("qtquickcontrols2" ,qtquickcontrols2)
859 ;; Run-time dependency
860 ("qtgraphicaleffects" ,qtgraphicaleffects)))
861 (home-page "https://community.kde.org/Frameworks")
862 (synopsis "QtQuick components for mobile user interfaces")
863 (description "Kirigami is a set of high level QtQuick components looking
864 and feeling well on both mobile and desktop devices. They ease the creation
865 of applications that follow the Kirigami Human Interface Guidelines.")
866 (license license:lgpl2.1+)))
868 (define-public kitemmodels
875 "mirror://kde/stable/frameworks/"
876 (version-major+minor version) "/"
877 name "-" version ".tar.xz"))
880 "10bhg0db9gdg2hlc02ngg1i2q7a99862d5973hxqzf620d28p5rd"))))
881 (build-system qt-build-system)
883 `(("extra-cmake-modules" ,extra-cmake-modules)))
886 ("qtdeclarative" ,qtdeclarative)))
887 (home-page "https://community.kde.org/Frameworks")
888 (synopsis "Set of item models extending the Qt model-view framework")
889 (description "KItemModels provides the following models:
892 @item KBreadcrumbSelectionModel - Selects the parents of selected items to
895 @item KCheckableProxyModel - Adds a checkable capability to a source model.
897 @item KConcatenateRowsProxyModel - Concatenates rows from multiple source models.
899 @item KDescendantsProxyModel - Proxy Model for restructuring a Tree into a list.
901 @item KExtraColumnsProxyModel - Adds columns after existing columns.
903 @item KLinkItemSelectionModel - Share a selection in multiple views which do
904 not have the same source model.
906 @item KModelIndexProxyMapper - Mapping of indexes and selections through proxy
909 @item KRearrangeColumnsProxyModel - Can reorder and hide columns from the source
912 @item KRecursiveFilterProxyModel - Recursive filtering of models.
914 @item KSelectionProxyModel - A Proxy Model which presents a subset of its source
917 (license license:lgpl2.1+)))
919 (define-public kitemviews
926 "mirror://kde/stable/frameworks/"
927 (version-major+minor version) "/"
928 name "-" version ".tar.xz"))
931 "15h0w16wgj94kxz4vgjb34i3pyx5w1f2npj86j4d2sa0mxxpmqyz"))))
932 (build-system qt-build-system)
934 `(("extra-cmake-modules" ,extra-cmake-modules)
935 ("qttools" ,qttools)))
937 `(("qtbase" ,qtbase)))
938 (home-page "https://community.kde.org/Frameworks")
939 (synopsis "Set of item views extending the Qt model-view framework")
940 (description "KItemViews includes a set of views, which can be used with
941 item models. It includes views for categorizing lists and to add search filters
942 to flat and hierarchical lists.")
943 (license (list license:gpl2+ license:lgpl2.1+))))
945 (define-public kplotting
952 "mirror://kde/stable/frameworks/"
953 (version-major+minor version) "/"
954 name "-" version ".tar.xz"))
957 "11kpq34j37c1gsvj5nxhkc31bw8gw2n7nkqsfx87jw9f4v2vhmr9"))))
958 (build-system qt-build-system)
960 `(("extra-cmake-modules" ,extra-cmake-modules)))
963 ("qttools" ,qttools)))
964 (home-page "https://community.kde.org/Frameworks")
965 (synopsis "Data plotting library")
966 (description "KPlotWidget is a QWidget-derived class that provides a virtual
967 base class for easy data-plotting. The idea behind KPlotWidget is that you only
968 have to specify information in \"data units\", the natural units of the
969 data being plotted. KPlotWidget automatically converts everything to screen
971 (license license:lgpl2.1+)))
973 (define-public ksyntaxhighlighting
975 (name "ksyntaxhighlighting")
980 "mirror://kde/stable/frameworks/"
981 (version-major+minor version) "/"
982 "syntax-highlighting-" version ".tar.xz"))
985 "08y0m4wcq1sbxvlga3w72waj5xckh5jra5x7rvnp87dl38qxhacs"))))
986 (build-system cmake-build-system)
988 `(("extra-cmake-modules" ,extra-cmake-modules)
991 ;; Optional, for compile-time validation of syntax definition files:
992 ("qtxmlpatterns" ,qtxmlpatterns)))
994 `(("qtbase" ,qtbase)))
997 (modify-phases %standard-phases
998 (add-after 'patch-source-shebangs 'unpatch-source-shebang
1000 ;; revert the patch-shebang phase on scripts which are
1001 ;; in fact test data
1002 (substitute* '("autotests/input/test.bash"
1003 "autotests/folding/test.bash.fold")
1004 (((which "bash")) "/bin/bash"))
1005 (substitute* '("autotests/input/highlight.sh"
1006 "autotests/folding/highlight.sh.fold")
1007 (((which "sh")) " /bin/sh")) ;; space in front!
1008 (substitute* '("autotests/input/highlight.pl"
1009 "autotests/folding/highlight.pl.fold")
1010 (((which "perl")) "/usr/bin/perl"))
1012 (home-page "https://community.kde.org/Frameworks")
1013 (synopsis "Syntax highlighting engine for Kate syntax definitions")
1014 (description "This is a stand-alone implementation of the Kate syntax
1015 highlighting engine. It's meant as a building block for text editors as well
1016 as for simple highlighted text rendering (e.g. as HTML), supporting both
1017 integration with a custom editor as well as a ready-to-use
1018 @code{QSyntaxHighlighter} sub-class.")
1019 (properties `((upstream-name . "syntax-highlighting")))
1020 (license license:lgpl2.1+)))
1022 (define-public kwayland
1029 "mirror://kde/stable/frameworks/"
1030 (version-major+minor version) "/"
1031 name "-" version ".tar.xz"))
1034 "03z8hiw0mrhl3f0y7ypc46ic0w5vlp56prbqbk448jin5hakkkdg"))))
1035 (build-system cmake-build-system)
1037 `(("extra-cmake-modules" ,extra-cmake-modules)
1038 ("pkg-config" ,pkg-config)))
1040 `(("qtbase" ,qtbase)
1041 ("wayland" ,wayland)
1042 ("wayland-protocols" ,wayland-protocols)))
1044 `(#:tests? #f ; FIXME tests require weston to run
1045 ; weston requires wayland flags in mesa
1047 (modify-phases %standard-phases
1048 (add-before 'check 'check-setup
1050 (setenv "XDG_RUNTIME_DIR" "/tmp")
1052 (home-page "https://community.kde.org/Frameworks")
1053 (synopsis "Qt-style API to interact with the wayland client and server")
1054 (description "As the names suggest they implement a Client respectively a
1055 Server API for the Wayland protocol. The API is Qt-styled removing the needs to
1056 interact with a for a Qt developer uncomfortable low-level C-API. For example
1057 the callback mechanism from the Wayland API is replaced by signals, data types
1058 are adjusted to be what a Qt developer expects - two arguments of int are
1059 represented by a QPoint or a QSize.")
1060 (license license:lgpl2.1+)))
1062 (define-public kwidgetsaddons
1064 (name "kwidgetsaddons")
1069 "mirror://kde/stable/frameworks/"
1070 (version-major+minor version) "/"
1071 name "-" version ".tar.xz"))
1074 "1nzgv3v3kyq5jm2b9xri6qjawspr9ycxhskfvj8kkgr46dr35qyc"))))
1075 (build-system qt-build-system)
1077 `(("extra-cmake-modules" ,extra-cmake-modules)
1078 ("qttools" ,qttools)
1079 ("xorg-server" ,xorg-server-for-tests)))
1081 `(("qtbase" ,qtbase)))
1084 (modify-phases %standard-phases
1085 (add-before 'check 'start-xorg-server
1086 (lambda* (#:key inputs #:allow-other-keys)
1087 ;; The test suite requires a running X server.
1088 ;; Xvfb doesn't have proper glx support and needs a pixeldepth
1089 ;; of 24 bit to avoid "libGL error: failed to load driver: swrast"
1090 ;; "Could not initialize GLX"
1091 (system (string-append (assoc-ref inputs "xorg-server")
1092 "/bin/Xvfb :1 -screen 0 640x480x24 &"))
1093 (setenv "DISPLAY" ":1")
1095 (home-page "https://community.kde.org/Frameworks")
1096 (synopsis "Large set of desktop widgets")
1097 (description "Provided are action classes that can be added to toolbars or
1098 menus, a wide range of widgets for selecting characters, fonts, colors, actions,
1099 dates and times, or MIME types, as well as platform-aware dialogs for
1100 configuration pages, message boxes, and password requests.")
1101 (license (list license:gpl2+ license:lgpl2.1+))))
1103 (define-public kwindowsystem
1105 (name "kwindowsystem")
1110 "mirror://kde/stable/frameworks/"
1111 (version-major+minor version) "/"
1112 name "-" version ".tar.xz"))
1115 "0nbkb8pkrbbp1s892ndzhakzri3qxpw48kibgb0rqz6i0azfxrz8"))))
1116 (build-system cmake-build-system)
1118 `(("extra-cmake-modules" ,extra-cmake-modules)
1119 ("pkg-config" ,pkg-config)
1120 ("dbus" ,dbus) ; for the tests
1121 ("openbox" ,openbox) ; for the tests
1122 ("qttools" ,qttools)
1123 ("xorg-server" ,xorg-server-for-tests))) ; for the tests
1125 `(("libxrender" ,libxrender)
1127 ("qtx11extras" ,qtx11extras)
1128 ("xcb-utils-keysyms" ,xcb-util-keysyms)
1129 ("xcb-util-wm" ,xcb-util-wm)))
1132 (modify-phases %standard-phases
1133 (add-before 'check 'blacklist-failing-tests
1135 ;; Blacklist a failing test-functions. FIXME: Make it pass.
1136 (with-output-to-file "autotests/BLACKLIST"
1138 (display "[testGroupLeader]\n*\n")
1139 (display "[testClientMachine]\n*\n"))) ;; requires network
1143 ;; The test suite requires a running window anager
1144 (setenv "XDG_RUNTIME_DIR" "/tmp")
1145 (system "Xvfb :1 -ac -screen 0 640x480x24 &")
1146 (setenv "DISPLAY" ":1")
1147 (sleep 5) ;; Give Xvfb a few moments to get on it's feet
1148 (system "openbox &")
1149 (setenv "CTEST_OUTPUT_ON_FAILURE" "1")
1150 (setenv "DBUS_FATAL_WARNINGS" "0")
1151 (invoke "dbus-launch" "ctest" "."))))))
1152 (home-page "https://community.kde.org/Frameworks")
1153 (synopsis "KDE access to the windowing system")
1154 (description "KWindowSystem provides information about and allows
1155 interaction with the windowing system. It provides a high level API, which
1156 is windowing system independent and has platform specific
1157 implementations. This API is inspired by X11 and thus not all functionality
1158 is available on all windowing systems.
1160 In addition to the high level API, this framework also provides several
1161 lower level classes for interaction with the X Windowing System.")
1162 ;; Some source files mention lgpl2.0+, but the included license is
1163 ;; the lgpl2.1. Some source files are under non-copyleft licenses.
1164 (license license:lgpl2.1+)))
1166 (define-public modemmanager-qt
1168 (name "modemmanager-qt")
1173 "mirror://kde/stable/frameworks/"
1174 (version-major+minor version) "/"
1175 name "-" version ".tar.xz"))
1178 "0yv5q71cyyy04051ny5lr7n35pw391gxr6l324n6c0z7kgc560ad"))))
1179 (build-system cmake-build-system)
1181 `(("extra-cmake-modules" ,extra-cmake-modules)
1183 ("pkg-config" ,pkg-config)))
1185 ;; Headers contain #include <ModemManager/ModemManager.h>
1186 `(("modem-manager" ,modem-manager)))
1188 `(("qtbase" ,qtbase)))
1191 (modify-phases %standard-phases
1194 (setenv "DBUS_FATAL_WARNINGS" "0")
1195 (invoke "dbus-launch" "ctest" "."))))))
1196 (home-page "https://community.kde.org/Frameworks")
1197 (synopsis "Qt wrapper for ModemManager DBus API")
1198 (description "ModemManagerQt provides access to all ModemManager features
1199 exposed on DBus. It allows you to manage modem devices and access to
1200 information available for your modem devices, like signal, location and
1202 (license license:lgpl2.1+)))
1204 (define-public networkmanager-qt
1206 (name "networkmanager-qt")
1211 "mirror://kde/stable/frameworks/"
1212 (version-major+minor version) "/"
1213 name "-" version ".tar.xz"))
1216 "0ydfz6ikya1h8gg9c716y8lmy45iqnx0gaghkm0vz3c3ckx99l9g"))))
1217 (build-system cmake-build-system)
1219 `(("extra-cmake-modules" ,extra-cmake-modules)
1221 ("pkg-config" ,pkg-config)))
1223 ;; Headers contain #include <NetworkManager.h> and
1224 ;; #include <libnm/NetworkManager.h>
1225 `(("network-manager" ,network-manager)))
1227 `(("qtbase" ,qtbase)))
1230 (modify-phases %standard-phases
1233 (setenv "DBUS_FATAL_WARNINGS" "0")
1234 (invoke "dbus-launch" "ctest" "."))))))
1235 (home-page "https://community.kde.org/Frameworks")
1236 (synopsis "Qt wrapper for NetworkManager DBus API")
1237 (description "NetworkManagerQt provides access to all NetworkManager
1238 features exposed on DBus. It allows you to manage your connections and control
1239 your network devices and also provides a library for parsing connection settings
1240 which are used in DBus communication.")
1241 (license license:lgpl2.1+)))
1243 (define-public oxygen-icons
1245 (name "oxygen-icons")
1250 "mirror://kde/stable/frameworks/"
1251 (version-major+minor version) "/"
1252 name "5" "-" version ".tar.xz"))
1255 "0rh9bysiisnpz3c92hyba98f58dlmwf9zhbbb4vmab0qvm5d3q9g"))))
1256 (build-system cmake-build-system)
1258 `(("extra-cmake-modules" ,extra-cmake-modules)
1259 ("fdupes" ,fdupes)))
1261 `(("qtbase" ,qtbase)))
1262 (home-page "https://community.kde.org/Frameworks")
1263 (synopsis "Oxygen provides the standard icon theme for the KDE desktop")
1264 (description "Oxygen icon theme for the KDE desktop")
1265 (license license:lgpl3+)
1266 (properties '((upstream-name . "oxygen-icons5")))))
1268 (define-public prison
1275 (uri (string-append "mirror://kde/stable/frameworks/"
1276 (version-major+minor version) "/"
1277 name "-" version ".tar.xz"))
1279 (base32 "0spkm5j2qmwl374xrbm054rjv4rcqwsz0wl5v2nyrfq2ma4bzzw5"))))
1280 (build-system cmake-build-system)
1282 `(("extra-cmake-modules" ,extra-cmake-modules)))
1284 `(("libdmtx" ,libdmtx)
1285 ("qrencode" ,qrencode)
1286 ("qtbase" ,qtbase))) ;; TODO: rethink: nix propagates this
1287 (home-page "https://api.kde.org/frameworks/prison/html/index.html")
1288 (synopsis "Barcode generation abstraction layer")
1289 (description "Prison is a Qt-based barcode abstraction layer/library and
1290 provides uniform access to generation of barcodes with data.")
1291 (license license:lgpl2.1+)))
1293 (define-public qqc2-desktop-style
1295 (name "qqc2-desktop-style")
1300 "mirror://kde/stable/frameworks/"
1301 (version-major+minor version) "/"
1302 name "-" version ".tar.xz"))
1305 "1sz2735fn5665pyb5v70y2fmw2mkziq83di4h06pwday9vf2r6l5"))))
1306 (build-system cmake-build-system)
1308 `(("extra-cmake-modules" ,extra-cmake-modules)
1309 ("pkg-config" ,pkg-config)))
1312 ("kconfigwidgets" ,kconfigwidgets) ; optional
1313 ("kcoreaddons" ,kcoreaddons)
1314 ("kiconthemes" ,kiconthemes) ; optional
1315 ("kirigami" ,kirigami)
1317 ("qtdeclarative" ,qtdeclarative)
1318 ("qtquickcontrols2" ,qtquickcontrols2)))
1319 (home-page "https://community.kde.org/Frameworks")
1320 (synopsis "QtQuickControls2 style that integrates with the desktop")
1321 (description "This is a style for QtQuickControls2 which is using
1322 QWidget's QStyle to paint the controls in order to give it a native look and
1324 ;; Mostly LGPL 2+, but many files are dual-licensed
1325 (license (list license:lgpl2.1+ license:gpl3+))))
1327 (define-public solid
1334 "mirror://kde/stable/frameworks/"
1335 (version-major+minor version) "/"
1336 name "-" version ".tar.xz"))
1339 "0i124kyhd1hfnajp0hnqma35ycr3bh60z39gc6byhxb75p59swnl"))))
1340 (build-system cmake-build-system)
1343 (modify-phases %standard-phases
1346 (setenv "DBUS_FATAL_WARNINGS" "0")
1347 (invoke "dbus-launch" "ctest" "."))))))
1351 ("extra-cmake-modules" ,extra-cmake-modules)
1353 ("qttools" ,qttools)))
1355 `(("qtbase" ,qtbase)
1356 ("qtdeclarative" ,qtdeclarative)
1358 ;; TODO: Add runtime-only dependency MediaPlayerInfo
1359 (home-page "https://community.kde.org/Frameworks")
1360 (synopsis "Desktop hardware abstraction")
1361 (description "Solid is a device integration framework. It provides a way of
1362 querying and interacting with hardware independently of the underlying operating
1364 (license license:lgpl2.1+)))
1366 (define-public sonnet
1373 "mirror://kde/stable/frameworks/"
1374 (version-major+minor version) "/"
1375 name "-" version ".tar.xz"))
1378 "0gqxmyxmwn2rs9f8x2z8pfmbx0mvkyh7nalnsmfqkph8f0fja9ig"))))
1379 (build-system qt-build-system)
1381 `(("extra-cmake-modules" ,extra-cmake-modules)
1382 ("pkg-config" ,pkg-config)
1383 ("qttools" ,qttools)))
1385 `(("hunspell" ,hunspell)
1386 ;; TODO: hspell (for Hebrew), Voikko (for Finish)
1387 ("qtbase" ,qtbase)))
1388 (home-page "https://community.kde.org/Frameworks")
1389 (synopsis "Multi-language spell checker")
1390 (description "Sonnet is a plugin-based spell checking library for Qt-based
1391 applications. It supports several different plugins, including HSpell, Enchant,
1392 ASpell and HUNSPELL.")
1393 (license license:lgpl2.1+)))
1395 (define-public threadweaver
1397 (name "threadweaver")
1402 "mirror://kde/stable/frameworks/"
1403 (version-major+minor version) "/"
1404 name "-" version ".tar.xz"))
1407 "0z2906nmamvcg85jip98wq834rjs3nc1qlv3q182gw1cnh4nbdag"))))
1408 (build-system cmake-build-system)
1410 `(("extra-cmake-modules" ,extra-cmake-modules)))
1412 `(("qtbase" ,qtbase)))
1413 (home-page "https://community.kde.org/Frameworks")
1414 (synopsis "Helper for multithreaded programming")
1415 (description "ThreadWeaver is a helper for multithreaded programming. It
1416 uses a job-based interface to queue tasks and execute them in an efficient way.")
1417 (license license:lgpl2.1+)))
1422 ;; Tier 2 frameworks additionally depend on tier 1 frameworks, but still have
1423 ;; easily manageable dependencies.
1425 (define-public kactivities
1427 (name "kactivities")
1432 "mirror://kde/stable/frameworks/"
1433 (version-major+minor version) "/"
1434 name "-" version ".tar.xz"))
1437 "03h5r7z2a449hfvaj3zk1n7dhpj49liy5q60fb4nxz4yjkgca27s"))))
1438 (build-system cmake-build-system)
1440 `(("extra-cmake-modules" ,extra-cmake-modules)))
1444 ("kbookmarks" ,kbookmarks)
1445 ("kcodecs" ,kcodecs)
1446 ("kcompletion" ,kcompletion)
1447 ("kconfig" ,kconfig)
1448 ("kconfigwidgets" ,kconfigwidgets)
1449 ("kcoreaddons" ,kcoreaddons)
1451 ("kitemviews" ,kitemviews)
1452 ("kjobwidgets" ,kjobwidgets)
1453 ("kservice" ,kservice)
1454 ("kwidgetsaddons" ,kwidgetsaddons)
1455 ("kwindowsystem" ,kwindowsystem)
1456 ("kxmlgui" ,kxmlgui)
1458 ("qtdeclarative" ,qtdeclarative)
1460 (home-page "https://community.kde.org/Frameworks")
1461 (synopsis "Core components for the KDE Activity concept")
1462 (description "KActivities provides the infrastructure needed to manage a
1463 user's activities, allowing them to switch between tasks, and for applications
1464 to update their state to match the user's current activity. This includes a
1465 daemon, a library for interacting with that daemon, and plugins for integration
1466 with other frameworks.")
1468 (license (list license:gpl2+ license:lgpl2.0+ license:lgpl2.1+))))
1470 (define-public kauth
1477 "mirror://kde/stable/frameworks/"
1478 (version-major+minor version) "/"
1479 name "-" version ".tar.xz"))
1482 "08gkgmxaxqpavsqdmcgs4i8j63pg5qld7agd58irpw29pgq1fj9c"))))
1483 (build-system cmake-build-system)
1486 ("extra-cmake-modules" ,extra-cmake-modules)
1487 ("qttools" ,qttools)))
1489 `(("kcoreaddons" ,kcoreaddons)
1490 ("polkit-qt" ,polkit-qt)
1491 ("qtbase" ,qtbase)))
1494 (modify-phases %standard-phases
1495 (add-after 'unpack 'fix-cmake-install-directories
1497 ;; Make packages using kauth put their policy files and helpers
1498 ;; into their own prefix.
1499 (substitute* "KF5AuthConfig.cmake.in"
1500 (("@KAUTH_POLICY_FILES_INSTALL_DIR@")
1501 "${KDE_INSTALL_DATADIR}/polkit-1/actions")
1502 (("@KAUTH_HELPER_INSTALL_DIR@")
1503 "${KDE_INSTALL_LIBEXECDIR}")
1504 (("@KAUTH_HELPER_INSTALL_ABSOLUTE_DIR@")
1505 "${KDE_INSTALL_LIBEXECDIR}"))))
1508 (setenv "DBUS_FATAL_WARNINGS" "0")
1509 (invoke "dbus-launch" "ctest" "."))))))
1510 (home-page "https://community.kde.org/Frameworks")
1511 (synopsis "Execute actions as privileged user")
1512 (description "KAuth provides a convenient, system-integrated way to offload
1513 actions that need to be performed as a privileged user to small set of helper
1515 (license license:lgpl2.1+)))
1517 (define-public kcompletion
1519 (name "kcompletion")
1524 "mirror://kde/stable/frameworks/"
1525 (version-major+minor version) "/"
1526 name "-" version ".tar.xz"))
1529 "10ggypg09acc19gkvxsigfsaq8s5vqv64ada307blpzy8j74bisb"))))
1530 (build-system qt-build-system)
1532 `(("extra-cmake-modules" ,extra-cmake-modules)
1533 ("qttools" ,qttools)))
1535 `(("kconfig" ,kconfig)
1536 ("kwidgetsaddons" ,kwidgetsaddons)
1537 ("qtbase" ,qtbase)))
1538 (home-page "https://community.kde.org/Frameworks")
1539 (synopsis "Powerful autocompletion framework and widgets")
1540 (description "This framework helps implement autocompletion in Qt-based
1541 applications. It provides a set of completion-ready widgets, or can be
1542 integrated it into your application's other widgets.")
1543 (license license:lgpl2.1+)))
1545 (define-public kcontacts
1552 "mirror://kde/stable/frameworks/"
1553 (version-major+minor version) "/"
1554 name "-" version ".tar.xz"))
1557 "0xs5c5l4vck5i6879jax1nf93if02f9hyfkn60l36cxbphnbpw0h"))))
1558 (build-system cmake-build-system)
1560 `(("extra-cmake-modules" ,extra-cmake-modules)
1561 ("xorg-server" ,xorg-server))) ; for the tests
1563 `(("kcodecs" ,kcodecs)
1564 ("kconfig" ,kconfig)
1565 ("kcoreaddons" ,kcoreaddons)
1567 ("qtbase" ,qtbase)))
1570 (modify-phases %standard-phases
1571 (add-before 'check 'start-xorg-server
1572 (lambda* (#:key inputs #:allow-other-keys)
1573 ;; The test suite requires a running X server.
1574 ;; Xvfb doesn't have proper glx support and needs a pixeldepth
1575 ;; of 24 bit to avoid "libGL error: failed to load driver: swrast"
1576 ;; "Could not initialize GLX"
1577 (system (string-append (assoc-ref inputs "xorg-server")
1578 "/bin/Xvfb :1 -screen 0 640x480x24 &"))
1579 (setenv "DISPLAY" ":1")
1581 (home-page "https://community.kde.org/Frameworks")
1582 (synopsis "API for contacts/address book data following the vCard standard")
1583 (description "This library provides a vCard data model, vCard
1584 input/output, contact group management, locale-aware address formatting, and
1585 localized country name to ISO 3166-1 alpha 2 code mapping and vice verca.
1587 (license license:lgpl2.1+)))
1589 (define-public kcrash
1596 "mirror://kde/stable/frameworks/"
1597 (version-major+minor version) "/"
1598 name "-" version ".tar.xz"))
1601 "1xl3bzxfchfafcplil3g07gq1a3fnwx1i40bxp4jfsgb8d8slfwc"))))
1602 (build-system qt-build-system)
1604 `(("extra-cmake-modules" ,extra-cmake-modules)))
1606 `(("kcoreaddons" ,kcoreaddons)
1607 ("kwindowsystem" ,kwindowsystem)
1609 ("qtx11extras" ,qtx11extras)))
1610 (home-page "https://community.kde.org/Frameworks")
1611 (synopsis "Graceful handling of application crashes")
1612 (description "KCrash provides support for intercepting and handling
1613 application crashes.")
1614 (license license:lgpl2.1+)))
1616 (define-public kdoctools
1623 "mirror://kde/stable/frameworks/"
1624 (version-major+minor version) "/"
1625 name "-" version ".tar.xz"))
1628 "1zna9szii2r9agwfqbglk904zzpr3fyrz6x5v2rxrm3c9m110sm4"))))
1629 (build-system cmake-build-system)
1631 `(("extra-cmake-modules" ,extra-cmake-modules)))
1633 `(("docbook-xml" ,docbook-xml)
1634 ("docbook-xsl" ,docbook-xsl)
1635 ("karchive" ,karchive)
1637 ("libxml2" ,libxml2)
1638 ("libxslt" ,libxslt)
1640 ("perl-uri" ,perl-uri)
1641 ("qtbase" ,qtbase)))
1644 (modify-phases %standard-phases
1645 (add-after 'unpack 'cmake-find-docbook
1646 (lambda* (#:key inputs #:allow-other-keys)
1647 (substitute* (find-files "cmake" "\\.cmake$")
1648 (("CMAKE_SYSTEM_PREFIX_PATH")
1649 "CMAKE_PREFIX_PATH"))
1650 (substitute* "cmake/FindDocBookXML4.cmake"
1651 (("^.*xml/docbook/schema/dtd.*$")
1652 "xml/dtd/docbook\n"))
1653 (substitute* "cmake/FindDocBookXSL.cmake"
1654 (("^.*xml/docbook/stylesheet.*$")
1655 (string-append "xml/xsl/docbook-xsl-"
1656 ,(package-version docbook-xsl) "\n")))
1658 (add-after 'install 'add-symlinks
1659 ;; Some package(s) (e.g. kdelibs4support) refer to this locale by a
1660 ;; different spelling.
1661 (lambda* (#:key outputs #:allow-other-keys)
1662 (let ((xsl (string-append (assoc-ref outputs "out")
1663 "/share/kf5/kdoctools/customization/xsl/")))
1664 (symlink (string-append xsl "pt_br.xml")
1665 (string-append xsl "pt-BR.xml")))
1667 (home-page "https://community.kde.org/Frameworks")
1668 (synopsis "Create documentation from DocBook")
1669 (description "Provides tools to generate documentation in various format
1670 from DocBook files.")
1671 (license license:lgpl2.1+)))
1673 (define-public kfilemetadata
1675 (name "kfilemetadata")
1680 "mirror://kde/stable/frameworks/"
1681 (version-major+minor version) "/"
1682 name "-" version ".tar.xz"))
1685 "11wvddb7nqdyi5rin3xa0p32lmvc62yw47hwcdzc01lkfbxdn050"))))
1686 (build-system cmake-build-system)
1689 (modify-phases %standard-phases
1690 (add-before 'check 'disable-failing-test
1692 ;; Blacklist a failing test-function. FIXME: Make it pass.
1693 ;; UserMetaDataWriterTest fails with getxattr("…/writertest.txt")
1694 ;; -> EOPNOTSUPP (Operation not supported)
1695 (with-output-to-file "autotests/BLACKLIST"
1697 (display "[testMimetype]\n*\n")
1698 (display "[test]\n*\n")))
1701 `(("extra-cmake-modules" ,extra-cmake-modules)
1702 ("pkg-config" ,pkg-config)
1703 ("python-2" ,python-2)))
1706 ;; TODO: EPub http://sourceforge.net/projects/ebook-tools
1707 ("karchive" ,karchive)
1708 ("kcoreaddons" ,kcoreaddons)
1710 ("qtmultimedia" ,qtmultimedia)
1712 ;; Required run-time packages
1714 ;; Optional run-time packages
1717 ("poppler-qt5" ,poppler-qt5)
1718 ("taglib" ,taglib)))
1719 (home-page "https://community.kde.org/Frameworks")
1720 (synopsis "Extract metadata from different fileformats")
1721 (description "KFileMetaData provides a simple library for extracting the
1722 text and metadata from a number of different files. This library is typically
1723 used by file indexers to retrieve the metadata. This library can also be used
1724 by applications to write metadata.")
1725 (license (list license:lgpl2.0 license:lgpl2.1 license:lgpl3))))
1727 (define-public kimageformats
1729 (name "kimageformats")
1734 "mirror://kde/stable/frameworks/"
1735 (version-major+minor version) "/"
1736 name "-" version ".tar.xz"))
1739 "15y339by7jvsbmfqb33s3ain7sfhx3789xy2xjpkh5f2f9v29r2b"))))
1740 (build-system cmake-build-system)
1742 `(("extra-cmake-modules" ,extra-cmake-modules)
1743 ("pkg-config" ,pkg-config)))
1745 `(("karchive" ,karchive) ; for Krita and OpenRaster images
1746 ("openexr" ,openexr) ; for OpenEXR high dynamic-range images
1747 ("qtbase" ,qtbase)))
1750 (modify-phases %standard-phases
1751 ;; This test fails regularly (also at KDE CI, see
1752 ;; https://build.kde.org/job/Frameworks%20kimageformats%20kf5-qt5%20XenialQt5.7/6/testReport/)
1753 ;; delete offending portion
1754 (add-after 'unpack 'neuter-read-xcf-test
1756 (delete-file "autotests/read/xcf/simple-rgba-gimp-2.8.10.png")
1757 (delete-file "autotests/read/xcf/simple-rgba-gimp-2.8.10.xcf")))
1758 (add-before 'check 'check-setup
1760 ;; make Qt render "offscreen", required for tests
1761 (setenv "QT_QPA_PLATFORM" "offscreen")
1762 (setenv "QT_PLUGIN_PATH"
1763 (string-append (getcwd) "/bin:"
1764 (getenv "QT_PLUGIN_PATH")))
1766 ;; FIXME: The header files of ilmbase (propagated by openexr) are not
1767 ;; found when included by the header files of openexr, and an explicit
1768 ;; flag needs to be set.
1770 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
1771 (assoc-ref %build-inputs "ilmbase")
1772 "/include/OpenEXR"))))
1773 (home-page "https://community.kde.org/Frameworks")
1774 (synopsis "Plugins to allow QImage to support extra file formats")
1775 (description "This framework provides additional image format plugins for
1776 QtGui. As such it is not required for the compilation of any other software,
1777 but may be a runtime requirement for Qt-based software to support certain image
1779 (license license:lgpl2.1+)))
1781 (define-public kjobwidgets
1783 (name "kjobwidgets")
1788 "mirror://kde/stable/frameworks/"
1789 (version-major+minor version) "/"
1790 name "-" version ".tar.xz"))
1793 "0pg055ampm69yr1vn03s1ys3p18raj8f5pcg0hg9hb4sjkyrr3pn"))))
1794 (build-system cmake-build-system)
1796 `(("extra-cmake-modules" ,extra-cmake-modules)
1797 ("qttools" ,qttools)))
1799 `(("kcoreaddons" ,kcoreaddons)
1800 ("kwidgetsaddons" ,kwidgetsaddons)
1802 ("qtx11extras" ,qtx11extras)))
1803 (home-page "https://community.kde.org/Frameworks")
1804 (synopsis "Widgets for showing progress of asynchronous jobs")
1805 (description "KJobWIdgets provides widgets for showing progress of
1806 asynchronous jobs.")
1807 (license license:lgpl2.1+)))
1809 (define-public knotifications
1811 (name "knotifications")
1816 "mirror://kde/stable/frameworks/"
1817 (version-major+minor version) "/"
1818 name "-" version ".tar.xz"))
1821 "1rknfn50kq6ng7gclgg0n4qyhv2grc7xcf3gcax3bbyy46gajsl8"))))
1822 (build-system cmake-build-system)
1824 `(("extra-cmake-modules" ,extra-cmake-modules)
1826 ("qttools" ,qttools)))
1828 `(("kcodecs" ,kcodecs)
1829 ("kconfig" ,kconfig)
1830 ("kcoreaddons" ,kcoreaddons)
1831 ("kwindowsystem" ,kwindowsystem)
1834 ("qtspeech" ,qtspeech)
1835 ;; TODO: Think about adding dbusmenu-qt5 from
1836 ;; https://launchpad.net/libdbusmenu-qt
1837 ("qtx11extras" ,qtx11extras)))
1840 (modify-phases %standard-phases
1841 (add-before 'check 'check-setup
1843 (setenv "HOME" (getcwd))
1847 (setenv "DBUS_FATAL_WARNINGS" "0")
1848 (invoke "dbus-launch" "ctest" "."))))))
1849 (home-page "https://community.kde.org/Frameworks")
1850 (synopsis "Desktop notifications")
1851 (description "KNotification is used to notify the user of an event. It
1852 covers feedback and persistent events.")
1853 (license license:lgpl2.1+)))
1855 (define-public kpackage
1862 "mirror://kde/stable/frameworks/"
1863 (version-major+minor version) "/"
1864 name "-" version ".tar.xz"))
1867 "1h57kicsjkisysd2mmd5q9q5m421xqcv3p8vkjlqxkph5sa7y2q5"))
1868 ;; Default to: external paths/symlinks can be followed by a
1870 (patches (search-patches "kpackage-allow-external-paths.patch"))))
1871 (build-system cmake-build-system)
1873 `(("extra-cmake-modules" ,extra-cmake-modules)))
1875 `(("karchive" ,karchive)
1876 ("kconfig" ,kconfig)
1877 ("kcoreaddons" ,kcoreaddons)
1878 ("kdoctools" ,kdoctools)
1880 ("qtbase" ,qtbase)))
1883 (modify-phases %standard-phases
1884 (add-after 'unpack 'patch
1886 ;; Make QDirIterator follow symlinks
1887 (substitute* '("src/kpackage/packageloader.cpp"
1888 "src/kpackage/private/packagejobthread.cpp")
1889 (("^\\s*(const QDirIterator::IteratorFlags flags = QDirIterator::Subdirectories)(;)" _ a b)
1890 (string-append a " | QDirIterator::FollowSymlinks" b))
1891 (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
1892 (string-append a " | QDirIterator::FollowSymlinks" b)))
1894 (add-after 'unpack 'patch-tests
1896 ;; /bin/ls doesn't exist in the build-container use /etc/passwd
1897 (substitute* "autotests/packagestructuretest.cpp"
1898 (("(addDirectoryDefinition\\(\")bin(\".*\")bin(\".*\")bin\""
1900 (string-append a "etc" b "etc" c "etc\""))
1901 (("filePath\\(\"bin\", QStringLiteral\\(\"ls\"))")
1902 "filePath(\"etc\", QStringLiteral(\"passwd\"))")
1903 (("\"/bin/ls\"") "\"/etc/passwd\""))
1905 (add-before 'check 'check-setup
1907 (setenv "HOME" (getcwd))
1909 (home-page "https://community.kde.org/Frameworks")
1910 (synopsis "Installation and loading of additional content as packages")
1911 (description "The Package framework lets the user install and load packages
1912 of non binary content such as scripted extensions or graphic assets, as if they
1913 were traditional plugins.")
1914 (license (list license:gpl2+ license:lgpl2.1+))))
1923 "mirror://kde/stable/frameworks/"
1924 (version-major+minor version) "/"
1925 name "-" version ".tar.xz"))
1928 "10v61016kd1q41n4dwac1nsiixji64i5y501nx0hphpjkjbaklkr"))))
1929 (build-system cmake-build-system)
1931 `(("extra-cmake-modules" ,extra-cmake-modules)))
1933 `(("kcoreaddons" ,kcoreaddons)
1935 ;; TODO: utempter, for managing UTMP entries
1936 ("qtbase" ,qtbase)))
1938 `(#:tests? #f ; FIXME: 1/1 tests fail.
1940 (modify-phases %standard-phases
1941 (add-after 'unpack 'patch-tests
1943 (substitute* "autotests/kptyprocesstest.cpp"
1944 (("/bin/bash") (which "bash")))
1946 (home-page "https://community.kde.org/Frameworks")
1947 (synopsis "Interfacing with pseudo terminal devices")
1948 (description "This library provides primitives to interface with pseudo
1949 terminal devices as well as a KProcess derived class for running child processes
1950 and communicating with them using a pty.")
1951 (license (list license:gpl2+ license:lgpl2.1+))))
1953 (define-public kunitconversion
1955 (name "kunitconversion")
1960 "mirror://kde/stable/frameworks/"
1961 (version-major+minor version) "/"
1962 name "-" version ".tar.xz"))
1965 "0yzq2jxja9wnhz91cyli2mnw32xynnzbf1lr0hk6vi8a1w2mkrzz"))))
1966 (build-system cmake-build-system)
1969 (modify-phases %standard-phases
1970 (add-after 'unpack 'disable-a-failing-test-case
1972 ;; FIXME: Re-enable this test-case. It was committed with the
1973 ;; message: "tsan says it's clean, apart from issues in Qt
1974 ;; (reported upstream)"
1975 (substitute* "autotests/convertertest.cpp"
1976 (("const int numThreads = 2") "const int numThreads = 0")))))))
1978 `(("extra-cmake-modules" ,extra-cmake-modules)))
1981 ("qtbase" ,qtbase)))
1982 (home-page "https://community.kde.org/Frameworks")
1983 (synopsis "Converting physical units")
1984 (description "KUnitConversion provides functions to convert values in
1985 different physical units. It supports converting different prefixes (e.g. kilo,
1986 mega, giga) as well as converting between different unit systems (e.g. liters,
1988 (license license:lgpl2.1+)))
1990 (define-public syndication
1992 (name "syndication")
1997 "mirror://kde/stable/frameworks/"
1998 (version-major+minor version) "/"
1999 name "-" version ".tar.xz"))
2002 "1d0k6x11giylfkr183sm307n4v6rjpwkqp7y9wfhimjrcprwf2g6"))))
2003 (build-system cmake-build-system)
2005 `(("extra-cmake-modules" ,extra-cmake-modules)))
2007 `(("kcodecs" ,kcodecs)
2008 ("qtbase" ,qtbase)))
2009 (home-page "https://community.kde.org/Frameworks")
2010 (synopsis "RSS/Atom parser library")
2011 (description "@code{syndication} supports RSS (0.9/1.0, 0.91..2.0) and
2012 Atom (0.3 and 1.0) feeds. The library offers a unified, format-agnostic view
2013 on the parsed feed, so that the using application does not need to distinguish
2014 between feed formats.")
2015 (license license:lgpl2.1+)))
2020 ;; Tier 3 frameworks are generally more powerful, comprehensive packages, and
2021 ;; consequently have more complex dependencies.
2023 (define-public baloo
2030 "mirror://kde/stable/frameworks/"
2031 (version-major+minor version) "/"
2032 name "-" version ".tar.xz"))
2035 "1qhqv19glg98146cyc7ykq02b5b9m936xcml1w1p8fx32cp2zbch"))))
2036 (build-system cmake-build-system)
2038 `(("kcoreaddons" ,kcoreaddons)
2039 ("kfilemetadata" ,kfilemetadata)))
2042 ("extra-cmake-modules" ,extra-cmake-modules)))
2044 `(("kbookmarks" ,kbookmarks)
2045 ("kcompletion" ,kcompletion)
2046 ("kconfig" ,kconfig)
2048 ("kdbusaddons" ,kdbusaddons)
2049 ("kidletime" ,kidletime)
2051 ("kitemviews" ,kitemviews)
2053 ("kjobwidgets" ,kjobwidgets)
2054 ("kservice" ,kservice)
2055 ("kwidgetsaddons" ,kwidgetsaddons)
2056 ("kxmlgui" ,kxmlgui)
2059 ("qtdeclarative" ,qtdeclarative)
2063 (modify-phases %standard-phases
2064 (add-before 'check 'check-setup
2066 (setenv "HOME" (getcwd))
2067 ;; make Qt render "offscreen", required for tests
2068 (setenv "QT_QPA_PLATFORM" "offscreen")
2069 (with-output-to-file "bin/BLACKLIST"
2071 ;; Blacklist some failing tests. FIXME: Make them pass.
2072 (display "[testRenameFile]\n*\n")
2073 (display "[testMoveFile]\n*\n")))
2075 (add-after 'unpack 'remove-failing-test
2076 ;; This test fails on i686 and aarch64
2078 (substitute* "autotests/unit/file/CMakeLists.txt"
2079 (("^\\s*ecm_add_test\\(.* TEST_NAME metadatamovertest .*" line)
2080 (string-append "# " line)))
2084 (setenv "DBUS_FATAL_WARNINGS" "0")
2085 (invoke "dbus-launch" "ctest" "."))))))
2086 (home-page "https://community.kde.org/Frameworks")
2087 (synopsis "File searching and indexing")
2088 (description "Baloo provides file searching and indexing. It does so by
2089 maintaining an index of the contents of your files.")
2091 (license (list license:gpl2+ license:lgpl2.1+))))
2093 (define-public kactivities-stats
2095 (name "kactivities-stats")
2100 "mirror://kde/stable/frameworks/"
2101 (version-major+minor version) "/"
2102 name "-" version ".tar.xz"))
2105 "187fyl92pnkn317pi1pkmf7bv5z6aqdhqa6b8531xgl06gyigy45"))))
2106 (build-system cmake-build-system)
2108 `(("extra-cmake-modules" ,extra-cmake-modules)))
2111 ("kactivities" ,kactivities)
2112 ("kconfig" ,kconfig)
2114 ("qtdeclarative" ,qtdeclarative)))
2115 (home-page "https://community.kde.org/Frameworks")
2116 (synopsis "Access usage statistics collected by the activity manager")
2117 (description "The KActivitiesStats library provides a querying mechanism for
2118 the data that the activitiy manager collects - which documents have been opened
2119 by which applications, and what documents have been linked to which activity.")
2121 (license (list license:lgpl2.0+ license:lgpl2.1+ license:lgpl3+))))
2123 (define-public kbookmarks
2130 "mirror://kde/stable/frameworks/"
2131 (version-major+minor version) "/"
2132 name "-" version ".tar.xz"))
2135 "011r2ms57ycz5kma0q35cji4isj0lskrxrambk11jibs1xjdis2v"))))
2136 (build-system cmake-build-system)
2138 `(("kwidgetsaddons" ,kwidgetsaddons)))
2140 `(("extra-cmake-modules" ,extra-cmake-modules)
2141 ("qttools" ,qttools)))
2144 ("kcodecs" ,kcodecs)
2145 ("kconfig" ,kconfig)
2146 ("kconfigwidgets" ,kconfigwidgets)
2147 ("kcoreaddons" ,kcoreaddons)
2148 ("kiconthemes" ,kiconthemes)
2149 ("kxmlgui" ,kxmlgui)
2150 ("qtbase" ,qtbase)))
2153 (modify-phases %standard-phases
2154 (add-before 'check 'check-setup
2156 (setenv "HOME" (getcwd))
2157 ;; make Qt render "offscreen", required for tests
2158 (setenv "QT_QPA_PLATFORM" "offscreen")
2160 (home-page "https://community.kde.org/Frameworks")
2161 (synopsis "Bookmarks management library")
2162 (description "KBookmarks lets you access and manipulate bookmarks stored
2163 using the XBEL format.")
2164 (license license:lgpl2.1+)))
2166 (define-public kcmutils
2173 "mirror://kde/stable/frameworks/"
2174 (version-major+minor version) "/"
2175 name "-" version ".tar.xz"))
2178 "1q12n9sfgrm2f8bspsl5i9gbv4jwl25w5id9m9rnnr87hck35g68"))))
2179 (build-system cmake-build-system)
2181 `(("kconfigwidgets" ,kconfigwidgets)
2182 ("kservice" ,kservice)))
2184 `(("extra-cmake-modules" ,extra-cmake-modules)))
2187 (modify-phases %standard-phases
2188 (add-after 'unpack 'patch
2190 (substitute* "src/kpluginselector.cpp"
2191 ;; make QDirIterator follow symlinks
2192 (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
2193 (string-append a " | QDirIterator::FollowSymlinks" b)))
2194 (substitute* "src/kcmoduleloader.cpp"
2195 ;; print plugin name when loading fails
2196 (("^\\s*(qWarning\\(\\) << \"Error loading) (plugin:\")( << loader\\.errorString\\(\\);)" _ a b c)
2197 (string-append a " KCM plugin\" << mod.service()->library() << \":\"" c)))
2201 ("kcodecs" ,kcodecs)
2202 ("kconfig" ,kconfig)
2203 ("kcoreaddons" ,kcoreaddons)
2204 ("kdeclarative" ,kdeclarative)
2205 ("kiconthemes" ,kiconthemes)
2206 ("kitemviews" ,kitemviews)
2208 ("kpackage" ,kpackage)
2209 ("kwidgetsaddons" ,kwidgetsaddons)
2210 ("kxmlgui" ,kxmlgui)
2212 ("qtdeclarative" ,qtdeclarative)))
2213 (home-page "https://community.kde.org/Frameworks")
2214 (synopsis "Utilities for KDE System Settings modules")
2215 (description "KCMUtils provides various classes to work with KCModules.
2216 KCModules can be created with the KConfigWidgets framework.")
2217 (license license:lgpl2.1+)))
2219 (define-public kconfigwidgets
2221 (name "kconfigwidgets")
2226 "mirror://kde/stable/frameworks/"
2227 (version-major+minor version) "/"
2228 name "-" version ".tar.xz"))
2231 "098xdfvnyz9bdkc6iyq5r2s4vkfdhbrri4015yzbs73j4f2wcxz5"))))
2232 (build-system qt-build-system)
2235 ("kcodecs" ,kcodecs)
2236 ("kconfig" ,kconfig)
2237 ("kwidgetsaddons" ,kwidgetsaddons)))
2239 `(("extra-cmake-modules" ,extra-cmake-modules)
2240 ("kdoctools" ,kdoctools)))
2242 `(("kcoreaddons" ,kcoreaddons)
2243 ("kguiaddons" ,kguiaddons)
2245 ;; todo: PythonModuleGeneration
2247 ("qttools" ,qttools)))
2250 (modify-phases %standard-phases
2251 (add-after 'unpack 'patch
2253 (substitute* "src/khelpclient.cpp"
2254 ;; make QDirIterator follow symlinks
2255 (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
2256 (string-append a " | QDirIterator::FollowSymlinks" b)))
2258 (home-page "https://community.kde.org/Frameworks")
2259 (synopsis "Widgets for configuration dialogs")
2260 (description "KConfigWidgets provides easy-to-use classes to create
2261 configuration dialogs, as well as a set of widgets which uses KConfig to store
2264 (license (list license:gpl2+ license:lgpl2.1+))))
2266 (define-public kdeclarative
2268 (name "kdeclarative")
2273 "mirror://kde/stable/frameworks/"
2274 (version-major+minor version) "/"
2275 name "-" version ".tar.xz"))
2278 "027wnrmr79fxkf4jpdpfhp7smdai2wn9y71l1h4kgqgwfq8anwy8"))))
2279 (build-system cmake-build-system)
2281 `(("kconfig" ,kconfig)
2282 ("kpackage" ,kpackage)))
2284 `(("extra-cmake-modules" ,extra-cmake-modules)
2285 ("pkg-config" ,pkg-config)
2286 ("xorg-server" ,xorg-server-for-tests)))
2289 ("kbookmarks" ,kbookmarks)
2290 ("kcodecs" ,kcodecs)
2291 ("kcompletion" ,kcompletion)
2292 ("kconfigwidgets" ,kconfigwidgets)
2293 ("kcoreaddons" ,kcoreaddons)
2294 ("kglobalaccel" ,kglobalaccel)
2295 ("kguiaddons" ,kguiaddons)
2296 ("kiconthemes" ,kiconthemes)
2298 ("kitemviews" ,kitemviews)
2300 ("kjobwidgets" ,kjobwidgets)
2301 ("kservice" ,kservice)
2302 ("kwidgetsaddons" ,kwidgetsaddons)
2303 ("kwindowsystem" ,kwindowsystem)
2304 ("kxmlgui" ,kxmlgui)
2305 ("libepoxy" ,libepoxy)
2307 ("qtdeclarative" ,qtdeclarative)
2311 (modify-phases %standard-phases
2312 (add-before 'check 'start-xorg-server
2313 (lambda* (#:key inputs #:allow-other-keys)
2314 ;; The test suite requires a running X server, setting
2315 ;; QT_QPA_PLATFORM=offscreen does not suffice.
2316 (system (string-append (assoc-ref inputs "xorg-server")
2317 "/bin/Xvfb :1 -screen 0 640x480x24 &"))
2318 (setenv "DISPLAY" ":1")
2320 (home-page "https://community.kde.org/Frameworks")
2321 (synopsis "Integration of QML and KDE work spaces")
2322 (description "KDeclarative provides integration of QML and KDE work spaces.
2323 It's comprises two parts: a library used by the C++ part of your application to
2324 intergrate QML with KDE Frameworks specific features, and a series of QML imports
2325 that offer bindings to some of the Frameworks.")
2327 (license (list license:gpl2+ license:lgpl2.1+))))
2336 "mirror://kde/stable/frameworks/"
2337 (version-major+minor version) "/"
2338 name "-" version ".tar.xz"))
2341 "0kjr6ff1g6xyas5si9b7zilcqcx4mgfkzfpq2c59fz1wd8q8fl05"))))
2342 (build-system cmake-build-system)
2344 `(("extra-cmake-modules" ,extra-cmake-modules)))
2346 `(("kconfig" ,kconfig)
2347 ("kcoreaddons" ,kcoreaddons)
2349 ("kdbusaddons" ,kdbusaddons)
2350 ("kdoctools" ,kdoctools)
2352 ("kservice" ,kservice)
2353 ("qtbase" ,qtbase)))
2354 (home-page "https://community.kde.org/Frameworks")
2355 (synopsis "Central daemon of KDE work spaces")
2356 (description "KDED stands for KDE Daemon. KDED runs in the background and
2357 performs a number of small tasks. Some of these tasks are built in, others are
2358 started on demand.")
2360 (license (list license:lgpl2.0+ license:lgpl2.1+))))
2362 (define-public kdesignerplugin
2364 (name "kdesignerplugin")
2369 "mirror://kde/stable/frameworks/"
2370 (version-major+minor version) "/portingAids/"
2371 name "-" version ".tar.xz"))
2374 "1w7glszd82iyw6kxzmp0568rm3qfadi7vw7gfxg4c15w5ikkvxn9"))))
2375 (build-system qt-build-system)
2377 `(("extra-cmake-modules" ,extra-cmake-modules)
2378 ("qttools" ,qttools)))
2380 `(("kconfig" ,kconfig)
2381 ("kcoreaddons" ,kcoreaddons)
2382 ("kdoctools" ,kdoctools)
2385 ("kcompletion" ,kcompletion)
2386 ("kconfigwidgets" ,kconfigwidgets)
2387 ("kiconthemes" ,kiconthemes)
2388 ("kitemviews" ,kitemviews)
2390 ("kplotting" ,kplotting)
2391 ("ktextwidgets" ,ktextwidgets)
2392 ("kdewebkit" ,kdewebkit)
2393 ("kwidgetsaddons" ,kwidgetsaddons)
2394 ("kxmlgui" ,kxmlgui)
2395 ("qtwebkit" ,qtwebkit)
2396 ("sonnet" ,sonnet)))
2397 (home-page "https://community.kde.org/Frameworks")
2398 (synopsis "Integrating KDE frameworks widgets with Qt Designer")
2399 (description "This framework provides plugins for Qt Designer that allow it
2400 to display the widgets provided by various KDE frameworks, as well as a utility
2401 (kgendesignerplugin) that can be used to generate other such plugins from
2402 ini-style description files.")
2403 (license license:lgpl2.1+)))
2405 (define-public kdesu
2412 "mirror://kde/stable/frameworks/"
2413 (version-major+minor version) "/"
2414 name "-" version ".tar.xz"))
2417 "038m0sdpnsy50m3g78sfg7wk26933rh3578qsnapw2cyimx8ypxx"))))
2418 (build-system cmake-build-system)
2422 `(("extra-cmake-modules" ,extra-cmake-modules)))
2424 `(("kconfig" ,kconfig)
2425 ("kcoreaddons" ,kcoreaddons)
2427 ("kservice" ,kservice)
2428 ("qtbase" ,qtbase)))
2429 (home-page "https://community.kde.org/Frameworks")
2430 (synopsis "User interface for running shell commands with root privileges")
2431 (description "KDESU provides functionality for building GUI front ends for
2432 (password asking) console mode programs. kdesu and kdessh use it to interface
2433 with su and ssh respectively.")
2434 (license license:lgpl2.1+)))
2436 (define-public kdewebkit
2443 "mirror://kde/stable/frameworks/"
2444 (version-major+minor version) "/portingAids/"
2445 name "-" version ".tar.xz"))
2448 "1s3bmn1ck7xvc7a6gv7ywv9161hdahiiw20aq88s4qkm2s5wyy6v"))))
2449 (build-system cmake-build-system)
2451 `(("extra-cmake-modules" ,extra-cmake-modules)))
2453 `(("kconfig" ,kconfig)
2454 ("kcoreaddons" ,kcoreaddons)
2456 ("kjobwidgets" ,kjobwidgets)
2458 ("kservice" ,kservice)
2459 ("kwallet" ,kwallet)
2461 ("qttools" ,qttools)
2462 ("qtwebkit" ,qtwebkit)))
2463 (home-page "https://community.kde.org/Frameworks")
2464 (synopsis "KDE Integration for QtWebKit")
2465 (description "This library provides KDE integration of the HTML rendering
2466 engine WebKit via QtWebKit.")
2467 (license license:lgpl2.1+)))
2469 (define-public kemoticons
2476 "mirror://kde/stable/frameworks/"
2477 (version-major+minor version) "/"
2478 name "-" version ".tar.xz"))
2481 "0li1lz5kqlczvgq6b2x3nkr0hl96a337ab83fq9wxp5sx440d6sd"))))
2482 (build-system cmake-build-system)
2484 `(("kservice" ,kservice)))
2486 `(("extra-cmake-modules" ,extra-cmake-modules)))
2488 `(("karchive" ,karchive)
2489 ("kconfig" ,kconfig)
2490 ("kcoreaddons" ,kcoreaddons)
2491 ("qtbase" ,qtbase)))
2494 (modify-phases %standard-phases
2495 (add-before 'check 'check-setup
2497 (setenv "HOME" (getcwd))
2498 ;; make Qt render "offscreen", required for tests
2499 (setenv "QT_QPA_PLATFORM" "offscreen")
2501 (home-page "https://community.kde.org/Frameworks")
2502 (synopsis "Convert text emoticons to graphical emoticons")
2503 (description "KEmoticons converts emoticons from text to a graphical
2504 representation with images in HTML. It supports setting different themes for
2505 emoticons coming from different providers.")
2506 ;; dual licensed, image files are licensed under cc-by-sa4.0
2507 (license (list license:gpl2+ license:lgpl2.1+ license:cc-by-sa4.0))))
2509 (define-public kglobalaccel
2511 (name "kglobalaccel")
2516 "mirror://kde/stable/frameworks/"
2517 (version-major+minor version) "/"
2518 name "-" version ".tar.xz"))
2521 "1xpfvwnrj81mk3di02n37b469gxzmnk89icmcz6wwyk54m86fw76"))))
2522 (build-system qt-build-system)
2524 `(("extra-cmake-modules" ,extra-cmake-modules)
2525 ("pkg-config" ,pkg-config)
2526 ("qttools" ,qttools)))
2528 `(("kconfig" ,kconfig)
2530 ("kcoreaddons" ,kcoreaddons)
2531 ("kdbusaddons" ,kdbusaddons)
2532 ("kservice" ,kservice)
2533 ("kwindowsystem" ,kwindowsystem)
2536 ("qtx11extras" ,qtx11extras)
2537 ("xcb-util-keysyms" ,xcb-util-keysyms)))
2538 (home-page "https://community.kde.org/Frameworks")
2539 (synopsis "Global desktop keyboard shortcuts")
2540 (description "KGlobalAccel allows you to have global accelerators that are
2541 independent of the focused window. Unlike regular shortcuts, the application's
2542 window does not need focus for them to be activated.")
2543 (license license:lgpl2.1+)))
2545 (define-public kiconthemes
2547 (name "kiconthemes")
2552 "mirror://kde/stable/frameworks/"
2553 (version-major+minor version) "/"
2554 name "-" version ".tar.xz"))
2557 "18p4np4chykpy2ck8c76999nh8gdj75hjfakg1pakdqhlash9q6w"))))
2558 (build-system cmake-build-system)
2560 `(("extra-cmake-modules" ,extra-cmake-modules)
2561 ("shared-mime-info" ,shared-mime-info)))
2563 `(("karchive" ,karchive)
2565 ("kcodecs" ,kcodecs)
2566 ("kcoreaddons" ,kcoreaddons)
2567 ("kconfig" ,kconfig)
2568 ("kconfigwidgets" ,kconfigwidgets)
2570 ("kitemviews" ,kitemviews)
2571 ("kwidgetsaddons" ,kwidgetsaddons)
2574 ("qttools" ,qttools)))
2577 (modify-phases %standard-phases
2578 (add-before 'check 'check-setup
2579 (lambda* (#:key inputs #:allow-other-keys)
2580 (setenv "XDG_DATA_DIRS"
2581 (string-append (assoc-ref inputs "shared-mime-info")
2583 (setenv "HOME" (getcwd))
2584 ;; make Qt render "offscreen", required for tests
2585 (setenv "QT_QPA_PLATFORM" "offscreen")
2587 (home-page "https://community.kde.org/Frameworks")
2588 (synopsis "Icon GUI utilities")
2589 (description "This library contains classes to improve the handling of icons
2590 in applications using the KDE Frameworks.")
2591 (license license:lgpl2.1+)))
2593 (define-public kinit
2600 "mirror://kde/stable/frameworks/"
2601 (version-major+minor version) "/"
2602 name "-" version ".tar.xz"))
2605 "06p0i9674nzam0f4ac2jrl9pgkycz0lc0kdn24ds2rlh85cqvjwx"))
2606 ;; Use the store paths for other packages and dynamically loaded
2608 (patches (search-patches "kinit-kdeinit-extra_libs.patch"
2609 "kinit-kdeinit-libpath.patch"))))
2610 (build-system cmake-build-system)
2613 (modify-phases %standard-phases
2614 (add-after 'unpack 'patch-paths
2615 (lambda* (#:key inputs outputs #:allow-other-keys)
2616 ;; Set patched-in values:
2617 (substitute* "src/kdeinit/kinit.cpp"
2618 (("GUIX_PKGS_KF5_KIO") (assoc-ref inputs "kio"))
2619 (("GUIX_PKGS_KF5_PARTS") (assoc-ref inputs "kparts"))
2620 (("GUIX_PKGS_KF5_PLASMA") (assoc-ref inputs "plasma-framework")))
2622 (native-search-paths
2623 (list (search-path-specification
2624 (variable "KDEINIT5_LIBRARY_PATH")
2625 (files '("lib/")))))
2627 `(("extra-cmake-modules" ,extra-cmake-modules)
2628 ("pkg-config" ,pkg-config)))
2631 ("kbookmarks" ,kbookmarks)
2632 ("kcodecs" ,kcodecs)
2633 ("kcompletion" ,kcompletion)
2634 ("kconfig" ,kconfig)
2635 ("kconfigwidgets" ,kconfigwidgets)
2636 ("kcoreaddons" ,kcoreaddons)
2638 ("kdoctools" ,kdoctools)
2640 ("kitemviews" ,kitemviews)
2642 ("kjobwidgets" ,kjobwidgets)
2644 ("kservice" ,kservice)
2645 ("kwidgetsaddons" ,kwidgetsaddons)
2646 ("kwindowsystem" ,kwindowsystem)
2647 ("kxmlgui" ,kxmlgui)
2648 ("libcap" ,libcap) ; to install start_kdeinit with CAP_SYS_RESOURCE
2649 ("plasma-framework" ,plasma-framework)
2652 (home-page "https://community.kde.org/Frameworks")
2653 (synopsis "Library to speed up start of applications on KDE workspaces")
2654 (description "Kdeinit is a process launcher similar to init used for booting
2655 UNIX. It launches processes by forking and then loading a dynamic library which
2656 contains a @code{kdemain(@dots{})} function. Using kdeinit to launch KDE
2657 applications makes starting KDE applications faster and reduces memory
2660 (license (list license:lgpl2.0+ license:lgpl2.1+))))
2669 "mirror://kde/stable/frameworks/"
2670 (version-major+minor version) "/"
2671 name "-" version ".tar.xz"))
2674 "048gq6j8di6nzsacpr8j40kw6y5607zgwqr21ahcnnb0gd2sly4l"))
2675 (patches (search-patches "kio-search-smbd-on-PATH.patch"))))
2676 (build-system cmake-build-system)
2678 `(("kbookmarks" ,kbookmarks)
2679 ("kconfig" ,kconfig)
2680 ("kcompletion" ,kcompletion)
2681 ("kcoreaddons" ,kcoreaddons)
2682 ("kitemviews" ,kitemviews)
2683 ("kjobwidgets" ,kjobwidgets)
2684 ("kservice" ,kservice)
2685 ("kxmlgui" ,kxmlgui)
2689 ("extra-cmake-modules" ,extra-cmake-modules)))
2691 `(;; TODO: LibACL , <ftp://oss.sgi.com/projects/xfs/cmd_tars>
2693 ("karchive" ,karchive)
2695 ("kcodecs" ,kcodecs)
2696 ("kconfigwidgets" ,kconfigwidgets)
2698 ("kdbusaddons" ,kdbusaddons)
2699 ("kdoctools" ,kdoctools)
2700 ("kiconthemes" ,kiconthemes)
2702 ("knotifications" ,knotifications)
2703 ("ktextwidgets" ,ktextwidgets)
2704 ("kwallet" ,kwallet)
2705 ("kwidgetsaddons" ,kwidgetsaddons)
2706 ("kwindowsystem" ,kwindowsystem)
2707 ("libxml2" ,libxml2)
2708 ("libxslt" ,libxslt)
2710 ("qtscript" ,qtscript)
2711 ("qttools" ,qttools)
2712 ("qtx11extras" ,qtx11extras)
2713 ("sonnet" ,sonnet)))
2715 `(#:tests? #f ; FIXME: 41/50 tests fail.
2717 (modify-phases %standard-phases
2718 (add-after 'unpack 'patch
2720 ;; Better error message (taken from NixOS)
2721 (substitute* "src/kiod/kiod_main.cpp"
2722 (("(^\\s*qCWarning(KIOD_CATEGORY) << \"Error loading plugin:\")( << loader.errorString();)" _ a b)
2723 (string-append a "<< name" b)))
2725 (add-before 'check 'check-setup
2727 (setenv "HOME" (getcwd))
2728 (setenv "XDG_RUNTIME_DIR" (getcwd))
2729 ;; make Qt render "offscreen", required for tests
2730 (setenv "QT_QPA_PLATFORM" "offscreen")
2732 (add-after 'install 'add-symlinks
2733 ;; Some package(s) (e.g. bluedevil) refer to these service types by
2734 ;; the wrong name. I would prefer to patch those packages, but I
2735 ;; cannot find the files!
2736 (lambda* (#:key outputs #:allow-other-keys)
2737 (let ((kst5 (string-append (assoc-ref outputs "out")
2738 "/share/kservicetypes5/")))
2739 (symlink (string-append kst5 "kfileitemactionplugin.desktop")
2740 (string-append kst5 "kfileitemaction-plugin.desktop"))))))))
2743 ;; (setenv "DBUS_FATAL_WARNINGS" "0")
2744 ;; (zero? (system* "dbus-launch" "ctest" ".")))))))
2745 (home-page "https://community.kde.org/Frameworks")
2746 (synopsis "Network transparent access to files and data")
2747 (description "This framework implements a lot of file management functions.
2748 It supports accessing files locally as well as via HTTP and FTP out of the box
2749 and can be extended by plugins to support other protocols as well. There is a
2750 variety of plugins available, e.g. to support access via SSH. The framework can
2751 also be used to bridge a native protocol to a file-based interface. This makes
2752 the data accessible in all applications using the KDE file dialog or any other
2753 KIO enabled infrastructure.")
2754 (license license:lgpl2.1+)))
2756 (define-public knewstuff
2763 "mirror://kde/stable/frameworks/"
2764 (version-major+minor version) "/"
2765 name "-" version ".tar.xz"))
2768 "0pkm7qapkd9xypmhsjfwlgq0l4nfgya5b23lv3zkci8lrbssaqsv"))))
2769 (build-system cmake-build-system)
2771 `(("attica" ,attica)
2772 ("kservice" ,kservice)
2773 ("kxmlgui" ,kxmlgui)))
2775 `(("extra-cmake-modules" ,extra-cmake-modules)))
2777 `(("karchive" ,karchive)
2779 ("kbookmarks" ,kbookmarks)
2780 ("kcodecs" ,kcodecs)
2781 ("kcompletion" ,kcompletion)
2782 ("kconfig" ,kconfig)
2783 ("kconfigwidgets" ,kconfigwidgets)
2784 ("kcoreaddons" ,kcoreaddons)
2786 ("kitemviews" ,kitemviews)
2788 ("kiconthemes" ,kiconthemes)
2789 ("kjobwidgets" ,kjobwidgets)
2790 ("ktextwidgets" ,ktextwidgets)
2791 ("kwidgetsaddons" ,kwidgetsaddons)
2793 ("qtdeclarative" ,qtdeclarative)
2795 ("sonnet" ,sonnet)))
2798 (modify-phases %standard-phases
2799 (add-before 'check 'check-setup
2800 (lambda _ ; XDG_DATA_DIRS isn't set
2801 (setenv "HOME" (getcwd))
2802 ;; make Qt render "offscreen", required for tests
2803 (setenv "QT_QPA_PLATFORM" "offscreen")
2805 (home-page "https://community.kde.org/Frameworks")
2806 (synopsis "Framework for downloading and sharing additional application data")
2807 (description "The KNewStuff library implements collaborative data sharing
2808 for applications. It uses libattica to support the Open Collaboration Services
2810 (license license:lgpl2.1+)))
2812 (define-public knotifyconfig
2814 (name "knotifyconfig")
2819 "mirror://kde/stable/frameworks/"
2820 (version-major+minor version) "/"
2821 name "-" version ".tar.xz"))
2824 "1d90gsnxy3kqd6f1bkhflrdwwx3w65sw4c7nfpkdxxhlqhzc9zr4"))))
2825 (build-system cmake-build-system)
2827 `(("extra-cmake-modules" ,extra-cmake-modules)))
2830 ("kbookmarks" ,kbookmarks)
2831 ("kcodecs" ,kcodecs)
2832 ("kcompletion" ,kcompletion)
2833 ("kconfig" ,kconfig)
2834 ("kconfigwidgets" ,kconfigwidgets)
2835 ("kcoreaddons" ,kcoreaddons)
2837 ("kitemviews" ,kitemviews)
2839 ("kjobwidgets" ,kjobwidgets)
2840 ("knotifications" ,knotifications)
2841 ("kservice" ,kservice)
2842 ("kwidgetsaddons" ,kwidgetsaddons)
2843 ("kxmlgui" ,kxmlgui)
2847 (home-page "https://community.kde.org/Frameworks")
2848 (synopsis "Configuration dialog for desktop notifications")
2849 (description "KNotifyConfig provides a configuration dialog for desktop
2850 notifications which can be embedded in your application.")
2852 (license (list license:lgpl2.0+ license:lgpl2.1+))))
2854 (define-public kparts
2861 "mirror://kde/stable/frameworks/"
2862 (version-major+minor version) "/"
2863 name "-" version ".tar.xz"))
2866 "0md0349r4mdm2r04p5s3pgm17v4w40r3kz58lzp6qfcw25b969nw"))))
2867 (build-system qt-build-system)
2870 ("ktextwidgets" ,ktextwidgets)
2871 ("kxmlgui" ,kxmlgui)))
2873 `(("extra-cmake-modules" ,extra-cmake-modules)
2874 ("shared-mime-info" ,shared-mime-info)))
2877 ("kbookmarks" ,kbookmarks)
2878 ("kcodecs" ,kcodecs)
2879 ("kcompletion" ,kcompletion)
2880 ("kconfig" ,kconfig)
2881 ("kconfigwidgets" ,kconfigwidgets)
2882 ("kcoreaddons" ,kcoreaddons)
2883 ("kiconthemes" ,kiconthemes)
2884 ("kitemviews" ,kitemviews)
2886 ("kjobwidgets" ,kjobwidgets)
2887 ("kservice" ,kservice)
2888 ("kwidgetsaddons" ,kwidgetsaddons)
2891 ("sonnet" ,sonnet)))
2892 (home-page "https://community.kde.org/Frameworks")
2893 (synopsis "Plugin framework for user interface components")
2894 (description "This library implements the framework for KDE parts, which are
2895 widgets with a user-interface defined in terms of actions.")
2896 (license license:lgpl2.1+)))
2898 (define-public kpeople
2905 "mirror://kde/stable/frameworks/"
2906 (version-major+minor version) "/"
2907 name "-" version ".tar.xz"))
2910 "1q2hh2i8hd638p907g0srdxmxm9h2ay91dmhslqzcgwnlhln4gfl"))))
2911 (build-system qt-build-system)
2913 `(("extra-cmake-modules" ,extra-cmake-modules)))
2915 `(("kconfig" ,kconfig)
2916 ("kcoreaddons" ,kcoreaddons)
2917 ("kitemviews" ,kitemviews)
2919 ("kservice" ,kservice)
2920 ("kwidgetsaddons" ,kwidgetsaddons)
2922 ("qtdeclarative" ,qtdeclarative)))
2924 `(#:tests? #f)) ; FIXME: 1/3 tests fail.
2925 (home-page "https://community.kde.org/Frameworks")
2926 (synopsis "Provides access to all contacts and aggregates them by person")
2927 (description "KPeople offers unified access to our contacts from different
2928 sources, grouping them by person while still exposing all the data. KPeople
2929 also provides facilities to integrate the data provided in user interfaces by
2930 providing QML and Qt Widgets components. The sources are plugin-based, allowing
2931 to easily extend the contacts collection.")
2932 (license license:lgpl2.1+)))
2934 (define-public krunner
2941 "mirror://kde/stable/frameworks/"
2942 (version-major+minor version) "/"
2943 name "-" version ".tar.xz"))
2946 "0gjqwzsg865gha8k7hda28hsrbfzhw9jz610lkqff5713lqbcn5a"))))
2947 (build-system cmake-build-system)
2949 `(("plasma-framework" ,plasma-framework)))
2951 `(("extra-cmake-modules" ,extra-cmake-modules)))
2954 ("kbookmarks" ,kbookmarks)
2955 ("kcodecs" ,kcodecs)
2956 ("kcompletion" ,kcompletion)
2957 ("kconfig" ,kconfig)
2958 ("kconfigwidgets" ,kconfigwidgets)
2959 ("kcoreaddons" ,kcoreaddons)
2961 ("kitemviews" ,kitemviews)
2963 ("kjobwidgets" ,kjobwidgets)
2964 ("kpackage" ,kpackage)
2965 ("kservice" ,kservice)
2966 ("kwidgetsaddons" ,kwidgetsaddons)
2967 ("kwindowsystem" ,kwindowsystem)
2968 ("kxmlgui" ,kxmlgui)
2970 ("qtdeclarative" ,qtdeclarative)
2972 ("threadweaver" ,threadweaver)))
2975 (modify-phases %standard-phases
2976 (add-after 'unpack 'fix-paths-for-test
2977 ;; This test tries to access paths like /home, /usr/bin and /bin/ls
2978 ;; which don't exist in the build-container. Change to existing paths.
2980 (substitute* "autotests/runnercontexttest.cpp"
2981 (("/home\"") "/tmp\"") ;; single path-part
2982 (("//usr/bin\"") (string-append (getcwd) "\"")) ;; multiple path-parts
2984 (string-append (assoc-ref %build-inputs "coreutils") path)))))
2985 (add-before 'check 'check-setup
2987 (setenv "HOME" (getcwd))
2988 ;; make Qt render "offscreen", required for tests
2989 (setenv "QT_QPA_PLATFORM" "offscreen")
2990 ;; Blacklist some failing test-functions. FIXME: Make them pass.
2991 (with-output-to-file "bin/BLACKLIST"
2993 (display "[testMatch]\n*\n")
2994 (display "[testMulti]\n*\n")))
2996 (home-page "https://community.kde.org/Frameworks")
2997 (synopsis "Framework for Plasma runners")
2998 (description "The Plasma workspace provides an application called KRunner
2999 which, among other things, allows one to type into a text area which causes
3000 various actions and information that match the text appear as the text is being
3002 (license license:lgpl2.1+)))
3004 (define-public kservice
3011 "mirror://kde/stable/frameworks/"
3012 (version-major+minor version) "/"
3013 name "-" version ".tar.xz"))
3016 "1rdapw9wirfq6pyaza0k7sg6q21rv3cfyalpzrwfrk5gkgpqxzwk"))))
3017 (build-system cmake-build-system)
3019 `(("kconfig" ,kconfig)
3020 ("kcoreaddons" ,kcoreaddons)))
3023 ("extra-cmake-modules" ,extra-cmake-modules)
3026 `(("kcrash" ,kcrash)
3027 ("kdbusaddons" ,kdbusaddons)
3028 ("kdoctools" ,kdoctools)
3030 ("qtbase" ,qtbase)))
3032 `(#:tests? #f ; FIXME: 6/10 tests fail.
3034 (modify-phases %standard-phases
3035 (add-after 'unpack 'patch
3036 ;; Adopted from NixOS' patches "qdiriterator-follow-symlinks" and
3037 ;; "no-canonicalize-path".
3039 (substitute* "src/sycoca/kbuildsycoca.cpp"
3040 ;; make QDirIterator follow symlinks
3041 (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
3042 (string-append a " | QDirIterator::FollowSymlinks" b)))
3043 (substitute* "src/sycoca/vfolder_menu.cpp"
3044 ;; Normalize path, but don't resolve symlinks (taken from
3046 (("^\\s*QString resolved = QDir\\(dir\\)\\.canonicalPath\\(\\);")
3047 "QString resolved = QDir::cleanPath(dir);"))
3049 (add-before 'check 'check-setup
3051 (setenv "HOME" (getcwd))
3052 ;; make Qt render "offscreen", required for tests
3053 (setenv "QT_QPA_PLATFORM" "offscreen")
3055 (home-page "https://community.kde.org/Frameworks")
3056 (synopsis "Plugin framework for desktop services")
3057 (description "KService provides a plugin framework for handling desktop
3058 services. Services can be applications or libraries. They can be bound to MIME
3059 types or handled by application specific code.")
3061 (license (list license:gpl2+ license:gpl3+ license:lgpl2.1+))))
3063 (define-public ktexteditor
3065 (name "ktexteditor")
3070 "mirror://kde/stable/frameworks/"
3071 (version-major+minor version) "/"
3072 "ktexteditor-" version ".tar.xz"))
3075 "0vfl6rr3624n8v29z07z5c0nh5af5kfg28cnp5ksfvfnssxfzfqa"))))
3076 (build-system cmake-build-system)
3078 `(("kparts" ,kparts)))
3080 `(("extra-cmake-modules" ,extra-cmake-modules)
3081 ("pkg-config" ,pkg-config)))
3083 `(;; TODO: editor-config
3084 ("karchive" ,karchive)
3086 ("kbookmarks" ,kbookmarks)
3087 ("kcodecs" ,kcodecs)
3088 ("kcompletion" ,kcompletion)
3089 ("kconfig" ,kconfig)
3090 ("kconfigwidgets" ,kconfigwidgets)
3091 ("kcoreaddons" ,kcoreaddons)
3092 ("kguiaddons" ,kguiaddons)
3093 ("kiconthemes" ,kiconthemes)
3095 ("kitemviews" ,kitemviews)
3097 ("kjobwidgets" ,kjobwidgets)
3098 ("kservice" ,kservice)
3099 ("ksyntaxhighlighting" ,ksyntaxhighlighting)
3100 ("ktextwidgets" ,ktextwidgets)
3101 ("kwidgetsaddons" ,kwidgetsaddons)
3102 ("kxmlgui" ,kxmlgui)
3103 ("libgit2" ,libgit2)
3106 ("qtdeclarative" ,qtdeclarative)
3107 ("qtscript" ,qtscript)
3108 ("qtxmlpatterns" ,qtxmlpatterns)
3110 ("sonnet" ,sonnet)))
3112 `(#:tests? #f ; FIXME: 2/54 tests fail: Cannot find fontdirectory qtbase/lib/font
3114 (modify-phases %standard-phases
3115 (add-after 'unpack 'setup
3116 (lambda* (#:key inputs #:allow-other-keys)
3117 (setenv "XDG_DATA_DIRS" ; FIXME build phase doesn't find parts.desktop
3118 (string-append (assoc-ref inputs "kparts") "/share"))
3120 (add-before 'check 'check-setup
3122 (setenv "HOME" (getcwd))
3123 ;; make Qt render "offscreen", required for tests
3124 (setenv "QT_QPA_PLATFORM" "offscreen")
3126 (add-after 'install 'add-symlinks
3127 ;; Some package(s) (e.g. plasma-sdk) refer to these service types
3128 ;; by the wrong name. I would prefer to patch those packages, but
3129 ;; I cannot find the files!
3130 (lambda* (#:key outputs #:allow-other-keys)
3131 (let ((kst5 (string-append (assoc-ref outputs "out")
3132 "/share/kservicetypes5/")))
3133 (symlink (string-append kst5 "ktexteditorplugin.desktop")
3134 (string-append kst5 "ktexteditor-plugin.desktop"))
3136 (home-page "https://community.kde.org/Frameworks")
3137 (synopsis "Full text editor component")
3138 (description "KTextEditor provides a powerful text editor component that you
3139 can embed in your application, either as a KPart or using the KF5::TextEditor
3142 (license (list license:gpl2+ license:lgpl2.0+ license:lgpl2.1+))))
3144 (define-public ktextwidgets
3146 (name "ktextwidgets")
3151 "mirror://kde/stable/frameworks/"
3152 (version-major+minor version) "/"
3153 name "-" version ".tar.xz"))
3156 "1qb1mad5bg19xwykzpwk2b3s505ka4jkg0fsi56ri57wq8gv4qha"))))
3157 (build-system qt-build-system)
3160 ("sonnet" ,sonnet)))
3162 `(("extra-cmake-modules" ,extra-cmake-modules)
3163 ("qttools" ,qttools)))
3166 ("kcodecs" ,kcodecs)
3167 ("kcompletion" ,kcompletion)
3168 ("kconfig" ,kconfig)
3169 ("kconfigwidgets" ,kconfigwidgets)
3170 ("kcoreaddons" ,kcoreaddons)
3171 ("kiconthemes" ,kiconthemes)
3172 ("kservice" ,kservice)
3173 ("kwidgetsaddons" ,kwidgetsaddons)
3174 ("kwindowsystem" ,kwindowsystem)
3176 ("qtspeech" ,qtspeech)))
3177 (home-page "https://community.kde.org/Frameworks")
3178 (synopsis "Text editing widgets")
3179 (description "KTextWidgets provides widgets for displaying and editing text.
3180 It supports rich text as well as plain text.")
3182 (license (list license:lgpl2.0+ license:lgpl2.1+))))
3184 (define-public kwallet
3191 "mirror://kde/stable/frameworks/"
3192 (version-major+minor version) "/"
3193 name "-" version ".tar.xz"))
3196 "1dp3mrgl0h6wqp4wcqpvnvkacwkrrn5lrv6bdl008kx1y594s28g"))))
3197 (build-system cmake-build-system)
3199 `(("extra-cmake-modules" ,extra-cmake-modules)))
3203 ("kcodecs" ,kcodecs)
3204 ("kconfig" ,kconfig)
3205 ("kconfigwidgets" ,kconfigwidgets)
3206 ("kcoreaddons" ,kcoreaddons)
3207 ("kdbusaddons" ,kdbusaddons)
3208 ("kdoctools" ,kdoctools)
3209 ("kiconthemes" ,kiconthemes)
3211 ("knotifications" ,knotifications)
3212 ("kservice" ,kservice)
3213 ("kwidgetsaddons" ,kwidgetsaddons)
3214 ("kwindowsystem" ,kwindowsystem)
3215 ("libgcrypt" ,libgcrypt)
3218 ("qtbase" ,qtbase)))
3219 (home-page "https://community.kde.org/Frameworks")
3220 (synopsis "Safe desktop-wide storage for passwords")
3221 (description "This framework contains an interface to KWallet, a safe
3222 desktop-wide storage for passwords and the kwalletd daemon used to safely store
3223 the passwords on KDE work spaces.")
3224 (license license:lgpl2.1+)))
3226 (define-public kxmlgui
3233 "mirror://kde/stable/frameworks/"
3234 (version-major+minor version) "/"
3235 name "-" version ".tar.xz"))
3238 "0x0mfapgl8w4xal8lamh3v27a9kdb7qyaxdn48gja4x85pkvi87i"))))
3239 (build-system cmake-build-system)
3241 `(("kconfig" ,kconfig)
3242 ("kconfigwidgets" ,kconfigwidgets)))
3244 `(("extra-cmake-modules" ,extra-cmake-modules)))
3246 `(("attica" ,attica)
3248 ("kcodecs" ,kcodecs)
3249 ("kcoreaddons" ,kcoreaddons)
3250 ("kglobalaccel" ,kglobalaccel)
3251 ("kiconthemes" ,kiconthemes)
3252 ("kitemviews" ,kitemviews)
3254 ("ktextwidgets" ,ktextwidgets)
3255 ("kwidgetsaddons" ,kwidgetsaddons)
3256 ("kwindowsystem" ,kwindowsystem)
3258 ("qttools" ,qttools)
3259 ("sonnet" ,sonnet)))
3261 `(#:tests? #f ; FIXME: 1/5 tests fail.
3263 (modify-phases %standard-phases
3264 (add-before 'check 'check-setup
3266 (setenv "HOME" (getcwd))
3267 ;; make Qt render "offscreen", required for tests
3268 (setenv "QT_QPA_PLATFORM" "offscreen")
3270 (home-page "https://community.kde.org/Frameworks")
3271 (synopsis "Framework for managing menu and toolbar actions")
3272 (description "KXMLGUI provides a framework for managing menu and toolbar
3273 actions in an abstract way. The actions are configured through a XML description
3274 and hooks in the application code. The framework supports merging of multiple
3275 descriptions for integrating actions from plugins.")
3277 (license (list license:gpl2+ license:lgpl2.1+))))
3279 (define-public kxmlrpcclient
3281 (name "kxmlrpcclient")
3286 "mirror://kde/stable/frameworks/"
3287 (version-major+minor version) "/"
3288 name "-" version ".tar.xz"))
3291 "0k82cyxjipqpky7gs0zb5s1bc6jf22d5vwpwyiqjy32da63mc89c"))))
3292 (build-system cmake-build-system)
3296 `(("extra-cmake-modules" ,extra-cmake-modules)))
3299 ("kbookmarks" ,kbookmarks)
3300 ("kcodecs" ,kcodecs)
3301 ("kcompletion" ,kcompletion)
3302 ("kconfig" ,kconfig)
3303 ("kconfigwidgets" ,kconfigwidgets)
3304 ("kcoreaddons" ,kcoreaddons)
3305 ("kitemviews" ,kitemviews)
3307 ("kjobwidgets" ,kjobwidgets)
3308 ("kservice" ,kservice)
3309 ("kwidgetsaddons" ,kwidgetsaddons)
3310 ("kxmlgui" ,kxmlgui)
3313 (home-page "https://community.kde.org/Frameworks")
3314 (synopsis "XML-RPC client")
3315 (description "This library contains simple XML-RPC Client support. It is a
3316 complete client and is easy to use. Only one interface is exposed,
3317 kxmlrpcclient/client.h and from that interface, you only need to use 3 methods:
3318 setUrl, setUserAgent and call.")
3320 (license (list license:bsd-2 license:lgpl2.1+))))
3322 (define-public plasma-framework
3324 (name "plasma-framework")
3329 "mirror://kde/stable/frameworks/"
3330 (version-major+minor version) "/"
3331 name "-" version ".tar.xz"))
3334 "0p0ziqw70lklx59d0nij3p9yi1vdacdfyrrp7zf74iwxd7598hci"))))
3335 (build-system cmake-build-system)
3337 `(("kpackage" ,kpackage)
3338 ("kservice" ,kservice)))
3340 `(("extra-cmake-modules" ,extra-cmake-modules)
3341 ("pkg-config" ,pkg-config)))
3343 `(("kactivities" ,kactivities)
3344 ("karchive" ,karchive)
3346 ("kbookmarks" ,kbookmarks)
3347 ("kcodecs" ,kcodecs)
3348 ("kcompletion" ,kcompletion)
3349 ("kconfig" ,kconfig)
3350 ("kconfigwidgets" ,kconfigwidgets)
3351 ("kcoreaddons" ,kcoreaddons)
3352 ("kdbusaddons" ,kdbusaddons)
3353 ("kdeclarative" ,kdeclarative)
3354 ("kdoctools" ,kdoctools)
3355 ("kglobalaccel" ,kglobalaccel)
3356 ("kguiaddons" ,kguiaddons)
3357 ("kiconthemes" ,kiconthemes)
3358 ("kirigami" ,kirigami)
3359 ("kitemviews" ,kitemviews)
3362 ("kjobwidgets" ,kjobwidgets)
3363 ("knotificantions" ,knotifications)
3364 ("kwayland" ,kwayland)
3365 ("kwidgetsaddons" ,kwidgetsaddons)
3366 ("kwindowsystem" ,kwindowsystem)
3367 ("kxmlgui" ,kxmlgui)
3370 ("qtdeclarative" ,qtdeclarative)
3371 ("qtquickcontrols2" ,qtquickcontrols2)
3373 ("qtx11extras" ,qtx11extras)
3376 `(#:tests? #f ; FIXME: 9/15 tests fail.
3378 (modify-phases %standard-phases
3379 (add-before 'check 'check-setup
3381 (setenv "HOME" (getcwd))
3382 ;; make Qt render "offscreen", required for tests
3383 (setenv "QT_QPA_PLATFORM" "offscreen")
3385 (home-page "https://community.kde.org/Frameworks")
3386 (synopsis "Libraries, components and tools of Plasma workspaces")
3387 (description "The plasma framework provides QML components, libplasma and
3390 (license (list license:gpl2+ license:lgpl2.1+))))
3392 (define-public purpose
3399 "mirror://kde/stable/frameworks/"
3400 (version-major+minor version) "/"
3401 name "-" version ".tar.xz"))
3404 "1mc5z131z9da6qjhlxqz64ys4fgq38iryna58f8l04x8f9igjn8f"))))
3405 (build-system cmake-build-system)
3407 `(("extra-cmake-modules" ,extra-cmake-modules)))
3409 `(;;TODO: ("kaccounts" ,kaccounts)
3410 ("kconfig" ,kconfig)
3411 ("kcoreaddons" ,kcoreaddons)
3412 ("knotifications" ,knotifications)
3415 ("kirigami" ,kirigami)
3417 ("qtdeclarative" ,qtdeclarative)))
3419 `(#:tests? #f ;; seem to require network; don't find QTQuick components
3420 #:configure-flags '("-DBUILD_TESTING=OFF"))) ; not run anyway
3421 (home-page "https://community.kde.org/Frameworks")
3422 (synopsis "Offers available actions for a specific purpose")
3423 (description "This framework offers the possibility to create integrate
3424 services and actions on any application without having to implement them
3425 specifically. Purpose will offer them mechanisms to list the different
3426 alternatives to execute given the requested action type and will facilitate
3427 components so that all the plugins can receive all the information they
3429 (license license:lgpl2.1+)))
3431 ;; This version of kdbusaddons does not use kinit as an input, and is used to
3432 ;; build kinit-bootstrap, as well as bootstrap versions of all kinit
3433 ;; dependencies which also rely on kdbusaddons.
3434 (define kdbusaddons-bootstrap
3436 (inherit kdbusaddons)
3438 (inherit (package-source kdbusaddons))
3440 (inputs (alist-delete "kinit" (package-inputs kdbusaddons)))
3442 (substitute-keyword-arguments (package-arguments kdbusaddons)
3444 `(modify-phases ,phases
3445 (delete 'patch-source)))))))
3447 (define kinit-bootstrap
3448 ((package-input-rewriting `((,kdbusaddons . ,kdbusaddons-bootstrap))) kinit))
3453 ;; Tier 4 frameworks can be mostly ignored by application programmers; this
3454 ;; tier consists of plugins acting behind the scenes to provide additional
3455 ;; functionality or platform integration to existing frameworks (including
3458 (define-public kde-frameworkintegration
3460 (name "kde-frameworkintegration")
3465 "mirror://kde/stable/frameworks/"
3466 (version-major+minor version) "/"
3467 "frameworkintegration-" version ".tar.xz"))
3470 "0n8n6lnzswi2q848qy2b4rcvkd0y1dywlk6hdmcnn8dfbxy6b050"))))
3471 (build-system cmake-build-system)
3473 `(("extra-cmake-modules" ,extra-cmake-modules)
3474 ("pkg-config" ,pkg-config)))
3475 ;; TODO: Optional packages not yet in Guix: packagekitqt5, AppStreamQt
3477 `(("kconfig" ,kconfig)
3478 ("kconfigwidgets" ,kconfigwidgets)
3479 ("kcoreaddons" ,kcoreaddons)
3481 ("kiconthemes" ,kiconthemes)
3482 ("kitemviews" ,kitemviews)
3483 ("knewstuff" ,knewstuff)
3484 ("knotificantions" ,knotifications)
3485 ("kpackage" ,kpackage)
3486 ("kwidgetsaddons" ,kwidgetsaddons)
3488 ("qtx11extras" ,qtx11extras)))
3491 (modify-phases %standard-phases
3492 (add-before 'check 'check-setup
3494 (setenv "HOME" (getcwd))
3495 ;; Make Qt render "offscreen", required for tests
3496 (setenv "QT_QPA_PLATFORM" "offscreen")
3498 (home-page "https://community.kde.org/Frameworks")
3499 (synopsis "KDE Frameworks 5 workspace and cross-framework integration plugins")
3500 (description "Framework Integration is a set of plugins responsible for
3501 better integration of Qt applications when running on a KDE Plasma
3503 ;; This package is distributed under either LGPL2 or LGPL3, but some
3504 ;; files are explicitly LGPL2+.
3505 (license (list license:lgpl2.0 license:lgpl3 license:lgpl2.0+))
3506 (properties `((upstream-name . "frameworkintegration")))))
3511 ;; Porting Aids frameworks provide code and utilities to ease the transition
3512 ;; from kdelibs 4 to KDE Frameworks 5. Code should aim to port away from this
3513 ;; framework, new projects should avoid using these libraries.
3515 (define-public kdelibs4support
3517 (name "kdelibs4support")
3523 "mirror://kde/stable/frameworks/"
3524 (version-major+minor version) "/portingAids/"
3525 name "-" version ".tar.xz"))
3527 (base32 "17mywcmgp1yzdipwwaypbkxiyybk1w0sps50jv1bl0f23ya19mlc"))))
3528 (build-system cmake-build-system)
3531 ("docbook-xml" ,docbook-xml-4.4) ; optional
3532 ("extra-cmake-modules" ,extra-cmake-modules)
3534 ("perl-uri" ,perl-uri)
3535 ("pkg-config" ,pkg-config)
3536 ("shared-mime-info" ,shared-mime-info)
3537 ("kjobwidgets" ,kjobwidgets) ;; required for running the tests
3539 ("tzdata" ,tzdata)))
3541 ;; These are required to be installed along with this package, see
3542 ;; lib64/cmake/KF5KDELibs4Support/KF5KDELibs4SupportConfig.cmake
3543 `(("karchive" ,karchive)
3545 ("kconfigwidgets" ,kconfigwidgets)
3546 ("kcoreaddons" ,kcoreaddons)
3548 ("kdbusaddons" ,kdbusaddons)
3549 ("kdesignerplugin" ,kdesignerplugin)
3550 ("kdoctools" ,kdoctools)
3551 ("kemoticons" ,kemoticons)
3552 ("kguiaddons" ,kguiaddons)
3553 ("kiconthemes" ,kiconthemes)
3555 ("kitemmodels" ,kitemmodels)
3556 ("knotifications" ,knotifications)
3558 ("ktextwidgets" ,ktextwidgets)
3559 ("kunitconversion" ,kunitconversion)
3560 ("kwindowsystem" ,kwindowsystem)
3561 ("qtbase" ,qtbase)))
3563 `(("kcompletion" ,kcompletion)
3564 ("kconfig" ,kconfig)
3566 ("kglobalaccel" ,kglobalaccel)
3569 ("kservice" ,kservice)
3570 ("kwidgetsaddons" ,kwidgetsaddons)
3571 ("kxmlgui" ,kxmlgui)
3573 ("networkmanager-qt" ,networkmanager-qt)
3574 ("openssl" ,openssl)
3576 ("qttools" ,qttools)
3577 ("qtx11extras" ,qtx11extras)))
3578 ;; FIXME: Use Guix ca-bundle.crt in etc/xdg/ksslcalist and
3579 ;; share/kf5/kssl/ca-bundle.crt
3580 ;; TODO: NixOS has nix-kde-include-dir.patch to change std-dir "include"
3581 ;; into "@dev@/include/". Think about whether this is needed for us, too.
3584 (modify-phases %standard-phases
3585 (add-after 'unpack 'make-cmake-to-find-docbook
3587 (substitute* "cmake/FindDocBookXML4.cmake"
3588 (("^.*xml/docbook/schema/dtd.*$")
3589 "xml/dtd/docbook\n"))
3592 (add-after 'install 'check-post-install
3593 (lambda* (#:key inputs tests? #:allow-other-keys)
3594 (setenv "HOME" (getcwd))
3595 (setenv "TZDIR" ; KDateTimeTestsome needs TZDIR
3596 (string-append (assoc-ref inputs "tzdata")
3598 ;; Make Qt render "offscreen", required for tests
3599 (setenv "QT_QPA_PLATFORM" "offscreen")
3600 ;; enable debug output
3601 (setenv "CTEST_OUTPUT_ON_FAILURE" "1") ; enable debug output
3602 (setenv "DBUS_FATAL_WARNINGS" "0")
3603 ;; Make kstandarddirstest pass (see https://bugs.kde.org/381098)
3604 (mkdir-p ".kde-unit-test/xdg/config")
3605 (with-output-to-file ".kde-unit-test/xdg/config/foorc"
3606 (lambda () #t)) ;; simply touch the file
3607 ;; Blacklist a test-function (failing at build.kde.org, too).
3608 (with-output-to-file "autotests/BLACKLIST"
3610 (display "[testSmb]\n*\n")))
3611 ;; kuniqueapptest hangs. FIXME: Make this test pass.
3612 (invoke "dbus-launch" "ctest" "."
3613 "-E" "kstandarddirstest|kuniqueapptest"))))))
3614 (home-page "https://community.kde.org/Frameworks")
3615 (synopsis "KDE Frameworks 5 porting aid from KDELibs4")
3616 (description "This framework provides code and utilities to ease the
3617 transition from kdelibs 4 to KDE Frameworks 5. This includes CMake macros and
3618 C++ classes whose functionality has been replaced by code in CMake, Qt and
3621 Code should aim to port away from this framework eventually. The API
3622 documentation of the classes in this framework and the notes at
3623 http://community.kde.org/Frameworks/Porting_Notes should help with this.")
3624 ;; Most files are distributed under LGPL2+, but the package includes code
3625 ;; under a variety of licenses.
3626 (license (list license:lgpl2.1+ license:lgpl2.0 license:lgpl2.0+
3627 license:gpl2 license:gpl2+
3628 license:expat license:bsd-2 license:bsd-3
3629 license:public-domain))))
3631 (define-public khtml
3639 "mirror://kde/stable/frameworks/"
3640 (version-major+minor version) "/portingAids/"
3641 name "-" version ".tar.xz"))
3643 (base32 "15f77r6dxkkvi2vxvxlwa7qz3whmz229g79bgadiwffmzxja0ywd"))))
3644 (build-system qt-build-system)
3646 `(("extra-cmake-modules" ,extra-cmake-modules)
3649 `(("giflib" ,giflib)
3651 ("karchive" ,karchive)
3652 ("kcodecs" ,kcodecs)
3653 ("kglobalaccel" ,kglobalaccel)
3655 ("kiconthemes" ,kiconthemes)
3658 ("knotifications" ,knotifications)
3660 ("ktextwidgets" ,ktextwidgets)
3661 ("kwallet" ,kwallet)
3662 ("kwidgetsaddons" ,kwidgetsaddons)
3663 ("kwindowsystem" ,kwindowsystem)
3664 ("kxmlgui" ,kxmlgui)
3665 ("libjpeg" ,libjpeg)
3667 ("openssl" ,openssl)
3670 ("qtx11extras" ,qtx11extras)
3671 ("sonnet" ,sonnet)))
3672 (home-page "https://community.kde.org/Frameworks")
3673 (synopsis "KDE Frameworks 5 HTML widget and component")
3674 (description "KHTML is a web rendering engine, based on the KParts
3675 technology and using KJS for JavaScript support.")
3676 ;; Most files are distributed under LGPL2+, but the package includes code
3677 ;; under a variety of licenses.
3678 (license (list license:lgpl2.0+ license:lgpl2.1+
3679 license:gpl2 license:gpl3+
3680 license:expat license:bsd-2 license:bsd-3))))
3690 "mirror://kde/stable/frameworks/"
3691 (version-major+minor version) "/portingAids/"
3692 name "-" version ".tar.xz"))
3694 (base32 "16zsan9c8kba5m70h34y544id7gig2bcbcs4s90s27pckijkkarp"))))
3695 (build-system cmake-build-system)
3697 `(("extra-cmake-modules" ,extra-cmake-modules)
3698 ("kdoctools" ,kdoctools)
3700 ("pkg-config" ,pkg-config)))
3703 ("qtbase" ,qtbase)))
3704 (home-page "https://community.kde.org/Frameworks")
3705 (synopsis "KDE Frameworks 5 support for Javascript scripting in Qt
3707 (description "Add-on library to Qt which adds JavaScript scripting
3709 ;; Most files are distributed under LGPL2+, but the package also includes
3710 ;; code under a variety of licenses.
3711 (license (list license:lgpl2.1+
3712 license:bsd-2 license:bsd-3
3713 (license:non-copyleft "file://src/kjs/dtoa.cpp")))))
3715 (define-public kjsembed
3723 "mirror://kde/stable/frameworks/"
3724 (version-major+minor version) "/portingAids/"
3725 name "-" version ".tar.xz"))
3727 (base32 "00sr6lv1nai2y6aawvqwnx4pbx8pw9b1jrpa0klc014gc42l6i7b"))))
3728 (build-system cmake-build-system)
3730 `(("extra-cmake-modules" ,extra-cmake-modules)
3731 ("kdoctools" ,kdoctools)
3732 ("qttools" ,qttools)))
3738 (home-page "https://community.kde.org/Frameworks")
3739 (synopsis "KDE Frameworks 5 embedded Javascript engine for Qt")
3740 (description "KJSEmbed provides a method of binding Javascript objects to
3741 QObjects, so you can script your applications.")
3742 (license license:lgpl2.1+)))
3744 (define-public kmediaplayer
3746 (name "kmediaplayer")
3752 "mirror://kde/stable/frameworks/"
3753 (version-major+minor version) "/portingAids/"
3754 name "-" version ".tar.xz"))
3756 (base32 "19v53h3lkys3ryrjacrdng9ak91g03b9s986xhnw1r84zy242kdm"))))
3757 (build-system qt-build-system)
3759 `(("extra-cmake-modules" ,extra-cmake-modules)
3760 ("kdoctools" ,kdoctools)
3761 ("qttools" ,qttools)))
3763 `(("kcompletion" ,kcompletion)
3764 ("kcoreaddons" ,kcoreaddons)
3766 ("kiconthemes" ,kiconthemes)
3769 ("kwidgetsaddons" ,kwidgetsaddons)
3770 ("kxmlgui" ,kxmlgui)
3771 ("qtbase" ,qtbase)))
3772 (home-page "https://community.kde.org/Frameworks")
3773 (synopsis "KDE Frameworks 5 plugin interface for media player features")
3774 (description "KMediaPlayer builds on the KParts framework to provide a
3775 common interface for KParts that can play media files.
3777 This framework is a porting aid. It is not recommended for new projects, and
3778 existing projects that use it are advised to port away from it, and use plain
3780 (license license:expat)))
3782 (define-public kross
3790 "mirror://kde/stable/frameworks/"
3791 (version-major+minor version) "/portingAids/"
3792 name "-" version ".tar.xz"))
3794 (base32 "0paipgkxbm6vwgqj38rlr37vgmf1rx0cl2mka8zdbndl76ng5hgc"))))
3795 (build-system cmake-build-system)
3797 `(("extra-cmake-modules" ,extra-cmake-modules)
3798 ("kdoctools" ,kdoctools)
3799 ("qttools" ,qttools)))
3801 `(("kcompletion" ,kcompletion)
3802 ("kcoreaddons" ,kcoreaddons)
3804 ("kiconthemes" ,kiconthemes)
3806 ("kwidgetsaddons" ,kwidgetsaddons)
3807 ("kxmlgui" ,kxmlgui)
3809 ("qtscript" ,qtscript)))
3810 (home-page "https://community.kde.org/Frameworks")
3811 (synopsis "KDE Frameworks 5 solution for application scripting")
3812 (description "Kross is a scripting bridge for the KDE Development Platform
3813 used to embed scripting functionality into an application. It supports
3814 QtScript as a scripting interpreter backend.
3816 Kross provides an abstract API to provide scripting functionality in a
3817 interpreter-independent way. The application that uses Kross should not need
3818 to know anything about the scripting language being used. The core of Kross
3819 provides the framework to deal transparently with interpreter-backends and
3820 offers abstract functionality to deal with scripts.")
3821 ;; Most files are distributed under LGPL2+, but the package includes code
3822 ;; under a variety of licenses.
3823 (license (list license:lgpl2.0+ license:lgpl2.1+
3824 license:lgpl2.0 license:gpl3+))))