1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2016, 2019, 2020 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>
9 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
10 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
11 ;;; Copyright © 2021 Alexandros Theodotou <alex@zrythm.org>
13 ;;; This file is part of GNU Guix.
15 ;;; GNU Guix is free software; you can redistribute it and/or modify it
16 ;;; under the terms of the GNU General Public License as published by
17 ;;; the Free Software Foundation; either version 3 of the License, or (at
18 ;;; your option) any later version.
20 ;;; GNU Guix is distributed in the hope that it will be useful, but
21 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
22 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 ;;; GNU General Public License for more details.
25 ;;; You should have received a copy of the GNU General Public License
26 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
28 (define-module (gnu packages kde-frameworks)
29 #:use-module (guix build-system cmake)
30 #:use-module (guix build-system qt)
31 #:use-module (guix build-system trivial)
32 #:use-module (guix download)
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (guix packages)
35 #:use-module (guix utils)
36 #:use-module (gnu packages)
37 #:use-module (gnu packages acl)
38 #:use-module (gnu packages admin)
39 #:use-module (gnu packages aidc)
40 #:use-module (gnu packages attr)
41 #:use-module (gnu packages avahi)
42 #:use-module (gnu packages base)
43 #:use-module (gnu packages boost)
44 #:use-module (gnu packages bison)
45 #:use-module (gnu packages boost)
46 #:use-module (gnu packages calendar)
47 #:use-module (gnu packages compression)
48 #:use-module (gnu packages databases)
49 #:use-module (gnu packages docbook)
50 #:use-module (gnu packages flex)
51 #:use-module (gnu packages freedesktop)
52 #:use-module (gnu packages gettext)
53 #:use-module (gnu packages gl)
54 #:use-module (gnu packages glib)
55 #:use-module (gnu packages gnome)
56 #:use-module (gnu packages gnupg)
57 #:use-module (gnu packages gperf)
58 #:use-module (gnu packages graphics)
59 #:use-module (gnu packages graphviz)
60 #:use-module (gnu packages gstreamer)
61 #:use-module (gnu packages image)
62 #:use-module (gnu packages kerberos)
63 #:use-module (gnu packages kde-plasma)
64 #:use-module (gnu packages libreoffice)
65 #:use-module (gnu packages linux)
66 #:use-module (gnu packages mp3)
67 #:use-module (gnu packages openbox)
68 #:use-module (gnu packages pdf)
69 #:use-module (gnu packages pcre)
70 #:use-module (gnu packages perl)
71 #:use-module (gnu packages pkg-config)
72 #:use-module (gnu packages polkit)
73 #:use-module (gnu packages pulseaudio)
74 #:use-module (gnu packages python)
75 #:use-module (gnu packages python-xyz)
76 #:use-module (gnu packages qt)
77 #:use-module (gnu packages textutils)
78 #:use-module (gnu packages tls)
79 #:use-module (gnu packages version-control)
80 #:use-module (gnu packages video)
81 #:use-module (gnu packages web)
82 #:use-module (gnu packages xml)
83 #:use-module (gnu packages xorg)
84 #:use-module (srfi srfi-1))
86 (define-public extra-cmake-modules
88 (name "extra-cmake-modules")
93 "mirror://kde/stable/frameworks/"
94 (version-major+minor version) "/"
95 name "-" version ".tar.xz"))
98 "10c5xs5shk0dcshpdxg564ay5y8hgmvfvmlhmhjf0dy79kcah3c3"))))
99 (build-system cmake-build-system)
101 `(("qtbase" ,qtbase))) ; For tests (needs qmake)
104 (modify-phases %standard-phases
105 (add-after 'unpack 'fix-lib-path
107 ;; Always install into /lib and not into /lib64.
108 (substitute* "kde-modules/KDEInstallDirs.cmake"
109 (("\"lib64\"") "\"lib\"")
110 ;; TODO: Base the following on values taken from Qt
111 ;; Install plugins into lib/qt5/plugins
112 ;; TODO: Check if this is okay for Android, too
113 ;; (see comment in KDEInstallDirs.cmake)
114 (("_define_relative\\(QTPLUGINDIR \"\\$\\{_pluginsDirParent}\" \"plugins\"")
115 "_define_relative(QTPLUGINDIR \"${_pluginsDirParent}\" \"qt5/plugins\"")
116 ;; Install imports into lib/qt5/imports
117 (("_define_relative\\(QTQUICKIMPORTSDIR QTPLUGINDIR \"imports\"")
118 "_define_relative(QTQUICKIMPORTSDIR LIBDIR \"qt5/imports\"")
119 ;; Install qml-files into lib/qt5/qml
120 (("_define_relative\\(QMLDIR LIBDIR \"qml\"")
121 "_define_relative(QMLDIR LIBDIR \"qt5/qml\""))
122 (substitute* "modules/ECMGeneratePriFile.cmake"
123 ;; Install pri-files into lib/qt5/mkspecs
124 (("set\\(ECM_MKSPECS_INSTALL_DIR mkspecs/modules")
125 "set(ECM_MKSPECS_INSTALL_DIR lib/qt5/mkspecs/modules"))
127 ;; install and check phase are swapped to prevent install from failing
128 ;; after testsuire has run
129 (add-after 'install 'check-post-install
130 (assoc-ref %standard-phases 'check))
132 ;; optional dependencies - to save space, we do not add these inputs.
134 ;; Required to build Extra CMake Modules documentation in Qt Help format.
135 ;; Qt5LinguistTools , Qt5 linguist tools. , <http://www.qt.io/>
136 ;; Required to run tests for the ECMPoQmTools module.
138 ;; Required to run tests for the ECMQtDeclareLoggingCategory module,
139 ;; and for some tests of the KDEInstallDirs module.
140 (home-page "https://community.kde.org/Frameworks")
141 (synopsis "CMake module files for common software used by KDE")
142 (description "The Extra CMake Modules package, or ECM, adds to the
143 modules provided by CMake to find common software. In addition, it provides
144 common build settings used in software produced by the KDE community.")
145 (license license:bsd-3)))
147 (define-public phonon
154 "mirror://kde/stable/phonon"
156 name "-" version ".tar.xz"))
159 "0bfy8iqmjhlg3ma3iqd3kxjc2zkzpjgashbpf5x17y0dc2i1whxl"))))
160 (build-system cmake-build-system)
162 ;; TODO: Think about adding pulseaudio. Is it required for sound?
163 ;; TODO: Add building the super experimental QML support
164 `(("extra-cmake-modules" ,extra-cmake-modules)
165 ("pkg-config" ,pkg-config)
166 ("qttools" ,qttools)))
168 `(("qtbase" ,qtbase)))
171 '("-DCMAKE_CXX_FLAGS=-fPIC"
172 "-DPHONON_BUILD_PHONON4QT5=ON")
174 (modify-phases %standard-phases
175 (add-before 'install 'patch-installdir
176 (lambda* (#:key inputs outputs #:allow-other-keys)
177 (let ((regex (string-append "(INSTALL DESTINATION \")"
178 (assoc-ref inputs "qtbase"))))
179 (substitute* "cmake_install.cmake"
181 (string-append dest (assoc-ref outputs "out")))))
183 (home-page "https://phonon.kde.org")
184 (synopsis "KDE's multimedia library")
185 (description "KDE's multimedia library.")
186 (license license:lgpl2.1+)))
188 (define-public phonon-backend-gstreamer
190 (name "phonon-backend-gstreamer")
195 "mirror://kde/stable/phonon/"
197 name "-" version ".tar.xz"))
200 "1wk1ip2w7fkh65zk6rilj314dna0hgsv2xhjmpr5w08xa8sii1y5"))))
201 (build-system cmake-build-system)
203 `(("extra-cmake-modules" ,extra-cmake-modules)
204 ("pkg-config" ,pkg-config)
205 ("qttools" ,qttools)))
210 ("qtx11extras" ,qtx11extras)
211 ("gstreamer" ,gstreamer)
212 ("gst-plugins-base" ,gst-plugins-base)
213 ("libxml2" ,libxml2)))
216 '( "-DPHONON_BUILD_PHONON4QT5=ON")))
217 (home-page "https://phonon.kde.org")
218 (synopsis "Phonon backend which uses GStreamer")
219 (description "Phonon makes use of backend libraries to provide sound.
220 Phonon-GStreamer is a backend based on the GStreamer multimedia library.")
221 ;; license: source files mention "either version 2.1 or 3"
222 (license (list license:lgpl2.1 license:lgpl3))))
227 ;; Tier 1 frameworks depend only on Qt (and possibly a small number of other
228 ;; third-party libraries), so can easily be used by an Qt-based project.
230 (define-public attica
237 "mirror://kde/stable/frameworks/"
238 (version-major+minor version) "/"
239 name "-" version ".tar.xz"))
242 "1njw1sifykyqldb5idaywdzi3xg7a6bvzkrvazwmyixd0npq12dx"))))
243 (build-system cmake-build-system)
246 (modify-phases %standard-phases
247 (add-after 'unpack 'disable-network-tests
249 ;; These tests require network access.
250 (substitute* "autotests/CMakeLists.txt"
251 ((".*providertest.cpp") "")))))))
253 `(("extra-cmake-modules" ,extra-cmake-modules)))
255 `(("qtbase" ,qtbase)))
256 (home-page "https://community.kde.org/Frameworks")
257 (synopsis "Open Collaboration Service client library")
258 (description "Attica is a Qt library that implements the Open
259 Collaboration Services API version 1.6.
261 It grants easy access to the services such as querying information about
262 persons and contents. The library is used in KNewStuff3 as content provider.
263 In order to integrate with KDE's Plasma Desktop, a platform plugin exists in
266 The REST API is defined here:
267 http://freedesktop.org/wiki/Specifications/open-collaboration-services/")
268 (license (list license:lgpl2.1+ license:lgpl3+))))
270 (define-public bluez-qt
277 "mirror://kde/stable/frameworks/"
278 (version-major+minor version) "/"
279 name "-" version ".tar.xz"))
282 "1kqhps4qyvqm0qmk7fb3w41bib898amipchf8csdzacw4bzpri9k"))))
283 (build-system cmake-build-system)
286 ("extra-cmake-modules" ,extra-cmake-modules)))
288 ;; TODO: qtdeclarative (yields one failing test)
289 `(("qtbase" ,qtbase)))
293 "-DUDEV_RULES_INSTALL_DIR=" %output "/lib/udev/rules.d"))
294 ;; TODO: Make tests pass: DBUS_FATAL_WARNINGS=0 still yields 7/8 tests
295 ;; failing. When running after install, tests hang.
297 (home-page "https://community.kde.org/Frameworks")
298 (synopsis "QML wrapper for BlueZ")
299 (description "bluez-qt is a Qt-style library for accessing the bluez
300 Bluetooth stack. It is used by the KDE Bluetooth stack, BlueDevil.")
301 (license (list license:lgpl2.1+ license:lgpl3+))))
303 (define-public breeze-icons
305 (name "breeze-icons")
310 "mirror://kde/stable/frameworks/"
311 (version-major+minor version) "/"
312 name "-" version ".tar.xz"))
315 "0lqglrjgjb4ralgmr7lb9k7acmn8q4jm18s4p3gbgd9iswyqgsbm"))))
316 (build-system cmake-build-system)
318 `(("extra-cmake-modules" ,extra-cmake-modules)
320 ("libxml2" ,libxml2)))
322 `(("qtbase" ,qtbase)))
323 (home-page "https://community.kde.org/Frameworks")
324 (synopsis "Default KDE Plasma 5 icon theme")
325 (description "Breeze provides a freedesktop.org compatible icon theme.
326 It is the default icon theme for the KDE Plasma 5 desktop.")
327 ;; The license file mentions lgpl3+. The license files in the source
328 ;; directories are lgpl3, while the top directory contains the lgpl2.1.
330 (license license:lgpl3+)))
332 (define-public kapidox
339 "mirror://kde/stable/frameworks/"
340 (version-major+minor version) "/"
341 name "-" version ".tar.xz"))
344 "1irl25pf60frzrmm1ksgjq6y8kn3rd5snliq69l4c42yznl9qv1j"))))
345 (build-system cmake-build-system)
347 `(#:tests? #f)) ; has no test target
349 `(("extra-cmake-modules" ,extra-cmake-modules)))
351 ;; kapidox is a python programm
352 ;; TODO: check if doxygen has to be installed, the readme does not
353 ;; mention it. The openSuse .rpm lists doxygen, graphviz, graphviz-gd,
356 ("python-jinja2" ,python-jinja2)
357 ("python-pyyaml" ,python-pyyaml)))
359 `(("qtbase" ,qtbase)))
360 (home-page "https://community.kde.org/Frameworks")
361 (synopsis "KDE Doxygen Tools")
362 (description "This framework contains scripts and data for building API
363 documentation (dox) in a standard format and style for KDE.
365 For the actual documentation extraction and formatting the Doxygen tool is
366 used, but this framework provides a wrapper script to make generating the
367 documentation more convenient (including reading settings from the target
368 framework or other module) and a standard template for the generated
370 ;; Most parts are bsd-2, but incuded jquery is expat
371 ;; This list is taken from http://packaging.neon.kde.org/cgit/
372 (license (list license:bsd-2 license:expat))))
374 (define-public karchive
381 "mirror://kde/stable/frameworks/"
382 (version-major+minor version) "/"
383 name "-" version ".tar.xz"))
386 "0z8asn357pdbv4g9g0x18p72wskca1qanxljyix7wzc5rsi63wzm"))))
387 (build-system cmake-build-system)
389 `(("extra-cmake-modules" ,extra-cmake-modules)))
395 (home-page "https://community.kde.org/Frameworks")
396 (synopsis "Qt 5 addon providing access to numerous types of archives")
397 (description "KArchive provides classes for easy reading, creation and
398 manipulation of @code{archive} formats like ZIP and TAR.
400 It also provides transparent compression and decompression of data, like the
401 GZip format, via a subclass of QIODevice.")
402 ;; The included licenses is are gpl2 and lgpl2.1, but the sources are
403 ;; under a variety of licenses.
404 ;; This list is taken from http://packaging.neon.kde.org/cgit/
405 (license (list license:lgpl2.1 license:lgpl2.1+
406 license:lgpl3+ license:bsd-2))))
408 (define-public kcalendarcore
410 (name "kcalendarcore")
415 "mirror://kde/stable/frameworks/"
416 (version-major+minor version) "/"
417 name "-" version ".tar.xz"))
420 "1y1f8gc1g9yn9kgmn53f1zvkizasfs667dfin3fyci657r5qwpw2"))))
421 (build-system cmake-build-system)
423 `(("extra-cmake-modules" ,extra-cmake-modules)
425 ("tzdata" ,tzdata-for-tests)))
427 `(("libical" ,libical)
431 (modify-phases %standard-phases
432 (add-before 'configure 'disable-failing-libical3-tests
434 ;; testicaltimezones fails with some time-zone issue
435 (substitute* "autotests/CMakeLists.txt"
436 (("macro_unit_tests\\(testicaltimezones\\)" line)
437 (string-append "## " line))
438 (("target_link_libraries\\(testicaltimezones " line)
439 (string-append "## " line)))
443 ;; test cases are generated for each .ics file. These fail:
444 "autotests/data/Compat-libical3/AppleICal_1.5.ics"
445 "autotests/data/Compat-libical3/Evolution_2.8.2_timezone_test.ics"
446 "autotests/data/Compat-libical3/KOrganizer_3.1a.ics"
447 "autotests/data/Compat-libical3/MSExchange.ics"
448 "autotests/data/Compat-libical3/Mozilla_1.0.ics"))
450 (add-before 'check 'set-timezone
451 (lambda* (#:key inputs #:allow-other-keys)
452 (setenv "TZ" "Europe/Prague")
454 (string-append (assoc-ref inputs "tzdata")
457 (home-page "https://community.kde.org/Frameworks")
458 (synopsis "Library for interfacing with calendars")
459 (description "This library provides access to and handling of calendar
460 data. It supports the standard formats iCalendar and vCalendar and the group
461 scheduling standard iTIP.
463 A calendar contains information like incidences (events, to-dos, journals),
464 alarms, time zones, and other useful information. This API provides access to
465 that calendar information via well known calendar formats iCalendar (or iCal)
466 and the older vCalendar.")
467 (license (list license:lgpl3+ license:bsd-2))))
469 (define-public kcodecs
476 "mirror://kde/stable/frameworks/"
477 (version-major+minor version) "/"
478 name "-" version ".tar.xz"))
481 "0y9n2a5n18pasdmrp0xb84hla9l27yj2x3k4p1c041sd9nkwixpk"))))
482 (build-system cmake-build-system)
484 `(("extra-cmake-modules" ,extra-cmake-modules)
486 ("qttools" ,qttools)))
488 `(("qtbase" ,qtbase)))
489 (home-page "https://community.kde.org/Frameworks")
490 (synopsis "String encoding and manipulating library")
491 (description "KCodecs provide a collection of methods to manipulate
492 strings using various encodings.
494 It can automatically determine the charset of a string, translate XML
495 entities, validate email addresses, and find encodings by name in a more
496 tolerant way than QTextCodec (useful e.g. for data coming from the
498 ;; The included licenses is are gpl2 and lgpl2.1, but the sources are
499 ;; under a variety of licenses.
500 ;; This list is taken from http://packaging.neon.kde.org/cgit/
501 (license (list license:gpl2 license:gpl2+ license:bsd-2
502 license:lgpl2.1 license:lgpl2.1+ license:expat
503 license:lgpl3+ license:mpl1.1))))
505 (define-public kconfig
512 "mirror://kde/stable/frameworks/"
513 (version-major+minor version) "/"
514 name "-" version ".tar.xz"))
517 "1s3h4hfpw7c0894cifj66bj1yhx8g94ckvl71jm7qqsb5x5h6y9n"))))
518 (build-system cmake-build-system)
521 ("extra-cmake-modules" ,extra-cmake-modules)
522 ("inetutils" ,inetutils)
524 ("xorg-server" ,xorg-server-for-tests)))
526 `(("qtbase" ,qtbase)))
529 (modify-phases %standard-phases
530 (add-before 'check 'check-setup
532 (setenv "HOME" (getcwd))
533 (setenv "TMPDIR" (getcwd))
537 (setenv "QT_QPA_PLATFORM" "offscreen")
538 (invoke "dbus-launch" "ctest" "."))))))
539 (home-page "https://community.kde.org/Frameworks")
540 (synopsis "Kconfiguration settings framework for Qt")
541 (description "KConfig provides an advanced configuration system.
542 It is made of two parts: KConfigCore and KConfigGui.
544 KConfigCore provides access to the configuration files themselves.
548 @item Code generation: describe your configuration in an XML file, and use
549 `kconfig_compiler to generate classes that read and write configuration
552 @item Cascading configuration files (global settings overridden by local
555 @item Optional shell expansion support (see docs/options.md).
557 @item The ability to lock down configuration options (see docs/options.md).
560 KConfigGui provides a way to hook widgets to the configuration so that they
561 are automatically initialized from the configuration and automatically
562 propagate their changes to their respective configuration files.")
563 ;; The included licenses is are gpl2 and lgpl2.1, but the sources are
564 ;; under a variety of licenses.
565 ;; This list is taken from http://packaging.neon.kde.org/cgit/
566 (license (list license:lgpl2.1 license:lgpl2.1+ license:expat
567 license:lgpl3+ license:gpl1 ; licende:mit-olif
568 license:bsd-2 license:bsd-3))))
570 (define-public kcoreaddons
577 "mirror://kde/stable/frameworks/"
578 (version-major+minor version) "/"
579 name "-" version ".tar.xz"))
582 "10a7zys3limsawl7lk9ggymk3msk2bp0y8hp0jmsvk3l405pd1ps"))))
583 (build-system cmake-build-system)
585 `(("extra-cmake-modules" ,extra-cmake-modules)
587 ("shared-mime-info" ,shared-mime-info)
588 ;; TODO: FAM: File alteration notification http://oss.sgi.com/projects/fam
589 ("xorg-server" ,xorg-server-for-tests))) ; for the tests
591 `(("qtbase" ,qtbase)))
594 (modify-phases %standard-phases
595 (add-before 'check 'blacklist-failing-test
597 ;; Blacklist failing tests.
598 (with-output-to-file "autotests/BLACKLIST"
600 ;; FIXME: Make it pass. Test failure caused by stout/stderr
601 ;; being interleaved.
602 (display "[test_channels]\n*\n")
603 ;; This fails with ENOSPC because of too many inotify watches.
604 (display "[benchNotifyWatcher]\n*\n")))
606 ;; See upstream commit ee424e9b62368485bba4193053cabb553a1d268e
607 (add-after 'unpack 'fix-broken-test
609 (substitute* "autotests/kdirwatch_unittest.cpp"
610 (("QVERIFY\\(waitForRecreationSignal\\(watch, existingFile\\)\\);" m)
611 (string-append m "\nwaitUntilNewSecond();")))
613 (add-before 'check 'check-setup
615 (setenv "HOME" (getcwd))
616 (setenv "TMPDIR" (getcwd))
618 (home-page "https://community.kde.org/Frameworks")
619 (synopsis "Qt addon library with a collection of non-GUI utilities")
620 (description "KCoreAddons provides classes built on top of QtCore to
621 perform various tasks such as manipulating mime types, autosaving files,
622 creating backup files, generating random sequences, performing text
623 manipulations such as macro replacement, accessing user information and
625 (license (list license:lgpl2.0+ license:lgpl2.1+))))
627 (define-public kdbusaddons
634 "mirror://kde/stable/frameworks/"
635 (version-major+minor version) "/"
636 name "-" version ".tar.xz"))
639 "1vz2hg5p8wvfk0pi8v25zqzcn8yj7ykakxjyipmadvi02c1h8gic"))
640 (patches (search-patches "kdbusaddons-kinit-file-name.patch"))))
641 (build-system cmake-build-system)
643 `(("extra-cmake-modules" ,extra-cmake-modules)
645 ("qttools" ,qttools)))
648 ("qtx11extras" ,qtx11extras)
649 ("kinit" ,kinit-bootstrap))) ;; kinit-bootstrap: kinit package which does not depend on kdbusaddons.
652 (modify-phases %standard-phases
654 'configure 'patch-source
655 (lambda* (#:key inputs #:allow-other-keys)
656 ;; look for the kdeinit5 executable in kinit's store directory,
657 ;; instead of the current application's directory:
658 (substitute* "src/kdeinitinterface.cpp"
659 (("@SUBSTITUTEME@") (assoc-ref inputs "kinit")))))
662 (setenv "DBUS_FATAL_WARNINGS" "0")
663 (invoke "dbus-launch" "ctest" "."))))))
664 (home-page "https://community.kde.org/Frameworks")
665 (synopsis "Convenience classes for DBus")
666 (description "KDBusAddons provides convenience classes on top of QtDBus,
667 as well as an API to create KDED modules.")
668 ;; Some source files mention lgpl2.0+, but the included license is
669 ;; the lgpl2.1. Some source files are under non-copyleft licenses.
670 (license license:lgpl2.1+)))
672 (define-public kdnssd
679 "mirror://kde/stable/frameworks/"
680 (version-major+minor version) "/"
681 name "-" version ".tar.xz"))
684 "0wadknnf472rqg2xnqzs5v23qzqfr336wj6d96yg2ayqm0chbppy"))))
685 (build-system cmake-build-system)
687 `(("extra-cmake-modules" ,extra-cmake-modules)
688 ("qttools" ,qttools)))
690 `(("avahi" ,avahi) ; alternativly dnssd could be used
692 (home-page "https://community.kde.org/Frameworks")
693 (synopsis "Network service discovery using Zeroconf")
694 (description "KDNSSD is a library for handling the DNS-based Service
695 Discovery Protocol (DNS-SD), the layer of Zeroconf that allows network services,
696 such as printers, to be discovered without any user intervention or centralized
698 (license license:lgpl2.1+)))
700 (define-public kgraphviewer
702 (name "kgraphviewer")
707 "mirror://kde/stable/kgraphviewer/"
708 version "/" name "-" version ".tar.xz"))
711 "1h6pgg89gvxl8gw7wmkabyqqrzad5pxyv5lsmn1fl4ir8lcc5q2l"))))
712 (build-system cmake-build-system)
716 ("graphviz" ,graphviz)
717 ("kiconthemes" ,kiconthemes)
721 `(("pkg-config" ,pkg-config)
722 ("extra-cmake-modules" ,extra-cmake-modules)
723 ("kdoctools" ,kdoctools)))
724 (home-page "https://apps.kde.org/en/kgraphviewer")
725 (synopsis "Graphviz dot graph viewer for KDE")
726 (description "KGraphViewer is a Graphviz DOT graph file viewer, aimed to
727 replace the other outdated Graphviz tools.")
728 (license license:gpl2+)))
730 (define-public kguiaddons
737 "mirror://kde/stable/frameworks/"
738 (version-major+minor version) "/"
739 name "-" version ".tar.xz"))
742 "1yndjdhb9zzlhh74xccpys38balm5dma56sx6bwwfrga1phq0g5l"))))
743 (build-system qt-build-system)
744 ;; TODO: Build packages for the Python bindings. Ideally this will be
745 ;; done for all versions of python guix supports. Requires python,
746 ;; python-sip, clang-python, libclang. Requires python-2 in all cases for
749 `(("extra-cmake-modules" ,extra-cmake-modules)
750 ("pkg-config" ,pkg-config)))
753 ("qtx11extras" ,qtx11extras)))
754 (home-page "https://community.kde.org/Frameworks")
755 (synopsis "Utilities for graphical user interfaces")
756 (description "The KDE GUI addons provide utilities for graphical user
757 interfaces in the areas of colors, fonts, text, images, keyboard input.")
758 (license (list license:gpl2+ license:lgpl2.1+))))
760 (define-public kholidays
767 "mirror://kde/stable/frameworks/"
768 (version-major+minor version) "/"
769 name "-" version ".tar.xz"))
771 (base32 "1rifx51yk24sk578h08s1bwpqb61rnyyks33zpl82lcdnl1ljp26"))))
772 (build-system cmake-build-system)
775 (modify-phases %standard-phases
776 (add-before 'check 'check-setup
778 ;; blacklist a failing test function TODO: make it pass
779 (with-output-to-file "autotests/BLACKLIST"
781 (display "[testDefaultRegions]\n*\n")))
784 `(("extra-cmake-modules" ,extra-cmake-modules)
785 ("qttools" ,qttools)))
788 ("qtdeclarative" ,qtdeclarative)))
789 (home-page "https://invent.kde.org/frameworks/kholidays")
790 (synopsis "Library for regional holiday information")
791 (description "This library provides a C++ API that determines holiday and
792 other special events for a geographical region.")
793 (license license:lgpl2.0+)))
802 "mirror://kde/stable/frameworks/"
803 (version-major+minor version) "/"
804 name "-" version ".tar.xz"))
807 "1f952488492sm904i1iwgjp2gc7z07312mlshw4ckh2801y0qclc"))))
808 (build-system cmake-build-system)
810 `(("gettext" ,gettext-minimal)
813 `(("extra-cmake-modules" ,extra-cmake-modules)))
816 ("qtdeclarative" ,qtdeclarative)
817 ("qtscript" ,qtscript)))
820 (modify-phases %standard-phases
821 (add-before 'check 'check-setup
823 (setenv "HOME" (getcwd))
825 (home-page "https://community.kde.org/Frameworks")
826 (synopsis "KDE Gettext-based UI text internationalization")
827 (description "KI18n provides functionality for internationalizing user
828 interface text in applications, based on the GNU Gettext translation system. It
829 wraps the standard Gettext functionality, so that the programmers and translators
830 can use the familiar Gettext tools and workflows.
832 KI18n provides additional functionality as well, for both programmers and
833 translators, which can help to achieve a higher overall quality of source and
834 translated text. This includes argument capturing, customizable markup, and
835 translation scripting.")
836 (license license:lgpl2.1+)))
838 (define-public kidletime
845 "mirror://kde/stable/frameworks/"
846 (version-major+minor version) "/"
847 name "-" version ".tar.xz"))
850 "0vbxs80a8kh2xbxclx8zwl7acynsasa7i0cs171fxr26d0dmmhm5"))))
851 (build-system cmake-build-system)
853 `(("extra-cmake-modules" ,extra-cmake-modules)
854 ("pkg-config" ,pkg-config)))
856 `(("libxscrnsaver" ,libxscrnsaver) ; X-Screensaver based poller, fallback mode
858 ("qtx11extras" ,qtx11extras)))
859 (home-page "https://community.kde.org/Frameworks")
860 (synopsis "Reporting of idle time of user and system")
861 (description "KIdleTime is a singleton reporting information on idle time.
862 It is useful not only for finding out about the current idle time of the PC,
863 but also for getting notified upon idle time events, such as custom timeouts,
865 (license (list license:gpl2+ license:lgpl2.1+))))
867 (define-public kirigami
868 ;; Kirigami is listed as tier 1 framework, but optionally includes
869 ;; plasma-framework which is tier 3.
876 "mirror://kde/stable/frameworks/"
877 (version-major+minor version) "/"
878 "kirigami2-" version ".tar.xz"))
881 "0akkyif6n9l7hw4cj6nkf1zwgnd7vqi1gyiqmn588rspgl91zf1w"))))
882 (properties `((upstream-name . "kirigami2")))
883 (build-system cmake-build-system)
885 `(("extra-cmake-modules" ,extra-cmake-modules)
886 ("qttools" ,qttools)))
888 `(("kwindowsystem" ,kwindowsystem)
889 ;; TODO: Find a way to activate this optional include without
890 ;; introducing a recursive dependency.
891 ;;("plasma-frameworks" ,plasma-framework) ;; Tier 3!
893 ("qtdeclarative" ,qtdeclarative)
894 ("qtquickcontrols2" ,qtquickcontrols2)
896 ;; Run-time dependency
897 ("qtgraphicaleffects" ,qtgraphicaleffects)))
898 (home-page "https://community.kde.org/Frameworks")
899 (synopsis "QtQuick components for mobile user interfaces")
900 (description "Kirigami is a set of high level QtQuick components looking
901 and feeling well on both mobile and desktop devices. They ease the creation
902 of applications that follow the Kirigami Human Interface Guidelines.")
903 (license license:lgpl2.1+)))
905 (define-public kitemmodels
912 "mirror://kde/stable/frameworks/"
913 (version-major+minor version) "/"
914 name "-" version ".tar.xz"))
917 "0x7y5shg2pp490hvmkz81b8j01cha9j1001q34m7pnyf0n3zknzc"))))
918 (build-system qt-build-system)
920 `(("extra-cmake-modules" ,extra-cmake-modules)))
923 ("qtdeclarative" ,qtdeclarative)))
924 (home-page "https://community.kde.org/Frameworks")
925 (synopsis "Set of item models extending the Qt model-view framework")
926 (description "KItemModels provides the following models:
929 @item KBreadcrumbSelectionModel - Selects the parents of selected items to
932 @item KCheckableProxyModel - Adds a checkable capability to a source model.
934 @item KConcatenateRowsProxyModel - Concatenates rows from multiple source models.
936 @item KDescendantsProxyModel - Proxy Model for restructuring a Tree into a list.
938 @item KExtraColumnsProxyModel - Adds columns after existing columns.
940 @item KLinkItemSelectionModel - Share a selection in multiple views which do
941 not have the same source model.
943 @item KModelIndexProxyMapper - Mapping of indexes and selections through proxy
946 @item KRearrangeColumnsProxyModel - Can reorder and hide columns from the source
949 @item KRecursiveFilterProxyModel - Recursive filtering of models.
951 @item KSelectionProxyModel - A Proxy Model which presents a subset of its source
954 (license license:lgpl2.1+)))
956 (define-public kitemviews
963 "mirror://kde/stable/frameworks/"
964 (version-major+minor version) "/"
965 name "-" version ".tar.xz"))
968 "04vlmkvc3y5h7cpb6kdv9gha5axxkimhqh44mdg2ncyn4sas6j68"))))
969 (build-system qt-build-system)
971 `(("extra-cmake-modules" ,extra-cmake-modules)
972 ("qttools" ,qttools)))
974 `(("qtbase" ,qtbase)))
975 (home-page "https://community.kde.org/Frameworks")
976 (synopsis "Set of item views extending the Qt model-view framework")
977 (description "KItemViews includes a set of views, which can be used with
978 item models. It includes views for categorizing lists and to add search filters
979 to flat and hierarchical lists.")
980 (license (list license:gpl2+ license:lgpl2.1+))))
982 (define-public kplotting
989 "mirror://kde/stable/frameworks/"
990 (version-major+minor version) "/"
991 name "-" version ".tar.xz"))
994 "1wj4n2a8iz9ml1y0012xkpsx3dfp5gl2dn80sifrzvkxjxrhwach"))))
995 (build-system qt-build-system)
997 `(("extra-cmake-modules" ,extra-cmake-modules)
998 ("qttools" ,qttools)))
1000 `(("qtbase" ,qtbase)))
1001 (home-page "https://community.kde.org/Frameworks")
1002 (synopsis "Data plotting library")
1003 (description "KPlotWidget is a QWidget-derived class that provides a virtual
1004 base class for easy data-plotting. The idea behind KPlotWidget is that you only
1005 have to specify information in \"data units\", the natural units of the
1006 data being plotted. KPlotWidget automatically converts everything to screen
1008 (license license:lgpl2.1+)))
1010 (define-public ksyntaxhighlighting
1012 (name "ksyntaxhighlighting")
1017 "mirror://kde/stable/frameworks/"
1018 (version-major+minor version) "/"
1019 "syntax-highlighting-" version ".tar.xz"))
1022 "12jn7lqsp86329spai7n1n8i65nwhxh8gp33wkq543h7w3i2a3jb"))))
1023 (build-system cmake-build-system)
1025 `(("extra-cmake-modules" ,extra-cmake-modules)
1027 ("qttools" ,qttools)
1028 ;; Optional, for compile-time validation of syntax definition files:
1029 ("qtxmlpatterns" ,qtxmlpatterns)))
1031 `(("qtbase" ,qtbase)))
1034 (modify-phases %standard-phases
1035 (add-after 'patch-source-shebangs 'unpatch-source-shebang
1037 ;; revert the patch-shebang phase on scripts which are
1038 ;; in fact test data
1039 (substitute* '("autotests/input/test.bash"
1040 "autotests/folding/test.bash.fold")
1041 (((which "bash")) "/bin/bash"))
1042 (substitute* '("autotests/input/highlight.sh"
1043 "autotests/folding/highlight.sh.fold")
1044 (((which "sh")) " /bin/sh")) ;; space in front!
1045 (substitute* '("autotests/input/highlight.pl"
1046 "autotests/folding/highlight.pl.fold")
1047 (((which "perl")) "/usr/bin/perl"))
1049 (home-page "https://community.kde.org/Frameworks")
1050 (synopsis "Syntax highlighting engine for Kate syntax definitions")
1051 (description "This is a stand-alone implementation of the Kate syntax
1052 highlighting engine. It's meant as a building block for text editors as well
1053 as for simple highlighted text rendering (e.g. as HTML), supporting both
1054 integration with a custom editor as well as a ready-to-use
1055 @code{QSyntaxHighlighter} sub-class.")
1056 (properties `((upstream-name . "syntax-highlighting")))
1057 (license license:lgpl2.1+)))
1059 (define-public kwayland
1066 "mirror://kde/stable/frameworks/"
1067 (version-major+minor version) "/"
1068 name "-" version ".tar.xz"))
1071 "0hrpbfzixjpnfy9q5x66q1fff0p7n80rrs127zzdv68pyi6456ry"))))
1072 (build-system cmake-build-system)
1074 `(("extra-cmake-modules" ,extra-cmake-modules)
1075 ("pkg-config" ,pkg-config)))
1077 `(("qtbase" ,qtbase)
1078 ("qtwayland" ,qtwayland)
1079 ("wayland" ,wayland)
1080 ("wayland-protocols" ,wayland-protocols)))
1082 `(#:tests? #f ; FIXME tests require weston to run
1083 ; weston requires wayland flags in mesa
1085 (modify-phases %standard-phases
1086 (add-before 'check 'check-setup
1088 (setenv "XDG_RUNTIME_DIR" "/tmp")
1090 (home-page "https://community.kde.org/Frameworks")
1091 (synopsis "Qt-style API to interact with the wayland client and server")
1092 (description "As the names suggest they implement a Client respectively a
1093 Server API for the Wayland protocol. The API is Qt-styled removing the needs to
1094 interact with a for a Qt developer uncomfortable low-level C-API. For example
1095 the callback mechanism from the Wayland API is replaced by signals, data types
1096 are adjusted to be what a Qt developer expects - two arguments of int are
1097 represented by a QPoint or a QSize.")
1098 (license license:lgpl2.1+)))
1100 (define-public kwidgetsaddons
1102 (name "kwidgetsaddons")
1107 "mirror://kde/stable/frameworks/"
1108 (version-major+minor version) "/"
1109 name "-" version ".tar.xz"))
1112 "03l37lh219np7pqfa56r2v7n5s5xg4rjq005qng4b5izd95ri56j"))))
1113 (build-system qt-build-system)
1115 `(("extra-cmake-modules" ,extra-cmake-modules)
1116 ("qttools" ,qttools)
1117 ("xorg-server" ,xorg-server-for-tests)))
1119 `(("qtbase" ,qtbase)))
1122 (modify-phases %standard-phases
1123 (add-after 'unpack 'adjust-tests
1125 ;; It is unclear why this test suddenly started failing.
1126 (substitute* "autotests/kcolumnresizertest.cpp"
1127 ((".*QCOMPARE.*") ""))
1129 (home-page "https://community.kde.org/Frameworks")
1130 (synopsis "Large set of desktop widgets")
1131 (description "Provided are action classes that can be added to toolbars or
1132 menus, a wide range of widgets for selecting characters, fonts, colors, actions,
1133 dates and times, or MIME types, as well as platform-aware dialogs for
1134 configuration pages, message boxes, and password requests.")
1135 (license (list license:gpl2+ license:lgpl2.1+))))
1137 (define-public kwindowsystem
1139 (name "kwindowsystem")
1144 "mirror://kde/stable/frameworks/"
1145 (version-major+minor version) "/"
1146 name "-" version ".tar.xz"))
1149 "0a68cj0bsl5a9sxfd969khznycrn9p6grp2b08hqacxqdknzs0wh"))))
1150 (build-system cmake-build-system)
1152 `(("extra-cmake-modules" ,extra-cmake-modules)
1153 ("pkg-config" ,pkg-config)
1154 ("dbus" ,dbus) ; for the tests
1155 ("openbox" ,openbox) ; for the tests
1156 ("qttools" ,qttools)
1157 ("xorg-server" ,xorg-server-for-tests))) ; for the tests
1159 `(("libxrender" ,libxrender)
1161 ("qtx11extras" ,qtx11extras)
1162 ("xcb-utils-keysyms" ,xcb-util-keysyms)
1163 ("xcb-util-wm" ,xcb-util-wm)))
1166 (modify-phases %standard-phases
1167 (add-before 'check 'blacklist-failing-tests
1169 ;; Blacklist a failing test-functions. FIXME: Make it pass.
1170 (with-output-to-file "autotests/BLACKLIST"
1172 (display "[testGroupLeader]\n*\n")
1173 (display "[testClientMachine]\n*\n"))) ;; requires network
1177 ;; The test suite requires a running window anager
1178 (setenv "XDG_RUNTIME_DIR" "/tmp")
1179 (system "Xvfb :1 -ac -screen 0 640x480x24 &")
1180 (setenv "DISPLAY" ":1")
1181 (sleep 5) ;; Give Xvfb a few moments to get on it's feet
1182 (system "openbox &")
1183 (setenv "CTEST_OUTPUT_ON_FAILURE" "1")
1184 (setenv "DBUS_FATAL_WARNINGS" "0")
1185 (invoke "dbus-launch" "ctest" "."))))))
1186 (home-page "https://community.kde.org/Frameworks")
1187 (synopsis "KDE access to the windowing system")
1188 (description "KWindowSystem provides information about and allows
1189 interaction with the windowing system. It provides a high level API, which
1190 is windowing system independent and has platform specific
1191 implementations. This API is inspired by X11 and thus not all functionality
1192 is available on all windowing systems.
1194 In addition to the high level API, this framework also provides several
1195 lower level classes for interaction with the X Windowing System.")
1196 ;; Some source files mention lgpl2.0+, but the included license is
1197 ;; the lgpl2.1. Some source files are under non-copyleft licenses.
1198 (license license:lgpl2.1+)))
1200 (define-public modemmanager-qt
1202 (name "modemmanager-qt")
1207 "mirror://kde/stable/frameworks/"
1208 (version-major+minor version) "/"
1209 name "-" version ".tar.xz"))
1212 "0ydq1l823jgp0yrrpqi1zdk5dsg65ydk1x082qwsa9a0vzs0np3x"))))
1213 (build-system cmake-build-system)
1215 `(("extra-cmake-modules" ,extra-cmake-modules)
1217 ("pkg-config" ,pkg-config)))
1219 ;; Headers contain #include <ModemManager/ModemManager.h>
1220 `(("modem-manager" ,modem-manager)))
1222 `(("qtbase" ,qtbase)))
1225 (modify-phases %standard-phases
1228 (setenv "DBUS_FATAL_WARNINGS" "0")
1229 (invoke "dbus-launch" "ctest" "."))))))
1230 (home-page "https://community.kde.org/Frameworks")
1231 (synopsis "Qt wrapper for ModemManager DBus API")
1232 (description "ModemManagerQt provides access to all ModemManager features
1233 exposed on DBus. It allows you to manage modem devices and access to
1234 information available for your modem devices, like signal, location and
1236 (license license:lgpl2.1+)))
1238 (define-public networkmanager-qt
1240 (name "networkmanager-qt")
1245 "mirror://kde/stable/frameworks/"
1246 (version-major+minor version) "/"
1247 name "-" version ".tar.xz"))
1250 "1h2kdw5vs7mn3n7bvqwm36a48ra9iap6384kanz14zjbankj04c1"))))
1251 (build-system cmake-build-system)
1253 `(("extra-cmake-modules" ,extra-cmake-modules)
1255 ("pkg-config" ,pkg-config)))
1257 ;; Headers contain #include <NetworkManager.h> and
1258 ;; #include <libnm/NetworkManager.h>
1259 `(("network-manager" ,network-manager)))
1261 `(("qtbase" ,qtbase)))
1264 (modify-phases %standard-phases
1267 (setenv "DBUS_FATAL_WARNINGS" "0")
1268 (invoke "dbus-launch" "ctest" "."))))))
1269 (home-page "https://community.kde.org/Frameworks")
1270 (synopsis "Qt wrapper for NetworkManager DBus API")
1271 (description "NetworkManagerQt provides access to all NetworkManager
1272 features exposed on DBus. It allows you to manage your connections and control
1273 your network devices and also provides a library for parsing connection settings
1274 which are used in DBus communication.")
1275 (license license:lgpl2.1+)))
1277 (define-public oxygen-icons
1279 (name "oxygen-icons")
1284 "mirror://kde/stable/frameworks/"
1285 (version-major+minor version) "/"
1286 name "5" "-" version ".tar.xz"))
1289 "1rjsnz0g7zyzgii26sk370adb6jcyvr2lm8qi23fvqimifngqm2c"))))
1290 (build-system cmake-build-system)
1292 `(("extra-cmake-modules" ,extra-cmake-modules)
1293 ("fdupes" ,fdupes)))
1295 `(("qtbase" ,qtbase)))
1296 (home-page "https://community.kde.org/Frameworks")
1297 (synopsis "Oxygen provides the standard icon theme for the KDE desktop")
1298 (description "Oxygen icon theme for the KDE desktop")
1299 (license license:lgpl3+)
1300 (properties '((upstream-name . "oxygen-icons5")))))
1302 (define-public prison
1309 (uri (string-append "mirror://kde/stable/frameworks/"
1310 (version-major+minor version) "/"
1311 name "-" version ".tar.xz"))
1313 (base32 "1qflivvb593d2npc218xkdn3w5zvl7x8v1b52ydnggsxzbgkqvb4"))))
1314 (build-system cmake-build-system)
1316 `(("extra-cmake-modules" ,extra-cmake-modules)))
1318 `(("libdmtx" ,libdmtx)
1319 ("qrencode" ,qrencode)
1320 ("qtbase" ,qtbase))) ;; TODO: rethink: nix propagates this
1321 (home-page "https://api.kde.org/frameworks/prison/html/index.html")
1322 (synopsis "Barcode generation abstraction layer")
1323 (description "Prison is a Qt-based barcode abstraction layer/library and
1324 provides uniform access to generation of barcodes with data.")
1325 (license license:lgpl2.1+)))
1327 (define-public pulseaudio-qt
1329 (name "pulseaudio-qt")
1333 (uri (string-append "https://download.kde.org/stable/pulseaudio-qt"
1334 "/pulseaudio-qt-" version ".tar.xz"))
1337 "1i0ql68kxv9jxs24rsd3s7jhjid3f2fq56fj4wbp16zb4wd14099"))))
1338 (build-system cmake-build-system)
1340 `(("extra-cmake-modules" ,extra-cmake-modules)
1341 ("pkg-config" ,pkg-config)))
1344 ("pulseaudio" ,pulseaudio)
1345 ("qtdeclarative" ,qtdeclarative)
1346 ("qtbase" ,qtbase)))
1347 (home-page "https://invent.kde.org/libraries/pulseaudio-qt/")
1348 (synopsis "Qt bindings for PulseAudio")
1350 "pulseaudio-qt is a Qt-style wrapper for libpulse. It allows querying
1351 and manipulation of various PulseAudio objects such as @code{Sinks},
1352 @code{Sources} and @code{Streams}. It does not wrap the full feature set of
1354 ;; User can choose between LGPL version 2.1 or 3.0; or
1355 ;; "any later version accepted by the membership of KDE e.V".
1356 (license (list license:lgpl2.1 license:lgpl3))))
1358 (define-public qqc2-desktop-style
1360 (name "qqc2-desktop-style")
1365 "mirror://kde/stable/frameworks/"
1366 (version-major+minor version) "/"
1367 name "-" version ".tar.xz"))
1370 "1n47cl082zqdw6ykil04rw6bws4fn1m8wfx4vxv1aqj9warbdks3"))))
1371 (build-system cmake-build-system)
1373 `(("extra-cmake-modules" ,extra-cmake-modules)
1374 ("pkg-config" ,pkg-config)))
1377 ("kconfigwidgets" ,kconfigwidgets) ; optional
1378 ("kcoreaddons" ,kcoreaddons)
1379 ("kiconthemes" ,kiconthemes) ; optional
1380 ("kirigami" ,kirigami)
1382 ("qtdeclarative" ,qtdeclarative)
1383 ("qtquickcontrols2" ,qtquickcontrols2)))
1384 (home-page "https://community.kde.org/Frameworks")
1385 (synopsis "QtQuickControls2 style that integrates with the desktop")
1386 (description "This is a style for QtQuickControls2 which is using
1387 QWidget's QStyle to paint the controls in order to give it a native look and
1389 ;; Mostly LGPL 2+, but many files are dual-licensed
1390 (license (list license:lgpl2.1+ license:gpl3+))))
1392 (define-public solid
1399 "mirror://kde/stable/frameworks/"
1400 (version-major+minor version) "/"
1401 name "-" version ".tar.xz"))
1404 "0alng7ciw6xji0s2zrk8dsx1p0p9shrrfzl8wnkwygc5chnhysz7"))))
1405 (build-system cmake-build-system)
1408 (modify-phases %standard-phases
1411 (setenv "DBUS_FATAL_WARNINGS" "0")
1412 (invoke "dbus-launch" "ctest" "."))))))
1416 ("extra-cmake-modules" ,extra-cmake-modules)
1418 ("qttools" ,qttools)))
1420 `(("qtbase" ,qtbase)
1421 ("qtdeclarative" ,qtdeclarative)
1423 ;; TODO: Add runtime-only dependency MediaPlayerInfo
1424 (home-page "https://community.kde.org/Frameworks")
1425 (synopsis "Desktop hardware abstraction")
1426 (description "Solid is a device integration framework. It provides a way of
1427 querying and interacting with hardware independently of the underlying operating
1429 (license license:lgpl2.1+)))
1431 (define-public sonnet
1438 "mirror://kde/stable/frameworks/"
1439 (version-major+minor version) "/"
1440 name "-" version ".tar.xz"))
1443 "0b88h5fw1n8zyrg0vq3lj2jbjjyh0mk64lj6ab3643kxzqxbn30w"))))
1444 (build-system qt-build-system)
1446 `(("extra-cmake-modules" ,extra-cmake-modules)
1447 ("pkg-config" ,pkg-config)
1448 ("qttools" ,qttools)))
1450 `(("hunspell" ,hunspell)
1451 ;; TODO: hspell (for Hebrew), Voikko (for Finish)
1452 ("qtbase" ,qtbase)))
1453 (home-page "https://community.kde.org/Frameworks")
1454 (synopsis "Multi-language spell checker")
1455 (description "Sonnet is a plugin-based spell checking library for Qt-based
1456 applications. It supports several different plugins, including HSpell, Enchant,
1457 ASpell and HUNSPELL.")
1458 (license license:lgpl2.1+)))
1460 (define-public threadweaver
1462 (name "threadweaver")
1467 "mirror://kde/stable/frameworks/"
1468 (version-major+minor version) "/"
1469 name "-" version ".tar.xz"))
1472 "0y1q0wy073lf11g4jrp4bdw4kpj4ibqfscsxj6zlh8ban9zlf389"))))
1473 (build-system cmake-build-system)
1475 `(("extra-cmake-modules" ,extra-cmake-modules)))
1477 `(("qtbase" ,qtbase)))
1478 (home-page "https://community.kde.org/Frameworks")
1479 (synopsis "Helper for multithreaded programming")
1480 (description "ThreadWeaver is a helper for multithreaded programming. It
1481 uses a job-based interface to queue tasks and execute them in an efficient way.")
1482 (license license:lgpl2.1+)))
1487 ;; Tier 2 frameworks additionally depend on tier 1 frameworks, but still have
1488 ;; easily manageable dependencies.
1490 (define-public kactivities
1492 (name "kactivities")
1497 "mirror://kde/stable/frameworks/"
1498 (version-major+minor version) "/"
1499 name "-" version ".tar.xz"))
1502 "1whsp0f87lrcn61s9rfhy0aj68hm6zgfa38mq6frlkcjksi0z1vn"))))
1503 (build-system qt-build-system)
1505 `(("extra-cmake-modules" ,extra-cmake-modules)))
1509 ("kbookmarks" ,kbookmarks)
1510 ("kcodecs" ,kcodecs)
1511 ("kcompletion" ,kcompletion)
1512 ("kconfig" ,kconfig)
1513 ("kconfigwidgets" ,kconfigwidgets)
1514 ("kcoreaddons" ,kcoreaddons)
1516 ("kitemviews" ,kitemviews)
1517 ("kjobwidgets" ,kjobwidgets)
1518 ("kservice" ,kservice)
1519 ("kwidgetsaddons" ,kwidgetsaddons)
1520 ("kwindowsystem" ,kwindowsystem)
1521 ("kxmlgui" ,kxmlgui)
1523 ("qtdeclarative" ,qtdeclarative)
1525 (home-page "https://community.kde.org/Frameworks")
1526 (synopsis "Core components for the KDE Activity concept")
1527 (description "KActivities provides the infrastructure needed to manage a
1528 user's activities, allowing them to switch between tasks, and for applications
1529 to update their state to match the user's current activity. This includes a
1530 daemon, a library for interacting with that daemon, and plugins for integration
1531 with other frameworks.")
1533 (license (list license:gpl2+ license:lgpl2.0+ license:lgpl2.1+))))
1535 (define-public kauth
1542 "mirror://kde/stable/frameworks/"
1543 (version-major+minor version) "/"
1544 name "-" version ".tar.xz"))
1547 "0nmdz7ra3hpg0air4lfkzilv7cwx3zxs29k7sh8l3i1fs3qpjwxm"))))
1548 (build-system cmake-build-system)
1551 ("extra-cmake-modules" ,extra-cmake-modules)
1552 ("qttools" ,qttools)))
1554 `(("kcoreaddons" ,kcoreaddons)
1555 ("polkit-qt" ,polkit-qt)
1556 ("qtbase" ,qtbase)))
1559 (modify-phases %standard-phases
1560 (add-after 'unpack 'fix-cmake-install-directories
1562 ;; Make packages using kauth put their policy files and helpers
1563 ;; into their own prefix.
1564 (substitute* "KF5AuthConfig.cmake.in"
1565 (("@KAUTH_POLICY_FILES_INSTALL_DIR@")
1566 "${KDE_INSTALL_DATADIR}/polkit-1/actions")
1567 (("@KAUTH_HELPER_INSTALL_DIR@")
1568 "${KDE_INSTALL_LIBEXECDIR}")
1569 (("@KAUTH_HELPER_INSTALL_ABSOLUTE_DIR@")
1570 "${KDE_INSTALL_LIBEXECDIR}"))))
1573 (setenv "DBUS_FATAL_WARNINGS" "0")
1574 (invoke "dbus-launch" "ctest" "."))))))
1575 (home-page "https://community.kde.org/Frameworks")
1576 (synopsis "Execute actions as privileged user")
1577 (description "KAuth provides a convenient, system-integrated way to offload
1578 actions that need to be performed as a privileged user to small set of helper
1580 (license license:lgpl2.1+)))
1582 (define-public kcompletion
1584 (name "kcompletion")
1589 "mirror://kde/stable/frameworks/"
1590 (version-major+minor version) "/"
1591 name "-" version ".tar.xz"))
1594 "1pjgya8wi28jx63hcdi9v5f5487gzbkw2j1iganhd7bhcb8s7zpy"))))
1595 (build-system qt-build-system)
1597 `(("extra-cmake-modules" ,extra-cmake-modules)
1598 ("qttools" ,qttools)))
1600 `(("kconfig" ,kconfig)
1601 ("kwidgetsaddons" ,kwidgetsaddons)
1602 ("qtbase" ,qtbase)))
1603 (home-page "https://community.kde.org/Frameworks")
1604 (synopsis "Powerful autocompletion framework and widgets")
1605 (description "This framework helps implement autocompletion in Qt-based
1606 applications. It provides a set of completion-ready widgets, or can be
1607 integrated it into your application's other widgets.")
1608 (license license:lgpl2.1+)))
1610 (define-public kcontacts
1617 "mirror://kde/stable/frameworks/"
1618 (version-major+minor version) "/"
1619 name "-" version ".tar.xz"))
1622 "182ma11z3kqxq3cwy7kwprfqkb9bcmn44w7k9vixbid4pv5wa0lb"))))
1623 (build-system cmake-build-system)
1625 `(("extra-cmake-modules" ,extra-cmake-modules)
1626 ("xorg-server" ,xorg-server))) ; for the tests
1628 `(("qtbase" ,qtbase)))
1630 `(;; As required by KF5ContactsConfig.cmake.
1631 ("kcodecs" ,kcodecs)
1632 ("kconfig" ,kconfig)
1633 ("kcoreaddons" ,kcoreaddons)
1637 (modify-phases %standard-phases
1638 (add-before 'check 'start-xorg-server
1639 (lambda* (#:key inputs #:allow-other-keys)
1640 ;; The test suite requires a running X server.
1641 ;; Xvfb doesn't have proper glx support and needs a pixeldepth
1642 ;; of 24 bit to avoid "libGL error: failed to load driver: swrast"
1643 ;; "Could not initialize GLX"
1644 (system (string-append (assoc-ref inputs "xorg-server")
1645 "/bin/Xvfb :1 -screen 0 640x480x24 &"))
1646 (setenv "DISPLAY" ":1")
1648 (home-page "https://community.kde.org/Frameworks")
1649 (synopsis "API for contacts/address book data following the vCard standard")
1650 (description "This library provides a vCard data model, vCard
1651 input/output, contact group management, locale-aware address formatting, and
1652 localized country name to ISO 3166-1 alpha 2 code mapping and vice verca.
1654 (license license:lgpl2.1+)))
1656 (define-public kcrash
1663 "mirror://kde/stable/frameworks/"
1664 (version-major+minor version) "/"
1665 name "-" version ".tar.xz"))
1668 "11sy9hrjpvybqi53qjrnncy9mzifrb3vqxi2d12ldjzqyqd8pirp"))))
1669 (build-system qt-build-system)
1671 `(("extra-cmake-modules" ,extra-cmake-modules)))
1673 `(("kcoreaddons" ,kcoreaddons)
1674 ("kwindowsystem" ,kwindowsystem)
1676 ("qtx11extras" ,qtx11extras)))
1677 (home-page "https://community.kde.org/Frameworks")
1678 (synopsis "Graceful handling of application crashes")
1679 (description "KCrash provides support for intercepting and handling
1680 application crashes.")
1681 (license license:lgpl2.1+)))
1683 (define-public kdoctools
1690 "mirror://kde/stable/frameworks/"
1691 (version-major+minor version) "/"
1692 name "-" version ".tar.xz"))
1695 "0g0k83np2xaxk05spf14h5fvzy0n7kbcwx1sa9wjh570f6jx87am"))))
1696 (build-system cmake-build-system)
1698 `(("extra-cmake-modules" ,extra-cmake-modules)))
1700 `(("docbook-xml" ,docbook-xml)
1701 ("docbook-xsl" ,docbook-xsl)
1702 ("karchive" ,karchive)
1704 ("libxml2" ,libxml2)
1705 ("libxslt" ,libxslt)
1707 ("perl-uri" ,perl-uri)
1708 ("qtbase" ,qtbase)))
1711 (modify-phases %standard-phases
1712 (add-after 'unpack 'cmake-find-docbook
1713 (lambda* (#:key inputs #:allow-other-keys)
1714 (substitute* (find-files "cmake" "\\.cmake$")
1715 (("CMAKE_SYSTEM_PREFIX_PATH")
1716 "CMAKE_PREFIX_PATH"))
1717 (substitute* "cmake/FindDocBookXML4.cmake"
1718 (("^.*xml/docbook/schema/dtd.*$")
1719 "xml/dtd/docbook\n"))
1720 (substitute* "cmake/FindDocBookXSL.cmake"
1721 (("^.*xml/docbook/stylesheet.*$")
1722 (string-append "xml/xsl/docbook-xsl-"
1723 ,(package-version docbook-xsl) "\n")))
1725 (add-after 'install 'add-symlinks
1726 ;; Some package(s) (e.g. kdelibs4support) refer to this locale by a
1727 ;; different spelling.
1728 (lambda* (#:key outputs #:allow-other-keys)
1729 (let ((xsl (string-append (assoc-ref outputs "out")
1730 "/share/kf5/kdoctools/customization/xsl/")))
1731 (symlink (string-append xsl "pt_br.xml")
1732 (string-append xsl "pt-BR.xml")))
1734 (home-page "https://community.kde.org/Frameworks")
1735 (synopsis "Create documentation from DocBook")
1736 (description "Provides tools to generate documentation in various format
1737 from DocBook files.")
1738 (license license:lgpl2.1+)))
1740 (define-public kfilemetadata
1742 (name "kfilemetadata")
1747 "mirror://kde/stable/frameworks/"
1748 (version-major+minor version) "/"
1749 name "-" version ".tar.xz"))
1752 "18n1a5857090a1c1rxzd07sxs652gl6wr3n99sp8rxmvkghn9zsj"))))
1753 (build-system cmake-build-system)
1756 (modify-phases %standard-phases
1757 (add-before 'check 'disable-failing-test
1759 ;; Blacklist a failing test-function. FIXME: Make it pass.
1760 ;; UserMetaDataWriterTest fails with getxattr("…/writertest.txt")
1761 ;; -> EOPNOTSUPP (Operation not supported)
1762 (with-output-to-file "autotests/BLACKLIST"
1764 (display "[testMimetype]\n*\n")
1765 (display "[test]\n*\n")))
1768 `(("extra-cmake-modules" ,extra-cmake-modules)
1769 ("pkg-config" ,pkg-config)
1770 ("python-2" ,python-2)))
1773 ;; TODO: EPub http://sourceforge.net/projects/ebook-tools
1774 ("karchive" ,karchive)
1775 ("kcoreaddons" ,kcoreaddons)
1777 ("qtmultimedia" ,qtmultimedia)
1779 ;; Required run-time packages
1781 ;; Optional run-time packages
1784 ("poppler-qt5" ,poppler-qt5)
1785 ("taglib" ,taglib)))
1786 (home-page "https://community.kde.org/Frameworks")
1787 (synopsis "Extract metadata from different fileformats")
1788 (description "KFileMetaData provides a simple library for extracting the
1789 text and metadata from a number of different files. This library is typically
1790 used by file indexers to retrieve the metadata. This library can also be used
1791 by applications to write metadata.")
1792 (license (list license:lgpl2.0 license:lgpl2.1 license:lgpl3))))
1794 (define-public kimageformats
1796 (name "kimageformats")
1801 "mirror://kde/stable/frameworks/"
1802 (version-major+minor version) "/"
1803 name "-" version ".tar.xz"))
1806 "0pk4b725wapzdxv1mm6ddqcl6z8ffcpr32i5vrhrin8awi5gx13s"))))
1807 (build-system cmake-build-system)
1809 `(("extra-cmake-modules" ,extra-cmake-modules)
1810 ("pkg-config" ,pkg-config)))
1812 `(("karchive" ,karchive) ; for Krita and OpenRaster images
1813 ("openexr" ,openexr) ; for OpenEXR high dynamic-range images
1814 ("qtbase" ,qtbase)))
1817 (modify-phases %standard-phases
1818 ;; This test fails regularly (also at KDE CI, see
1819 ;; https://build.kde.org/job/Frameworks%20kimageformats%20kf5-qt5%20XenialQt5.7/6/testReport/)
1820 ;; delete offending portion
1821 (add-after 'unpack 'neuter-read-xcf-test
1823 (delete-file "autotests/read/xcf/simple-rgba-gimp-2.8.10.png")
1824 (delete-file "autotests/read/xcf/simple-rgba-gimp-2.8.10.xcf")))
1825 (add-before 'check 'check-setup
1827 ;; make Qt render "offscreen", required for tests
1828 (setenv "QT_QPA_PLATFORM" "offscreen")
1829 (setenv "QT_PLUGIN_PATH"
1830 (string-append (getcwd) "/bin:"
1831 (getenv "QT_PLUGIN_PATH")))
1833 ;; FIXME: The header files of ilmbase (propagated by openexr) are not
1834 ;; found when included by the header files of openexr, and an explicit
1835 ;; flag needs to be set.
1837 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
1838 (assoc-ref %build-inputs "ilmbase")
1839 "/include/OpenEXR"))))
1840 (home-page "https://community.kde.org/Frameworks")
1841 (synopsis "Plugins to allow QImage to support extra file formats")
1842 (description "This framework provides additional image format plugins for
1843 QtGui. As such it is not required for the compilation of any other software,
1844 but may be a runtime requirement for Qt-based software to support certain image
1846 (license license:lgpl2.1+)))
1848 (define-public kjobwidgets
1850 (name "kjobwidgets")
1855 "mirror://kde/stable/frameworks/"
1856 (version-major+minor version) "/"
1857 name "-" version ".tar.xz"))
1860 "13kdczzyyh17hf6vlhh4li5bn4yq5bab5xa8mm63r9rynxihgclf"))))
1861 (build-system cmake-build-system)
1863 `(("extra-cmake-modules" ,extra-cmake-modules)
1864 ("qttools" ,qttools)))
1866 `(("kcoreaddons" ,kcoreaddons)
1867 ("kwidgetsaddons" ,kwidgetsaddons)
1869 ("qtx11extras" ,qtx11extras)))
1870 (home-page "https://community.kde.org/Frameworks")
1871 (synopsis "Widgets for showing progress of asynchronous jobs")
1872 (description "KJobWIdgets provides widgets for showing progress of
1873 asynchronous jobs.")
1874 (license license:lgpl2.1+)))
1876 (define-public knotifications
1878 (name "knotifications")
1883 "mirror://kde/stable/frameworks/"
1884 (version-major+minor version) "/"
1885 name "-" version ".tar.xz"))
1888 "01bn23xw2n53h9nl99lm3cjnqs8s66bmwkzf6fkpg9rzkykizbyc"))))
1889 (build-system cmake-build-system)
1891 `(("extra-cmake-modules" ,extra-cmake-modules)
1893 ("qttools" ,qttools)))
1895 `(("kcodecs" ,kcodecs)
1896 ("kconfig" ,kconfig)
1897 ("kcoreaddons" ,kcoreaddons)
1898 ("kwindowsystem" ,kwindowsystem)
1901 ("qtspeech" ,qtspeech)
1902 ;; TODO: Think about adding dbusmenu-qt5 from
1903 ;; https://launchpad.net/libdbusmenu-qt
1904 ("qtx11extras" ,qtx11extras)))
1907 (modify-phases %standard-phases
1908 (add-before 'check 'check-setup
1910 (setenv "HOME" (getcwd))
1914 (setenv "DBUS_FATAL_WARNINGS" "0")
1915 (invoke "dbus-launch" "ctest" "."))))))
1916 (home-page "https://community.kde.org/Frameworks")
1917 (synopsis "Desktop notifications")
1918 (description "KNotification is used to notify the user of an event. It
1919 covers feedback and persistent events.")
1920 (license license:lgpl2.1+)))
1922 (define-public kpackage
1929 "mirror://kde/stable/frameworks/"
1930 (version-major+minor version) "/"
1931 name "-" version ".tar.xz"))
1934 "03rp7p7i8ihz5wg58gjs638jk7xbszknfiy2j3r979snc57g95mv"))
1935 ;; Default to: external paths/symlinks can be followed by a
1937 (patches (search-patches "kpackage-allow-external-paths.patch"
1938 "kpackage-fix-KF5PackageMacros.cmake.patch"))))
1939 (build-system cmake-build-system)
1941 `(("extra-cmake-modules" ,extra-cmake-modules)))
1943 `(("karchive" ,karchive)
1944 ("kconfig" ,kconfig)
1945 ("kcoreaddons" ,kcoreaddons)
1946 ("kdoctools" ,kdoctools)
1948 ("qtbase" ,qtbase)))
1951 (modify-phases %standard-phases
1952 (add-after 'unpack 'patch
1954 ;; Make QDirIterator follow symlinks
1955 (substitute* '("src/kpackage/packageloader.cpp"
1956 "src/kpackage/private/packagejobthread.cpp")
1957 (("^\\s*(const QDirIterator::IteratorFlags flags = QDirIterator::Subdirectories)(;)" _ a b)
1958 (string-append a " | QDirIterator::FollowSymlinks" b))
1959 (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
1960 (string-append a " | QDirIterator::FollowSymlinks" b)))
1962 (add-after 'unpack 'patch-tests
1964 ;; /bin/ls doesn't exist in the build-container use /etc/passwd
1965 (substitute* "autotests/packagestructuretest.cpp"
1966 (("(addDirectoryDefinition\\(\")bin(\".*\")bin(\".*\")bin\""
1968 (string-append a "etc" b "etc" c "etc\""))
1969 (("filePath\\(\"bin\", QStringLiteral\\(\"ls\"))")
1970 "filePath(\"etc\", QStringLiteral(\"passwd\"))")
1971 (("\"/bin/ls\"") "\"/etc/passwd\""))
1973 (add-before 'check 'check-setup
1975 (setenv "HOME" (getcwd))
1977 (home-page "https://community.kde.org/Frameworks")
1978 (synopsis "Installation and loading of additional content as packages")
1979 (description "The Package framework lets the user install and load packages
1980 of non binary content such as scripted extensions or graphic assets, as if they
1981 were traditional plugins.")
1982 (license (list license:gpl2+ license:lgpl2.1+))))
1991 "mirror://kde/stable/frameworks/"
1992 (version-major+minor version) "/"
1993 name "-" version ".tar.xz"))
1996 "1hp6iilr2asf2269linfazjv4yjg7rsi8wydxx53yyr99r0bgmah"))))
1997 (build-system cmake-build-system)
1999 `(("extra-cmake-modules" ,extra-cmake-modules)))
2001 `(("kcoreaddons" ,kcoreaddons)
2003 ;; TODO: utempter, for managing UTMP entries
2004 ("qtbase" ,qtbase)))
2006 `(#:tests? #f ; FIXME: 1/1 tests fail.
2008 (modify-phases %standard-phases
2009 (add-after 'unpack 'patch-tests
2011 (substitute* "autotests/kptyprocesstest.cpp"
2012 (("/bin/bash") (which "bash")))
2014 (home-page "https://community.kde.org/Frameworks")
2015 (synopsis "Interfacing with pseudo terminal devices")
2016 (description "This library provides primitives to interface with pseudo
2017 terminal devices as well as a KProcess derived class for running child processes
2018 and communicating with them using a pty.")
2019 (license (list license:gpl2+ license:lgpl2.1+))))
2021 (define-public kunitconversion
2023 (name "kunitconversion")
2028 "mirror://kde/stable/frameworks/"
2029 (version-major+minor version) "/"
2030 name "-" version ".tar.xz"))
2033 "0sp4gfzpf40cdi0xnff9sn7b75z88j0589svz4rv77q5m137cgnn"))))
2034 (build-system cmake-build-system)
2037 (modify-phases %standard-phases
2038 (add-after 'unpack 'disable-a-failing-test-case
2040 ;; FIXME: Re-enable this test-case. It was committed with the
2041 ;; message: "tsan says it's clean, apart from issues in Qt
2042 ;; (reported upstream)"
2043 (substitute* "autotests/convertertest.cpp"
2044 (("const int numThreads = 2") "const int numThreads = 0")))))))
2046 `(("extra-cmake-modules" ,extra-cmake-modules)))
2049 ("qtbase" ,qtbase)))
2050 (home-page "https://community.kde.org/Frameworks")
2051 (synopsis "Converting physical units")
2052 (description "KUnitConversion provides functions to convert values in
2053 different physical units. It supports converting different prefixes (e.g. kilo,
2054 mega, giga) as well as converting between different unit systems (e.g. liters,
2056 (license license:lgpl2.1+)))
2058 (define-public syndication
2060 (name "syndication")
2065 "mirror://kde/stable/frameworks/"
2066 (version-major+minor version) "/"
2067 name "-" version ".tar.xz"))
2070 "1n3x8s1z4kd30xirfr07hi87vwhk4rilb5kslcjcgp5n9c0imcpv"))))
2071 (build-system cmake-build-system)
2073 `(("extra-cmake-modules" ,extra-cmake-modules)))
2075 `(("kcodecs" ,kcodecs)
2076 ("qtbase" ,qtbase)))
2077 (home-page "https://community.kde.org/Frameworks")
2078 (synopsis "RSS/Atom parser library")
2079 (description "@code{syndication} supports RSS (0.9/1.0, 0.91..2.0) and
2080 Atom (0.3 and 1.0) feeds. The library offers a unified, format-agnostic view
2081 on the parsed feed, so that the using application does not need to distinguish
2082 between feed formats.")
2083 (license license:lgpl2.1+)))
2088 ;; Tier 3 frameworks are generally more powerful, comprehensive packages, and
2089 ;; consequently have more complex dependencies.
2091 (define-public baloo
2098 "mirror://kde/stable/frameworks/"
2099 (version-major+minor version) "/"
2100 name "-" version ".tar.xz"))
2103 "1cf5pp9hn3pqypwyzh63ksasap3n7qz6n3y2xgb83ss3fra90pjf"))))
2104 (build-system cmake-build-system)
2106 `(("kcoreaddons" ,kcoreaddons)
2107 ("kfilemetadata" ,kfilemetadata)))
2110 ("extra-cmake-modules" ,extra-cmake-modules)))
2112 `(("kbookmarks" ,kbookmarks)
2113 ("kcompletion" ,kcompletion)
2114 ("kconfig" ,kconfig)
2116 ("kdbusaddons" ,kdbusaddons)
2117 ("kidletime" ,kidletime)
2119 ("kitemviews" ,kitemviews)
2121 ("kjobwidgets" ,kjobwidgets)
2122 ("kservice" ,kservice)
2123 ("kwidgetsaddons" ,kwidgetsaddons)
2124 ("kxmlgui" ,kxmlgui)
2127 ("qtdeclarative" ,qtdeclarative)
2131 (modify-phases %standard-phases
2132 (add-before 'check 'check-setup
2134 (setenv "HOME" (getcwd))
2135 ;; make Qt render "offscreen", required for tests
2136 (setenv "QT_QPA_PLATFORM" "offscreen")
2137 (with-output-to-file "bin/BLACKLIST"
2139 ;; Blacklist some failing tests. FIXME: Make them pass.
2140 (display "[testRenameFile]\n*\n")
2141 (display "[testMoveFile]\n*\n")))
2143 (add-after 'unpack 'remove-failing-test
2145 ;; FIXME: kinotifytest broke in 5.70.0 with commit 73183acf00 and
2146 ;; seems like an oversight. Reverting the commit makes it pass,
2147 ;; but causes other problems. Since just the test file names are
2148 ;; broken, disabling it should be safe. Try enabling for > 5.70.0.
2149 (substitute* "autotests/unit/file/CMakeLists.txt"
2150 ;; The test only runs on GNU/Linux, piggy-back on the check.
2151 (("CMAKE_SYSTEM_NAME MATCHES \"Linux\"" all)
2152 (string-append all " AND NOT TRUE")))
2156 (setenv "DBUS_FATAL_WARNINGS" "0")
2157 (invoke "dbus-launch" "ctest" "."))))))
2158 (home-page "https://community.kde.org/Frameworks")
2159 (synopsis "File searching and indexing")
2160 (description "Baloo provides file searching and indexing. It does so by
2161 maintaining an index of the contents of your files.")
2163 (license (list license:gpl2+ license:lgpl2.1+))))
2165 (define-public kactivities-stats
2167 (name "kactivities-stats")
2172 "mirror://kde/stable/frameworks/"
2173 (version-major+minor version) "/"
2174 name "-" version ".tar.xz"))
2177 "1cnfdnxkw9hwbqdzdygp2vzwxqwqhxyipzwdcgar0clgnf7zi7wx"))))
2178 (build-system cmake-build-system)
2180 `(("extra-cmake-modules" ,extra-cmake-modules)))
2183 ("kactivities" ,kactivities)
2184 ("kconfig" ,kconfig)
2186 ("qtdeclarative" ,qtdeclarative)))
2187 (home-page "https://community.kde.org/Frameworks")
2188 (synopsis "Access usage statistics collected by the activity manager")
2189 (description "The KActivitiesStats library provides a querying mechanism for
2190 the data that the activity manager collects---which documents have been opened
2191 by which applications, and what documents have been linked to which activity.")
2193 (license (list license:lgpl2.0+ license:lgpl2.1+ license:lgpl3+))))
2195 (define-public kbookmarks
2202 "mirror://kde/stable/frameworks/"
2203 (version-major+minor version) "/"
2204 name "-" version ".tar.xz"))
2207 "1i5vcyvyc9whmflbcg2kc562ch93yscfic1c1n9z347g26jmgras"))))
2208 (build-system cmake-build-system)
2210 `(("kwidgetsaddons" ,kwidgetsaddons)))
2212 `(("extra-cmake-modules" ,extra-cmake-modules)
2213 ("qttools" ,qttools)))
2216 ("kcodecs" ,kcodecs)
2217 ("kconfig" ,kconfig)
2218 ("kconfigwidgets" ,kconfigwidgets)
2219 ("kcoreaddons" ,kcoreaddons)
2220 ("kiconthemes" ,kiconthemes)
2221 ("kxmlgui" ,kxmlgui)
2222 ("qtbase" ,qtbase)))
2225 (modify-phases %standard-phases
2226 (add-before 'check 'check-setup
2228 (setenv "HOME" (getcwd))
2229 ;; make Qt render "offscreen", required for tests
2230 (setenv "QT_QPA_PLATFORM" "offscreen")
2232 (home-page "https://community.kde.org/Frameworks")
2233 (synopsis "Bookmarks management library")
2234 (description "KBookmarks lets you access and manipulate bookmarks stored
2235 using the XBEL format.")
2236 (license license:lgpl2.1+)))
2238 (define-public kcmutils
2245 "mirror://kde/stable/frameworks/"
2246 (version-major+minor version) "/"
2247 name "-" version ".tar.xz"))
2250 "08f4yr546brl1dppp0khvsw9ihmh9a7rp505913pdhi0sklaiimz"))))
2251 (build-system cmake-build-system)
2253 `(("kconfigwidgets" ,kconfigwidgets)
2254 ("kservice" ,kservice)))
2256 `(("extra-cmake-modules" ,extra-cmake-modules)))
2259 (modify-phases %standard-phases
2260 (add-after 'unpack 'patch
2262 (substitute* "src/kpluginselector.cpp"
2263 ;; make QDirIterator follow symlinks
2264 (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
2265 (string-append a " | QDirIterator::FollowSymlinks" b)))
2266 (substitute* "src/kcmoduleloader.cpp"
2267 ;; print plugin name when loading fails
2268 (("^\\s*(qWarning\\(\\) << \"Error loading) (plugin:\")( << loader\\.errorString\\(\\);)" _ a b c)
2269 (string-append a " KCM plugin\" << mod.service()->library() << \":\"" c)))
2273 ("kcodecs" ,kcodecs)
2274 ("kconfig" ,kconfig)
2275 ("kcoreaddons" ,kcoreaddons)
2276 ("kdeclarative" ,kdeclarative)
2277 ("kguiaddons" ,kguiaddons)
2278 ("kiconthemes" ,kiconthemes)
2279 ("kitemviews" ,kitemviews)
2281 ("kpackage" ,kpackage)
2282 ("kwidgetsaddons" ,kwidgetsaddons)
2283 ("kxmlgui" ,kxmlgui)
2285 ("qtdeclarative" ,qtdeclarative)))
2286 (home-page "https://community.kde.org/Frameworks")
2287 (synopsis "Utilities for KDE System Settings modules")
2288 (description "KCMUtils provides various classes to work with KCModules.
2289 KCModules can be created with the KConfigWidgets framework.")
2290 (license license:lgpl2.1+)))
2292 (define-public kconfigwidgets
2294 (name "kconfigwidgets")
2299 "mirror://kde/stable/frameworks/"
2300 (version-major+minor version) "/"
2301 name "-" version ".tar.xz"))
2304 "195dw7nyr3fp78y3vfnyjh0hwgwk46f80wdcm8dck5rkscl3v9xz"))))
2305 (build-system qt-build-system)
2308 ("kcodecs" ,kcodecs)
2309 ("kconfig" ,kconfig)
2310 ("kwidgetsaddons" ,kwidgetsaddons)))
2312 `(("extra-cmake-modules" ,extra-cmake-modules)
2313 ("kdoctools" ,kdoctools)))
2315 `(("kcoreaddons" ,kcoreaddons)
2316 ("kguiaddons" ,kguiaddons)
2318 ;; todo: PythonModuleGeneration
2320 ("qttools" ,qttools)))
2323 (modify-phases %standard-phases
2324 (add-after 'unpack 'patch
2326 (substitute* "src/khelpclient.cpp"
2327 ;; make QDirIterator follow symlinks
2328 (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
2329 (string-append a " | QDirIterator::FollowSymlinks" b)))
2331 (home-page "https://community.kde.org/Frameworks")
2332 (synopsis "Widgets for configuration dialogs")
2333 (description "KConfigWidgets provides easy-to-use classes to create
2334 configuration dialogs, as well as a set of widgets which uses KConfig to store
2337 (license (list license:gpl2+ license:lgpl2.1+))))
2339 (define-public kdeclarative
2341 (name "kdeclarative")
2346 "mirror://kde/stable/frameworks/"
2347 (version-major+minor version) "/"
2348 name "-" version ".tar.xz"))
2351 "1vq9pkrb0zsphi2sfx7cyy1kb6pklzjkmqdf5202z8vydlkc4549"))))
2352 (build-system cmake-build-system)
2354 `(("kconfig" ,kconfig)
2355 ("kpackage" ,kpackage)))
2357 `(("extra-cmake-modules" ,extra-cmake-modules)
2358 ("pkg-config" ,pkg-config)
2359 ("xorg-server" ,xorg-server-for-tests)))
2362 ("kbookmarks" ,kbookmarks)
2363 ("kcodecs" ,kcodecs)
2364 ("kcompletion" ,kcompletion)
2365 ("kconfigwidgets" ,kconfigwidgets)
2366 ("kcoreaddons" ,kcoreaddons)
2367 ("kglobalaccel" ,kglobalaccel)
2368 ("kguiaddons" ,kguiaddons)
2369 ("kiconthemes" ,kiconthemes)
2371 ("kitemviews" ,kitemviews)
2373 ("kjobwidgets" ,kjobwidgets)
2374 ("kservice" ,kservice)
2375 ("kwidgetsaddons" ,kwidgetsaddons)
2376 ("kwindowsystem" ,kwindowsystem)
2377 ("kxmlgui" ,kxmlgui)
2378 ("libepoxy" ,libepoxy)
2380 ("qtdeclarative" ,qtdeclarative)
2384 (modify-phases %standard-phases
2385 (add-before 'check 'start-xorg-server
2386 (lambda* (#:key inputs #:allow-other-keys)
2387 ;; The test suite requires a running X server, setting
2388 ;; QT_QPA_PLATFORM=offscreen does not suffice.
2389 (system (string-append (assoc-ref inputs "xorg-server")
2390 "/bin/Xvfb :1 -screen 0 640x480x24 &"))
2391 (setenv "DISPLAY" ":1")
2393 (home-page "https://community.kde.org/Frameworks")
2394 (synopsis "Integration of QML and KDE work spaces")
2395 (description "KDeclarative provides integration of QML and KDE work spaces.
2396 It's comprises two parts: a library used by the C++ part of your application to
2397 intergrate QML with KDE Frameworks specific features, and a series of QML imports
2398 that offer bindings to some of the Frameworks.")
2400 (license (list license:gpl2+ license:lgpl2.1+))))
2409 "mirror://kde/stable/frameworks/"
2410 (version-major+minor version) "/"
2411 name "-" version ".tar.xz"))
2414 "0zqd33vy4ny7g9as3bhd75qi1chz1nlqq133pgw8kjanvghwwnk9"))))
2415 (build-system cmake-build-system)
2417 `(("extra-cmake-modules" ,extra-cmake-modules)))
2419 `(("kconfig" ,kconfig)
2420 ("kcoreaddons" ,kcoreaddons)
2422 ("kdbusaddons" ,kdbusaddons)
2423 ("kdoctools" ,kdoctools)
2425 ("kservice" ,kservice)
2426 ("qtbase" ,qtbase)))
2427 (home-page "https://community.kde.org/Frameworks")
2428 (synopsis "Central daemon of KDE work spaces")
2429 (description "KDED stands for KDE Daemon. KDED runs in the background and
2430 performs a number of small tasks. Some of these tasks are built in, others are
2431 started on demand.")
2433 (license (list license:lgpl2.0+ license:lgpl2.1+))))
2435 (define-public kdesignerplugin
2437 (name "kdesignerplugin")
2442 "mirror://kde/stable/frameworks/"
2443 (version-major+minor version) "/portingAids/"
2444 name "-" version ".tar.xz"))
2447 "0dr6gcag2yzx8fvxis4x403jrcisywds95cywmiyz3pb5727cak2"))))
2448 (build-system qt-build-system)
2450 `(("extra-cmake-modules" ,extra-cmake-modules)
2451 ("qttools" ,qttools)))
2453 `(("kconfig" ,kconfig)
2454 ("kcoreaddons" ,kcoreaddons)
2455 ("kdoctools" ,kdoctools)
2458 ("kcompletion" ,kcompletion)
2459 ("kconfigwidgets" ,kconfigwidgets)
2460 ("kiconthemes" ,kiconthemes)
2461 ("kitemviews" ,kitemviews)
2463 ("kplotting" ,kplotting)
2464 ("ktextwidgets" ,ktextwidgets)
2465 ("kdewebkit" ,kdewebkit)
2466 ("kwidgetsaddons" ,kwidgetsaddons)
2467 ("kxmlgui" ,kxmlgui)
2468 ("qtwebkit" ,qtwebkit)
2469 ("sonnet" ,sonnet)))
2470 (home-page "https://community.kde.org/Frameworks")
2471 (synopsis "Integrating KDE frameworks widgets with Qt Designer")
2472 (description "This framework provides plugins for Qt Designer that allow it
2473 to display the widgets provided by various KDE frameworks, as well as a utility
2474 (kgendesignerplugin) that can be used to generate other such plugins from
2475 ini-style description files.")
2476 (license license:lgpl2.1+)))
2478 (define-public kdesu
2485 "mirror://kde/stable/frameworks/"
2486 (version-major+minor version) "/"
2487 name "-" version ".tar.xz"))
2490 "17k29g7jwgqj5xdmr509438b9sq65zx8khdr4viybjf5xpi0cf5m"))))
2491 (build-system cmake-build-system)
2495 `(("extra-cmake-modules" ,extra-cmake-modules)))
2497 `(("kconfig" ,kconfig)
2498 ("kcoreaddons" ,kcoreaddons)
2500 ("kservice" ,kservice)
2501 ("qtbase" ,qtbase)))
2502 (home-page "https://community.kde.org/Frameworks")
2503 (synopsis "User interface for running shell commands with root privileges")
2504 (description "KDESU provides functionality for building GUI front ends for
2505 (password asking) console mode programs. kdesu and kdessh use it to interface
2506 with su and ssh respectively.")
2507 (license license:lgpl2.1+)))
2509 (define-public kdewebkit
2516 "mirror://kde/stable/frameworks/"
2517 (version-major+minor version) "/portingAids/"
2518 name "-" version ".tar.xz"))
2521 "0y9ja3znkvzdbjfs91dwr4cmvl9fk97zpz2lkf0f9zhm2nw6q008"))))
2522 (build-system cmake-build-system)
2524 `(("extra-cmake-modules" ,extra-cmake-modules)
2525 ("qttools" ,qttools)))
2527 `(("kconfig" ,kconfig)
2528 ("kcoreaddons" ,kcoreaddons)
2530 ("kjobwidgets" ,kjobwidgets)
2532 ("kservice" ,kservice)
2533 ("kwallet" ,kwallet)
2535 ("qtwebkit" ,qtwebkit)))
2536 (home-page "https://community.kde.org/Frameworks")
2537 (synopsis "KDE Integration for QtWebKit")
2538 (description "This library provides KDE integration of the HTML rendering
2539 engine WebKit via QtWebKit.")
2540 (license license:lgpl2.1+)))
2542 (define-public kemoticons
2549 "mirror://kde/stable/frameworks/"
2550 (version-major+minor version) "/"
2551 name "-" version ".tar.xz"))
2554 "11v1srn3nii4j7cn4f19qvdw96pczwxhanzxlg4a9gf8kmnp5gxr"))))
2555 (build-system cmake-build-system)
2557 `(("kservice" ,kservice)))
2559 `(("extra-cmake-modules" ,extra-cmake-modules)))
2561 `(("karchive" ,karchive)
2562 ("kconfig" ,kconfig)
2563 ("kcoreaddons" ,kcoreaddons)
2564 ("qtbase" ,qtbase)))
2567 (modify-phases %standard-phases
2568 (add-before 'check 'check-setup
2570 (setenv "HOME" (getcwd))
2571 ;; make Qt render "offscreen", required for tests
2572 (setenv "QT_QPA_PLATFORM" "offscreen")
2574 (home-page "https://community.kde.org/Frameworks")
2575 (synopsis "Convert text emoticons to graphical emoticons")
2576 (description "KEmoticons converts emoticons from text to a graphical
2577 representation with images in HTML. It supports setting different themes for
2578 emoticons coming from different providers.")
2579 ;; dual licensed, image files are licensed under cc-by-sa4.0
2580 (license (list license:gpl2+ license:lgpl2.1+ license:cc-by-sa4.0))))
2582 (define-public kglobalaccel
2584 (name "kglobalaccel")
2589 "mirror://kde/stable/frameworks/"
2590 (version-major+minor version) "/"
2591 name "-" version ".tar.xz"))
2594 "0hmqigc8myiwwh7m6y2cm4vn0d3kmrhia179hyb84vpvvn3lm93z"))))
2595 (build-system qt-build-system)
2597 `(("extra-cmake-modules" ,extra-cmake-modules)
2598 ("pkg-config" ,pkg-config)
2599 ("qttools" ,qttools)))
2601 `(("kconfig" ,kconfig)
2603 ("kcoreaddons" ,kcoreaddons)
2604 ("kdbusaddons" ,kdbusaddons)
2605 ("kservice" ,kservice)
2606 ("kwindowsystem" ,kwindowsystem)
2609 ("qtx11extras" ,qtx11extras)
2610 ("xcb-util-keysyms" ,xcb-util-keysyms)))
2611 (home-page "https://community.kde.org/Frameworks")
2612 (synopsis "Global desktop keyboard shortcuts")
2613 (description "KGlobalAccel allows you to have global accelerators that are
2614 independent of the focused window. Unlike regular shortcuts, the application's
2615 window does not need focus for them to be activated.")
2616 (license license:lgpl2.1+)))
2618 (define-public kiconthemes
2620 (name "kiconthemes")
2625 "mirror://kde/stable/frameworks/"
2626 (version-major+minor version) "/"
2627 name "-" version ".tar.xz"))
2630 "09bqpf3drqyfc81vgab9bsh1wm5qbzdwqjlczhax38660nnvh0r9"))))
2631 (build-system cmake-build-system)
2633 `(("extra-cmake-modules" ,extra-cmake-modules)
2634 ("qttools" ,qttools)
2635 ("shared-mime-info" ,shared-mime-info)))
2637 `(("karchive" ,karchive)
2639 ("kcodecs" ,kcodecs)
2640 ("kcoreaddons" ,kcoreaddons)
2641 ("kconfig" ,kconfig)
2642 ("kconfigwidgets" ,kconfigwidgets)
2644 ("kitemviews" ,kitemviews)
2645 ("kwidgetsaddons" ,kwidgetsaddons)
2650 (modify-phases %standard-phases
2651 (add-before 'check 'check-setup
2652 (lambda* (#:key inputs #:allow-other-keys)
2653 (setenv "XDG_DATA_DIRS"
2654 (string-append (assoc-ref inputs "shared-mime-info")
2656 (setenv "HOME" (getcwd))
2657 ;; make Qt render "offscreen", required for tests
2658 (setenv "QT_QPA_PLATFORM" "offscreen")
2660 (home-page "https://community.kde.org/Frameworks")
2661 (synopsis "Icon GUI utilities")
2662 (description "This library contains classes to improve the handling of icons
2663 in applications using the KDE Frameworks.")
2664 (license license:lgpl2.1+)))
2666 (define-public kinit
2673 "mirror://kde/stable/frameworks/"
2674 (version-major+minor version) "/"
2675 name "-" version ".tar.xz"))
2678 "1x4whs8p1daxjfp4ksf70rxrv7fx3w17s5wh6446039wzz9bv6ki"))
2679 ;; Use the store paths for other packages and dynamically loaded
2681 (patches (search-patches "kinit-kdeinit-extra_libs.patch"
2682 "kinit-kdeinit-libpath.patch"))))
2683 (build-system cmake-build-system)
2686 (modify-phases %standard-phases
2687 (add-after 'unpack 'patch-paths
2688 (lambda* (#:key inputs outputs #:allow-other-keys)
2689 ;; Set patched-in values:
2690 (substitute* "src/kdeinit/kinit.cpp"
2691 (("GUIX_PKGS_KF5_KIO") (assoc-ref inputs "kio"))
2692 (("GUIX_PKGS_KF5_PARTS") (assoc-ref inputs "kparts"))
2693 (("GUIX_PKGS_KF5_PLASMA") (assoc-ref inputs "plasma-framework")))
2695 (native-search-paths
2696 (list (search-path-specification
2697 (variable "KDEINIT5_LIBRARY_PATH")
2698 (files '("lib/")))))
2700 `(("extra-cmake-modules" ,extra-cmake-modules)
2701 ("pkg-config" ,pkg-config)))
2704 ("kbookmarks" ,kbookmarks)
2705 ("kcodecs" ,kcodecs)
2706 ("kcompletion" ,kcompletion)
2707 ("kconfig" ,kconfig)
2708 ("kconfigwidgets" ,kconfigwidgets)
2709 ("kcoreaddons" ,kcoreaddons)
2711 ("kdbusaddons" ,kdbusaddons)
2712 ("kdoctools" ,kdoctools)
2714 ("kitemviews" ,kitemviews)
2716 ("kjobwidgets" ,kjobwidgets)
2718 ("kservice" ,kservice)
2719 ("kwidgetsaddons" ,kwidgetsaddons)
2720 ("kwindowsystem" ,kwindowsystem)
2721 ("kxmlgui" ,kxmlgui)
2722 ("libcap" ,libcap) ; to install start_kdeinit with CAP_SYS_RESOURCE
2723 ("plasma-framework" ,plasma-framework)
2726 (home-page "https://community.kde.org/Frameworks")
2727 (synopsis "Library to speed up start of applications on KDE workspaces")
2728 (description "Kdeinit is a process launcher similar to init used for booting
2729 UNIX. It launches processes by forking and then loading a dynamic library which
2730 contains a @code{kdemain(@dots{})} function. Using kdeinit to launch KDE
2731 applications makes starting KDE applications faster and reduces memory
2734 (license (list license:lgpl2.0+ license:lgpl2.1+))))
2743 "mirror://kde/stable/frameworks/"
2744 (version-major+minor version) "/"
2745 name "-" version ".tar.xz"))
2748 "1f33jdjjx6k1d5fab35x8xakc4ny9fyfrgkbib60xncc82lz2h5l"))
2749 (patches (search-patches "kio-search-smbd-on-PATH.patch"))))
2750 (build-system cmake-build-system)
2752 `(("kbookmarks" ,kbookmarks)
2753 ("kconfig" ,kconfig)
2754 ("kcompletion" ,kcompletion)
2755 ("kcoreaddons" ,kcoreaddons)
2756 ("kitemviews" ,kitemviews)
2757 ("kjobwidgets" ,kjobwidgets)
2758 ("kservice" ,kservice)
2759 ("kwindowsystem" ,kwindowsystem)
2760 ("kxmlgui" ,kxmlgui)
2764 ("qttools" ,qttools)
2765 ("extra-cmake-modules" ,extra-cmake-modules)))
2767 `(;; TODO: LibACL , <ftp://oss.sgi.com/projects/xfs/cmd_tars>
2769 ("karchive" ,karchive)
2771 ("kcodecs" ,kcodecs)
2772 ("kconfigwidgets" ,kconfigwidgets)
2774 ("kdbusaddons" ,kdbusaddons)
2775 ("kdoctools" ,kdoctools)
2776 ("kiconthemes" ,kiconthemes)
2778 ("knotifications" ,knotifications)
2779 ("ktextwidgets" ,ktextwidgets)
2780 ("kwallet" ,kwallet)
2781 ("kwidgetsaddons" ,kwidgetsaddons)
2782 ("libxml2" ,libxml2)
2783 ("libxslt" ,libxslt)
2785 ("qtscript" ,qtscript)
2786 ("qtx11extras" ,qtx11extras)
2787 ("sonnet" ,sonnet)))
2789 `(#:tests? #f ; FIXME: 41/50 tests fail.
2791 (modify-phases %standard-phases
2792 (add-after 'unpack 'patch
2794 ;; Better error message (taken from NixOS)
2795 (substitute* "src/kiod/kiod_main.cpp"
2796 (("(^\\s*qCWarning(KIOD_CATEGORY) << \"Error loading plugin:\")( << loader.errorString();)" _ a b)
2797 (string-append a "<< name" b)))
2799 (add-before 'check 'check-setup
2801 (setenv "HOME" (getcwd))
2802 (setenv "XDG_RUNTIME_DIR" (getcwd))
2803 ;; make Qt render "offscreen", required for tests
2804 (setenv "QT_QPA_PLATFORM" "offscreen")
2806 (add-after 'install 'add-symlinks
2807 ;; Some package(s) (e.g. bluedevil) refer to these service types by
2808 ;; the wrong name. I would prefer to patch those packages, but I
2809 ;; cannot find the files!
2810 (lambda* (#:key outputs #:allow-other-keys)
2811 (let ((kst5 (string-append (assoc-ref outputs "out")
2812 "/share/kservicetypes5/")))
2813 (symlink (string-append kst5 "kfileitemactionplugin.desktop")
2814 (string-append kst5 "kfileitemaction-plugin.desktop"))))))))
2817 ;; (setenv "DBUS_FATAL_WARNINGS" "0")
2818 ;; (zero? (system* "dbus-launch" "ctest" ".")))))))
2819 (home-page "https://community.kde.org/Frameworks")
2820 (synopsis "Network transparent access to files and data")
2821 (description "This framework implements a lot of file management functions.
2822 It supports accessing files locally as well as via HTTP and FTP out of the box
2823 and can be extended by plugins to support other protocols as well. There is a
2824 variety of plugins available, e.g. to support access via SSH. The framework can
2825 also be used to bridge a native protocol to a file-based interface. This makes
2826 the data accessible in all applications using the KDE file dialog or any other
2827 KIO enabled infrastructure.")
2828 (license license:lgpl2.1+)))
2830 (define-public knewstuff
2837 "mirror://kde/stable/frameworks/"
2838 (version-major+minor version) "/"
2839 name "-" version ".tar.xz"))
2842 "1hpxj4nawh57w8l64gjplb5mk5fpxiffm4x49kg75m637rxy19fq"))))
2843 (build-system cmake-build-system)
2845 `(("attica" ,attica)
2846 ("kservice" ,kservice)
2847 ("kxmlgui" ,kxmlgui)))
2849 `(("extra-cmake-modules" ,extra-cmake-modules)))
2851 `(("karchive" ,karchive)
2853 ("kbookmarks" ,kbookmarks)
2854 ("kcodecs" ,kcodecs)
2855 ("kcompletion" ,kcompletion)
2856 ("kconfig" ,kconfig)
2857 ("kconfigwidgets" ,kconfigwidgets)
2858 ("kcoreaddons" ,kcoreaddons)
2860 ("kitemviews" ,kitemviews)
2862 ("kiconthemes" ,kiconthemes)
2863 ("kjobwidgets" ,kjobwidgets)
2864 ("ktextwidgets" ,ktextwidgets)
2865 ("kwidgetsaddons" ,kwidgetsaddons)
2867 ("qtdeclarative" ,qtdeclarative)
2869 ("sonnet" ,sonnet)))
2872 (modify-phases %standard-phases
2873 (add-before 'check 'check-setup
2874 (lambda _ ; XDG_DATA_DIRS isn't set
2875 (setenv "HOME" (getcwd))
2876 ;; make Qt render "offscreen", required for tests
2877 (setenv "QT_QPA_PLATFORM" "offscreen")
2879 (home-page "https://community.kde.org/Frameworks")
2880 (synopsis "Framework for downloading and sharing additional application data")
2881 (description "The KNewStuff library implements collaborative data sharing
2882 for applications. It uses libattica to support the Open Collaboration Services
2884 (license license:lgpl2.1+)))
2886 (define-public knotifyconfig
2888 (name "knotifyconfig")
2893 "mirror://kde/stable/frameworks/"
2894 (version-major+minor version) "/"
2895 name "-" version ".tar.xz"))
2898 "1d483qrgyamwsqvcl70klv1g8744hn8z1h2j3qfydcvlwz8jy0gj"))))
2899 (build-system cmake-build-system)
2901 `(("extra-cmake-modules" ,extra-cmake-modules)))
2904 ("kbookmarks" ,kbookmarks)
2905 ("kcodecs" ,kcodecs)
2906 ("kcompletion" ,kcompletion)
2907 ("kconfig" ,kconfig)
2908 ("kconfigwidgets" ,kconfigwidgets)
2909 ("kcoreaddons" ,kcoreaddons)
2911 ("kitemviews" ,kitemviews)
2913 ("kjobwidgets" ,kjobwidgets)
2914 ("knotifications" ,knotifications)
2915 ("kservice" ,kservice)
2916 ("kwidgetsaddons" ,kwidgetsaddons)
2917 ("kxmlgui" ,kxmlgui)
2921 (home-page "https://community.kde.org/Frameworks")
2922 (synopsis "Configuration dialog for desktop notifications")
2923 (description "KNotifyConfig provides a configuration dialog for desktop
2924 notifications which can be embedded in your application.")
2926 (license (list license:lgpl2.0+ license:lgpl2.1+))))
2928 (define-public kparts
2935 "mirror://kde/stable/frameworks/"
2936 (version-major+minor version) "/"
2937 name "-" version ".tar.xz"))
2940 "1gfaxr856zrsjxzdxw1sj12s6aib6r703jgf7yvsl8kilg8l2gsk"))))
2941 (build-system qt-build-system)
2943 '(#:phases (modify-phases %standard-phases
2944 (add-after 'unpack 'disable-partloader-test
2946 (substitute* "autotests/CMakeLists.txt"
2947 ;; XXX: PartLoaderTest wants to create a .desktop file
2948 ;; in the common locations and test that MIME types work.
2949 ;; The setup required for this is extensive, skip for now.
2950 (("partloadertest\\.cpp") ""))
2954 ("ktextwidgets" ,ktextwidgets)
2955 ("kxmlgui" ,kxmlgui)))
2957 `(("extra-cmake-modules" ,extra-cmake-modules)
2958 ("shared-mime-info" ,shared-mime-info)))
2961 ("kbookmarks" ,kbookmarks)
2962 ("kcodecs" ,kcodecs)
2963 ("kcompletion" ,kcompletion)
2964 ("kconfig" ,kconfig)
2965 ("kconfigwidgets" ,kconfigwidgets)
2966 ("kcoreaddons" ,kcoreaddons)
2967 ("kiconthemes" ,kiconthemes)
2968 ("kitemviews" ,kitemviews)
2970 ("kjobwidgets" ,kjobwidgets)
2971 ("kservice" ,kservice)
2972 ("kwidgetsaddons" ,kwidgetsaddons)
2975 ("sonnet" ,sonnet)))
2976 (home-page "https://community.kde.org/Frameworks")
2977 (synopsis "Plugin framework for user interface components")
2978 (description "This library implements the framework for KDE parts, which are
2979 widgets with a user-interface defined in terms of actions.")
2980 (license license:lgpl2.1+)))
2982 (define-public kpeople
2989 "mirror://kde/stable/frameworks/"
2990 (version-major+minor version) "/"
2991 name "-" version ".tar.xz"))
2994 "1dhvly19pj9lx78g7mc89scibzmra1vhv4zz33222zidkbrf9ryl"))))
2995 (build-system qt-build-system)
2997 `(("extra-cmake-modules" ,extra-cmake-modules)))
2999 `(("kconfig" ,kconfig)
3000 ("kcoreaddons" ,kcoreaddons)
3001 ("kitemviews" ,kitemviews)
3003 ("kservice" ,kservice)
3004 ("kwidgetsaddons" ,kwidgetsaddons)
3006 ("qtdeclarative" ,qtdeclarative)))
3008 `(#:tests? #f)) ; FIXME: 1/3 tests fail.
3009 (home-page "https://community.kde.org/Frameworks")
3010 (synopsis "Provides access to all contacts and aggregates them by person")
3011 (description "KPeople offers unified access to our contacts from different
3012 sources, grouping them by person while still exposing all the data. KPeople
3013 also provides facilities to integrate the data provided in user interfaces by
3014 providing QML and Qt Widgets components. The sources are plugin-based, allowing
3015 to easily extend the contacts collection.")
3016 (license license:lgpl2.1+)))
3018 (define-public krunner
3025 "mirror://kde/stable/frameworks/"
3026 (version-major+minor version) "/"
3027 name "-" version ".tar.xz"))
3030 "0fhb26vi9z1mky79kq12qq4g4ghz3530cx84n5l3sdgkd6nfsyqf"))))
3031 (build-system cmake-build-system)
3033 `(("plasma-framework" ,plasma-framework)))
3035 `(("extra-cmake-modules" ,extra-cmake-modules)
3041 ("kbookmarks" ,kbookmarks)
3042 ("kcodecs" ,kcodecs)
3043 ("kcompletion" ,kcompletion)
3044 ("kconfig" ,kconfig)
3045 ("kconfigwidgets" ,kconfigwidgets)
3046 ("kcoreaddons" ,kcoreaddons)
3048 ("kitemviews" ,kitemviews)
3050 ("kjobwidgets" ,kjobwidgets)
3051 ("kpackage" ,kpackage)
3052 ("kservice" ,kservice)
3053 ("kwidgetsaddons" ,kwidgetsaddons)
3054 ("kwindowsystem" ,kwindowsystem)
3055 ("kxmlgui" ,kxmlgui)
3057 ("qtdeclarative" ,qtdeclarative)
3059 ("threadweaver" ,threadweaver)))
3062 (modify-phases %standard-phases
3063 (add-after 'unpack 'fix-paths-for-test
3064 ;; This test tries to access paths like /home, /usr/bin and /bin/ls
3065 ;; which don't exist in the build-container. Change to existing paths.
3067 (substitute* "autotests/runnercontexttest.cpp"
3068 (("/home\"") "/tmp\"") ;; single path-part
3069 (("//usr/bin\"") (string-append (getcwd) "\"")) ;; multiple path-parts
3071 (string-append (assoc-ref %build-inputs "coreutils") path)))))
3072 (add-before 'check 'check-setup
3074 (setenv "HOME" (getcwd))
3075 ;; make Qt render "offscreen", required for tests
3076 (setenv "QT_QPA_PLATFORM" "offscreen")
3077 ;; Blacklist some failing test-functions. FIXME: Make them pass.
3078 (with-output-to-file "bin/BLACKLIST"
3080 (display "[testMatch]\n*\n")
3081 (display "[testMulti]\n*\n")))
3085 (invoke "dbus-launch" "ctest" "."))))))
3086 (home-page "https://community.kde.org/Frameworks")
3087 (synopsis "Framework for Plasma runners")
3088 (description "The Plasma workspace provides an application called KRunner
3089 which, among other things, allows one to type into a text area which causes
3090 various actions and information that match the text appear as the text is being
3092 (license license:lgpl2.1+)))
3094 (define-public kservice
3101 "mirror://kde/stable/frameworks/"
3102 (version-major+minor version) "/"
3103 name "-" version ".tar.xz"))
3106 "0g49p5331f7dl46rvi43akmjm1jx70w9797j6d17jy7z9s9sqikw"))))
3107 (build-system cmake-build-system)
3109 `(("kconfig" ,kconfig)
3110 ("kcoreaddons" ,kcoreaddons)))
3113 ("extra-cmake-modules" ,extra-cmake-modules)
3116 `(("kcrash" ,kcrash)
3117 ("kdbusaddons" ,kdbusaddons)
3118 ("kdoctools" ,kdoctools)
3120 ("qtbase" ,qtbase)))
3122 `(#:tests? #f ; FIXME: 6/10 tests fail.
3124 (modify-phases %standard-phases
3125 (add-after 'unpack 'patch
3126 ;; Adopted from NixOS' patches "qdiriterator-follow-symlinks" and
3127 ;; "no-canonicalize-path".
3129 (substitute* "src/sycoca/kbuildsycoca.cpp"
3130 ;; make QDirIterator follow symlinks
3131 (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
3132 (string-append a " | QDirIterator::FollowSymlinks" b)))
3133 (substitute* "src/sycoca/vfolder_menu.cpp"
3134 ;; Normalize path, but don't resolve symlinks (taken from
3136 (("^\\s*QString resolved = QDir\\(dir\\)\\.canonicalPath\\(\\);")
3137 "QString resolved = QDir::cleanPath(dir);"))
3139 (add-before 'check 'check-setup
3141 (setenv "HOME" (getcwd))
3142 ;; make Qt render "offscreen", required for tests
3143 (setenv "QT_QPA_PLATFORM" "offscreen")
3145 (home-page "https://community.kde.org/Frameworks")
3146 (synopsis "Plugin framework for desktop services")
3147 (description "KService provides a plugin framework for handling desktop
3148 services. Services can be applications or libraries. They can be bound to MIME
3149 types or handled by application specific code.")
3151 (license (list license:gpl2+ license:gpl3+ license:lgpl2.1+))))
3153 (define-public ktexteditor
3155 (name "ktexteditor")
3160 "mirror://kde/stable/frameworks/"
3161 (version-major+minor version) "/"
3162 "ktexteditor-" version ".tar.xz"))
3165 "0k10yj1ia1w1mznj4g5nvp65p226zcvgwxc85ycn2w8lbkknidf7"))))
3166 (build-system cmake-build-system)
3168 `(("kparts" ,kparts)))
3170 `(("extra-cmake-modules" ,extra-cmake-modules)
3171 ("pkg-config" ,pkg-config)))
3173 `(;; TODO: editor-config
3174 ("karchive" ,karchive)
3176 ("kbookmarks" ,kbookmarks)
3177 ("kcodecs" ,kcodecs)
3178 ("kcompletion" ,kcompletion)
3179 ("kconfig" ,kconfig)
3180 ("kconfigwidgets" ,kconfigwidgets)
3181 ("kcoreaddons" ,kcoreaddons)
3182 ("kguiaddons" ,kguiaddons)
3183 ("kiconthemes" ,kiconthemes)
3185 ("kitemviews" ,kitemviews)
3187 ("kjobwidgets" ,kjobwidgets)
3188 ("kservice" ,kservice)
3189 ("ksyntaxhighlighting" ,ksyntaxhighlighting)
3190 ("ktextwidgets" ,ktextwidgets)
3191 ("kwidgetsaddons" ,kwidgetsaddons)
3192 ("kxmlgui" ,kxmlgui)
3193 ("libgit2" ,libgit2)
3196 ("qtdeclarative" ,qtdeclarative)
3197 ("qtscript" ,qtscript)
3198 ("qtxmlpatterns" ,qtxmlpatterns)
3200 ("sonnet" ,sonnet)))
3202 `(#:tests? #f ; FIXME: 2/54 tests fail: Cannot find fontdirectory qtbase/lib/font
3204 (modify-phases %standard-phases
3205 (add-after 'unpack 'setup
3206 (lambda* (#:key inputs #:allow-other-keys)
3207 (setenv "XDG_DATA_DIRS" ; FIXME build phase doesn't find parts.desktop
3208 (string-append (assoc-ref inputs "kparts") "/share"))
3210 (add-before 'check 'check-setup
3212 (setenv "HOME" (getcwd))
3213 ;; make Qt render "offscreen", required for tests
3214 (setenv "QT_QPA_PLATFORM" "offscreen")
3216 (add-after 'install 'add-symlinks
3217 ;; Some package(s) (e.g. plasma-sdk) refer to these service types
3218 ;; by the wrong name. I would prefer to patch those packages, but
3219 ;; I cannot find the files!
3220 (lambda* (#:key outputs #:allow-other-keys)
3221 (let ((kst5 (string-append (assoc-ref outputs "out")
3222 "/share/kservicetypes5/")))
3223 (symlink (string-append kst5 "ktexteditorplugin.desktop")
3224 (string-append kst5 "ktexteditor-plugin.desktop"))
3226 (home-page "https://community.kde.org/Frameworks")
3227 (synopsis "Full text editor component")
3228 (description "KTextEditor provides a powerful text editor component that you
3229 can embed in your application, either as a KPart or using the KF5::TextEditor
3232 (license (list license:gpl2+ license:lgpl2.0+ license:lgpl2.1+))))
3234 (define-public ktextwidgets
3236 (name "ktextwidgets")
3241 "mirror://kde/stable/frameworks/"
3242 (version-major+minor version) "/"
3243 name "-" version ".tar.xz"))
3246 "1609rlwba674kr9whawk93vb1b14b5ly7wvir7kjyjp4j715f47w"))))
3247 (build-system qt-build-system)
3250 ("sonnet" ,sonnet)))
3252 `(("extra-cmake-modules" ,extra-cmake-modules)
3253 ("qttools" ,qttools)))
3256 ("kcodecs" ,kcodecs)
3257 ("kcompletion" ,kcompletion)
3258 ("kconfig" ,kconfig)
3259 ("kconfigwidgets" ,kconfigwidgets)
3260 ("kcoreaddons" ,kcoreaddons)
3261 ("kiconthemes" ,kiconthemes)
3262 ("kservice" ,kservice)
3263 ("kwidgetsaddons" ,kwidgetsaddons)
3264 ("kwindowsystem" ,kwindowsystem)
3266 ("qtspeech" ,qtspeech)))
3267 (home-page "https://community.kde.org/Frameworks")
3268 (synopsis "Text editing widgets")
3269 (description "KTextWidgets provides widgets for displaying and editing text.
3270 It supports rich text as well as plain text.")
3272 (license (list license:lgpl2.0+ license:lgpl2.1+))))
3274 (define-public kwallet
3281 "mirror://kde/stable/frameworks/"
3282 (version-major+minor version) "/"
3283 name "-" version ".tar.xz"))
3286 "1ps6ywcirv7xcisvwfcpvk53wm7m8y5lrz4nhkm36rizrdglw19r"))))
3287 (build-system cmake-build-system)
3289 `(("extra-cmake-modules" ,extra-cmake-modules)))
3293 ("kcodecs" ,kcodecs)
3294 ("kconfig" ,kconfig)
3295 ("kconfigwidgets" ,kconfigwidgets)
3296 ("kcoreaddons" ,kcoreaddons)
3297 ("kdbusaddons" ,kdbusaddons)
3298 ("kdoctools" ,kdoctools)
3299 ("kiconthemes" ,kiconthemes)
3301 ("knotifications" ,knotifications)
3302 ("kservice" ,kservice)
3303 ("kwidgetsaddons" ,kwidgetsaddons)
3304 ("kwindowsystem" ,kwindowsystem)
3305 ("libgcrypt" ,libgcrypt)
3308 ("qtbase" ,qtbase)))
3309 (home-page "https://community.kde.org/Frameworks")
3310 (synopsis "Safe desktop-wide storage for passwords")
3311 (description "This framework contains an interface to KWallet, a safe
3312 desktop-wide storage for passwords and the kwalletd daemon used to safely store
3313 the passwords on KDE work spaces.")
3314 (license license:lgpl2.1+)))
3316 (define-public kxmlgui
3323 "mirror://kde/stable/frameworks/"
3324 (version-major+minor version) "/"
3325 name "-" version ".tar.xz"))
3328 "0cvzcq2dcz89c0ffhvfb820hfmqa87mfdbjvrqjwdysc9lr8zx8f"))))
3329 (build-system cmake-build-system)
3331 `(("kconfig" ,kconfig)
3332 ("kconfigwidgets" ,kconfigwidgets)))
3334 `(("extra-cmake-modules" ,extra-cmake-modules)
3335 ("qttools" ,qttools)))
3337 `(("attica" ,attica)
3339 ("kcodecs" ,kcodecs)
3340 ("kcoreaddons" ,kcoreaddons)
3341 ("kglobalaccel" ,kglobalaccel)
3342 ("kiconthemes" ,kiconthemes)
3343 ("kitemviews" ,kitemviews)
3345 ("ktextwidgets" ,ktextwidgets)
3346 ("kwidgetsaddons" ,kwidgetsaddons)
3347 ("kwindowsystem" ,kwindowsystem)
3349 ("sonnet" ,sonnet)))
3351 `(#:tests? #f ; FIXME: 1/5 tests fail.
3353 (modify-phases %standard-phases
3354 (add-before 'check 'check-setup
3356 (setenv "HOME" (getcwd))
3357 ;; make Qt render "offscreen", required for tests
3358 (setenv "QT_QPA_PLATFORM" "offscreen")
3360 (home-page "https://community.kde.org/Frameworks")
3361 (synopsis "Framework for managing menu and toolbar actions")
3362 (description "KXMLGUI provides a framework for managing menu and toolbar
3363 actions in an abstract way. The actions are configured through a XML description
3364 and hooks in the application code. The framework supports merging of multiple
3365 descriptions for integrating actions from plugins.")
3367 (license (list license:gpl2+ license:lgpl2.1+))))
3369 (define-public kxmlrpcclient
3371 (name "kxmlrpcclient")
3376 "mirror://kde/stable/frameworks/"
3377 (version-major+minor version) "/"
3378 name "-" version ".tar.xz"))
3381 "1cmfv2w9yfi8jhj5nawfz7kw8jbr1k5cr3n5xv3z59pg2vazsx8b"))))
3382 (build-system cmake-build-system)
3386 `(("extra-cmake-modules" ,extra-cmake-modules)))
3389 ("kbookmarks" ,kbookmarks)
3390 ("kcodecs" ,kcodecs)
3391 ("kcompletion" ,kcompletion)
3392 ("kconfig" ,kconfig)
3393 ("kconfigwidgets" ,kconfigwidgets)
3394 ("kcoreaddons" ,kcoreaddons)
3395 ("kitemviews" ,kitemviews)
3397 ("kjobwidgets" ,kjobwidgets)
3398 ("kservice" ,kservice)
3399 ("kwidgetsaddons" ,kwidgetsaddons)
3400 ("kxmlgui" ,kxmlgui)
3403 (home-page "https://community.kde.org/Frameworks")
3404 (synopsis "XML-RPC client")
3405 (description "This library contains simple XML-RPC Client support. It is a
3406 complete client and is easy to use. Only one interface is exposed,
3407 kxmlrpcclient/client.h and from that interface, you only need to use 3 methods:
3408 setUrl, setUserAgent and call.")
3410 (license (list license:bsd-2 license:lgpl2.1+))))
3412 (define-public plasma-framework
3414 (name "plasma-framework")
3419 "mirror://kde/stable/frameworks/"
3420 (version-major+minor version) "/"
3421 name "-" version ".tar.xz"))
3424 "06cxajsxj62g3c37ssrrcaxb9a12zbyp2kvrjqym329k5vd89272"))
3425 (patches (search-patches "plasma-framework-fix-KF5PlasmaMacros.cmake.patch"))))
3426 (build-system cmake-build-system)
3428 `(("kpackage" ,kpackage)
3429 ("kservice" ,kservice)))
3431 `(("extra-cmake-modules" ,extra-cmake-modules)
3432 ("pkg-config" ,pkg-config)))
3434 `(("kactivities" ,kactivities)
3435 ("karchive" ,karchive)
3437 ("kbookmarks" ,kbookmarks)
3438 ("kcodecs" ,kcodecs)
3439 ("kcompletion" ,kcompletion)
3440 ("kconfig" ,kconfig)
3441 ("kconfigwidgets" ,kconfigwidgets)
3442 ("kcoreaddons" ,kcoreaddons)
3443 ("kdbusaddons" ,kdbusaddons)
3444 ("kdeclarative" ,kdeclarative)
3445 ("kdoctools" ,kdoctools)
3446 ("kglobalaccel" ,kglobalaccel)
3447 ("kguiaddons" ,kguiaddons)
3448 ("kiconthemes" ,kiconthemes)
3449 ("kirigami" ,kirigami)
3450 ("kitemviews" ,kitemviews)
3453 ("kjobwidgets" ,kjobwidgets)
3454 ("knotificantions" ,knotifications)
3455 ("kwayland" ,kwayland)
3456 ("kwidgetsaddons" ,kwidgetsaddons)
3457 ("kwindowsystem" ,kwindowsystem)
3458 ("kxmlgui" ,kxmlgui)
3461 ("qtdeclarative" ,qtdeclarative)
3462 ("qtquickcontrols2" ,qtquickcontrols2)
3464 ("qtx11extras" ,qtx11extras)
3467 `(#:tests? #f ; FIXME: 9/15 tests fail.
3469 (modify-phases %standard-phases
3470 (add-before 'check 'check-setup
3472 (setenv "HOME" (getcwd))
3473 ;; make Qt render "offscreen", required for tests
3474 (setenv "QT_QPA_PLATFORM" "offscreen")
3476 (home-page "https://community.kde.org/Frameworks")
3477 (synopsis "Libraries, components and tools of Plasma workspaces")
3478 (description "The plasma framework provides QML components, libplasma and
3481 (license (list license:gpl2+ license:lgpl2.1+))))
3483 (define-public purpose
3490 "mirror://kde/stable/frameworks/"
3491 (version-major+minor version) "/"
3492 name "-" version ".tar.xz"))
3495 "1pxlx2hgj42zsisws8f486n8sg0vn5a5mhb85prifwkaw0rqzgah"))))
3496 (build-system cmake-build-system)
3498 `(("extra-cmake-modules" ,extra-cmake-modules)))
3500 `(;;TODO: ("kaccounts" ,kaccounts)
3501 ("kconfig" ,kconfig)
3502 ("kcoreaddons" ,kcoreaddons)
3503 ("knotifications" ,knotifications)
3506 ("kirigami" ,kirigami)
3508 ("qtdeclarative" ,qtdeclarative)))
3510 `(#:tests? #f ;; seem to require network; don't find QTQuick components
3512 (modify-phases %standard-phases
3513 (add-after 'unpack 'dont-use-qt515-logic
3515 (substitute* "src/externalprocess/purposeprocess_main.cpp"
3518 #:configure-flags '("-DBUILD_TESTING=OFF"))) ; not run anyway
3519 (home-page "https://community.kde.org/Frameworks")
3520 (synopsis "Offers available actions for a specific purpose")
3521 (description "This framework offers the possibility to create integrate
3522 services and actions on any application without having to implement them
3523 specifically. Purpose will offer them mechanisms to list the different
3524 alternatives to execute given the requested action type and will facilitate
3525 components so that all the plugins can receive all the information they
3527 (license license:lgpl2.1+)))
3529 ;; This version of kdbusaddons does not use kinit as an input, and is used to
3530 ;; build kinit-bootstrap, as well as bootstrap versions of all kinit
3531 ;; dependencies which also rely on kdbusaddons.
3532 (define kdbusaddons-bootstrap
3534 (inherit kdbusaddons)
3536 (inherit (package-source kdbusaddons))
3538 (inputs (alist-delete "kinit" (package-inputs kdbusaddons)))
3540 (substitute-keyword-arguments (package-arguments kdbusaddons)
3542 `(modify-phases ,phases
3543 (delete 'patch-source)))))))
3545 (define kinit-bootstrap
3546 ((package-input-rewriting `((,kdbusaddons . ,kdbusaddons-bootstrap))) kinit))
3551 ;; Tier 4 frameworks can be mostly ignored by application programmers; this
3552 ;; tier consists of plugins acting behind the scenes to provide additional
3553 ;; functionality or platform integration to existing frameworks (including
3556 (define-public kde-frameworkintegration
3558 (name "kde-frameworkintegration")
3563 "mirror://kde/stable/frameworks/"
3564 (version-major+minor version) "/"
3565 "frameworkintegration-" version ".tar.xz"))
3568 "1lvccvhhkzdv1hw627kw3ds18gfq4bxdhlvh959piqxq5gh9d2n0"))))
3569 (build-system cmake-build-system)
3571 `(("extra-cmake-modules" ,extra-cmake-modules)
3572 ("pkg-config" ,pkg-config)))
3573 ;; TODO: Optional packages not yet in Guix: packagekitqt5, AppStreamQt
3575 `(("kconfig" ,kconfig)
3576 ("kconfigwidgets" ,kconfigwidgets)
3577 ("kcoreaddons" ,kcoreaddons)
3579 ("kiconthemes" ,kiconthemes)
3580 ("kitemviews" ,kitemviews)
3581 ("knewstuff" ,knewstuff)
3582 ("knotificantions" ,knotifications)
3583 ("kpackage" ,kpackage)
3584 ("kwidgetsaddons" ,kwidgetsaddons)
3586 ("qtx11extras" ,qtx11extras)))
3589 (modify-phases %standard-phases
3590 (add-before 'check 'check-setup
3592 (setenv "HOME" (getcwd))
3593 ;; Make Qt render "offscreen", required for tests
3594 (setenv "QT_QPA_PLATFORM" "offscreen")
3596 (home-page "https://community.kde.org/Frameworks")
3597 (synopsis "KDE Frameworks 5 workspace and cross-framework integration plugins")
3598 (description "Framework Integration is a set of plugins responsible for
3599 better integration of Qt applications when running on a KDE Plasma
3601 ;; This package is distributed under either LGPL2 or LGPL3, but some
3602 ;; files are explicitly LGPL2+.
3603 (license (list license:lgpl2.0 license:lgpl3 license:lgpl2.0+))
3604 (properties `((upstream-name . "frameworkintegration")))))
3609 ;; Porting Aids frameworks provide code and utilities to ease the transition
3610 ;; from kdelibs 4 to KDE Frameworks 5. Code should aim to port away from this
3611 ;; framework, new projects should avoid using these libraries.
3613 (define-public kdelibs4support
3615 (name "kdelibs4support")
3621 "mirror://kde/stable/frameworks/"
3622 (version-major+minor version) "/portingAids/"
3623 name "-" version ".tar.xz"))
3625 (base32 "0imkibjlfc0jshdzr05fz5dy2xmfhvgsfan9b1r35spwsn5qkawx"))))
3626 (build-system cmake-build-system)
3629 ("docbook-xml" ,docbook-xml-4.4) ; optional
3630 ("extra-cmake-modules" ,extra-cmake-modules)
3632 ("perl-uri" ,perl-uri)
3633 ("pkg-config" ,pkg-config)
3634 ("shared-mime-info" ,shared-mime-info)
3635 ("kjobwidgets" ,kjobwidgets) ;; required for running the tests
3637 ("tzdata" ,tzdata-for-tests)))
3639 ;; These are required to be installed along with this package, see
3640 ;; lib64/cmake/KF5KDELibs4Support/KF5KDELibs4SupportConfig.cmake
3641 `(("karchive" ,karchive)
3643 ("kconfigwidgets" ,kconfigwidgets)
3644 ("kcoreaddons" ,kcoreaddons)
3646 ("kdbusaddons" ,kdbusaddons)
3647 ("kdesignerplugin" ,kdesignerplugin)
3648 ("kdoctools" ,kdoctools)
3649 ("kemoticons" ,kemoticons)
3650 ("kguiaddons" ,kguiaddons)
3651 ("kiconthemes" ,kiconthemes)
3653 ("kitemmodels" ,kitemmodels)
3654 ("knotifications" ,knotifications)
3656 ("ktextwidgets" ,ktextwidgets)
3657 ("kunitconversion" ,kunitconversion)
3658 ("kwindowsystem" ,kwindowsystem)
3659 ("qtbase" ,qtbase)))
3661 `(("kcompletion" ,kcompletion)
3662 ("kconfig" ,kconfig)
3664 ("kglobalaccel" ,kglobalaccel)
3667 ("kservice" ,kservice)
3668 ("kwidgetsaddons" ,kwidgetsaddons)
3669 ("kxmlgui" ,kxmlgui)
3671 ("networkmanager-qt" ,networkmanager-qt)
3672 ("openssl" ,openssl)
3674 ("qttools" ,qttools)
3675 ("qtx11extras" ,qtx11extras)))
3676 ;; FIXME: Use Guix ca-bundle.crt in etc/xdg/ksslcalist and
3677 ;; share/kf5/kssl/ca-bundle.crt
3678 ;; TODO: NixOS has nix-kde-include-dir.patch to change std-dir "include"
3679 ;; into "@dev@/include/". Think about whether this is needed for us, too.
3682 (modify-phases %standard-phases
3683 (add-after 'unpack 'make-cmake-to-find-docbook
3685 (substitute* "cmake/FindDocBookXML4.cmake"
3686 (("^.*xml/docbook/schema/dtd.*$")
3687 "xml/dtd/docbook\n"))
3690 (add-after 'install 'check-post-install
3691 (lambda* (#:key inputs tests? #:allow-other-keys)
3692 (setenv "HOME" (getcwd))
3693 (setenv "TZDIR" ; KDateTimeTestsome needs TZDIR
3694 (string-append (assoc-ref inputs "tzdata")
3696 ;; Make Qt render "offscreen", required for tests
3697 (setenv "QT_QPA_PLATFORM" "offscreen")
3698 ;; enable debug output
3699 (setenv "CTEST_OUTPUT_ON_FAILURE" "1") ; enable debug output
3700 (setenv "DBUS_FATAL_WARNINGS" "0")
3701 ;; Make kstandarddirstest pass (see https://bugs.kde.org/381098)
3702 (mkdir-p ".kde-unit-test/xdg/config")
3703 (with-output-to-file ".kde-unit-test/xdg/config/foorc"
3704 (lambda () #t)) ;; simply touch the file
3705 ;; Blacklist a test-function (failing at build.kde.org, too).
3706 (with-output-to-file "autotests/BLACKLIST"
3708 (display "[testSmb]\n*\n")))
3709 ;; kuniqueapptest hangs. FIXME: Make this test pass.
3710 (invoke "dbus-launch" "ctest" "."
3711 "-E" "kstandarddirstest|kuniqueapptest"))))))
3712 (home-page "https://community.kde.org/Frameworks")
3713 (synopsis "KDE Frameworks 5 porting aid from KDELibs4")
3714 (description "This framework provides code and utilities to ease the
3715 transition from kdelibs 4 to KDE Frameworks 5. This includes CMake macros and
3716 C++ classes whose functionality has been replaced by code in CMake, Qt and
3719 Code should aim to port away from this framework eventually. The API
3720 documentation of the classes in this framework and the notes at
3721 http://community.kde.org/Frameworks/Porting_Notes should help with this.")
3722 ;; Most files are distributed under LGPL2+, but the package includes code
3723 ;; under a variety of licenses.
3724 (license (list license:lgpl2.1+ license:lgpl2.0 license:lgpl2.0+
3725 license:gpl2 license:gpl2+
3726 license:expat license:bsd-2 license:bsd-3
3727 license:public-domain))))
3729 (define-public khtml
3737 "mirror://kde/stable/frameworks/"
3738 (version-major+minor version) "/portingAids/"
3739 name "-" version ".tar.xz"))
3741 (base32 "1jh0g6xv57hyclnh54x0f72lby1gvlisan23y7mzlqf67aky52s5"))))
3742 (build-system qt-build-system)
3744 `(("extra-cmake-modules" ,extra-cmake-modules)
3747 `(("giflib" ,giflib)
3749 ("karchive" ,karchive)
3750 ("kcodecs" ,kcodecs)
3751 ("kglobalaccel" ,kglobalaccel)
3753 ("kiconthemes" ,kiconthemes)
3756 ("knotifications" ,knotifications)
3758 ("ktextwidgets" ,ktextwidgets)
3759 ("kwallet" ,kwallet)
3760 ("kwidgetsaddons" ,kwidgetsaddons)
3761 ("kwindowsystem" ,kwindowsystem)
3762 ("kxmlgui" ,kxmlgui)
3763 ("libjpeg" ,libjpeg-turbo)
3765 ("openssl" ,openssl)
3768 ("qtx11extras" ,qtx11extras)
3769 ("sonnet" ,sonnet)))
3770 (home-page "https://community.kde.org/Frameworks")
3771 (synopsis "KDE Frameworks 5 HTML widget and component")
3772 (description "KHTML is a web rendering engine, based on the KParts
3773 technology and using KJS for JavaScript support.")
3774 ;; Most files are distributed under LGPL2+, but the package includes code
3775 ;; under a variety of licenses.
3776 (license (list license:lgpl2.0+ license:lgpl2.1+
3777 license:gpl2 license:gpl3+
3778 license:expat license:bsd-2 license:bsd-3))))
3788 "mirror://kde/stable/frameworks/"
3789 (version-major+minor version) "/portingAids/"
3790 name "-" version ".tar.xz"))
3792 (base32 "0s3n0pdz59p5v967zrxcas3lb94k5bv9vi8058fi0l20nwwlcgh5"))))
3793 (build-system cmake-build-system)
3795 `(("extra-cmake-modules" ,extra-cmake-modules)
3796 ("kdoctools" ,kdoctools)
3798 ("pkg-config" ,pkg-config)))
3801 ("qtbase" ,qtbase)))
3802 (home-page "https://community.kde.org/Frameworks")
3803 (synopsis "KDE Frameworks 5 support for Javascript scripting in Qt
3805 (description "Add-on library to Qt which adds JavaScript scripting
3807 ;; Most files are distributed under LGPL2+, but the package also includes
3808 ;; code under a variety of licenses.
3809 (license (list license:lgpl2.1+
3810 license:bsd-2 license:bsd-3
3811 (license:non-copyleft "file://src/kjs/dtoa.cpp")))))
3813 (define-public kjsembed
3821 "mirror://kde/stable/frameworks/"
3822 (version-major+minor version) "/portingAids/"
3823 name "-" version ".tar.xz"))
3825 (base32 "0976faazhxhhi1wpvpcs8hwb2knz0z7j44v3ay3hw73rq4p3bipm"))))
3826 (build-system cmake-build-system)
3828 `(("extra-cmake-modules" ,extra-cmake-modules)
3829 ("kdoctools" ,kdoctools)
3830 ("qttools" ,qttools)))
3836 (home-page "https://community.kde.org/Frameworks")
3837 (synopsis "KDE Frameworks 5 embedded Javascript engine for Qt")
3838 (description "KJSEmbed provides a method of binding Javascript objects to
3839 QObjects, so you can script your applications.")
3840 (license license:lgpl2.1+)))
3842 (define-public kmediaplayer
3844 (name "kmediaplayer")
3850 "mirror://kde/stable/frameworks/"
3851 (version-major+minor version) "/portingAids/"
3852 name "-" version ".tar.xz"))
3854 (base32 "0lrm4y727nhwaivl37zpmnrwx048gfhyjw19m6q5z9p37lk43jja"))))
3855 (build-system qt-build-system)
3857 `(("extra-cmake-modules" ,extra-cmake-modules)
3858 ("kdoctools" ,kdoctools)
3859 ("qttools" ,qttools)))
3861 `(("kcompletion" ,kcompletion)
3862 ("kcoreaddons" ,kcoreaddons)
3864 ("kiconthemes" ,kiconthemes)
3867 ("kwidgetsaddons" ,kwidgetsaddons)
3868 ("kxmlgui" ,kxmlgui)
3869 ("qtbase" ,qtbase)))
3870 (home-page "https://community.kde.org/Frameworks")
3871 (synopsis "KDE Frameworks 5 plugin interface for media player features")
3872 (description "KMediaPlayer builds on the KParts framework to provide a
3873 common interface for KParts that can play media files.
3875 This framework is a porting aid. It is not recommended for new projects, and
3876 existing projects that use it are advised to port away from it, and use plain
3878 (license license:expat)))
3880 (define-public kross
3888 "mirror://kde/stable/frameworks/"
3889 (version-major+minor version) "/portingAids/"
3890 name "-" version ".tar.xz"))
3892 (base32 "12b527l12rcf421p613ydbacilp9v9iy90ma35w21sdf9a15k675"))))
3893 (build-system cmake-build-system)
3895 `(("extra-cmake-modules" ,extra-cmake-modules)
3896 ("kdoctools" ,kdoctools)
3897 ("qttools" ,qttools)))
3899 `(("kcompletion" ,kcompletion)
3900 ("kcoreaddons" ,kcoreaddons)
3902 ("kiconthemes" ,kiconthemes)
3904 ("kwidgetsaddons" ,kwidgetsaddons)
3905 ("kxmlgui" ,kxmlgui)
3907 ("qtscript" ,qtscript)))
3908 (home-page "https://community.kde.org/Frameworks")
3909 (synopsis "KDE Frameworks 5 solution for application scripting")
3910 (description "Kross is a scripting bridge for the KDE Development Platform
3911 used to embed scripting functionality into an application. It supports
3912 QtScript as a scripting interpreter backend.
3914 Kross provides an abstract API to provide scripting functionality in a
3915 interpreter-independent way. The application that uses Kross should not need
3916 to know anything about the scripting language being used. The core of Kross
3917 provides the framework to deal transparently with interpreter-backends and
3918 offers abstract functionality to deal with scripts.")
3919 ;; Most files are distributed under LGPL2+, but the package includes code
3920 ;; under a variety of licenses.
3921 (license (list license:lgpl2.0+ license:lgpl2.1+
3922 license:lgpl2.0 license:gpl3+))))