1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il>
4 ;;; Copyright © 2016-2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
5 ;;; Copyright © 2016 David Craven <david@craven.ch>
6 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
7 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
11 ;;; This file is part of GNU Guix.
13 ;;; GNU Guix is free software; you can redistribute it and/or modify it
14 ;;; under the terms of the GNU General Public License as published by
15 ;;; the Free Software Foundation; either version 3 of the License, or (at
16 ;;; your option) any later version.
18 ;;; GNU Guix is distributed in the hope that it will be useful, but
19 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;;; GNU General Public License for more details.
23 ;;; You should have received a copy of the GNU General Public License
24 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
26 (define-module (gnu packages kde-frameworks)
27 #:use-module (guix build-system cmake)
28 #:use-module (guix build-system qt)
29 #:use-module (guix download)
30 #:use-module ((guix licenses) #:prefix license:)
31 #:use-module (guix packages)
32 #:use-module (guix utils)
33 #:use-module (gnu packages)
34 #:use-module (gnu packages acl)
35 #:use-module (gnu packages admin)
36 #:use-module (gnu packages aidc)
37 #:use-module (gnu packages attr)
38 #:use-module (gnu packages avahi)
39 #:use-module (gnu packages base)
40 #:use-module (gnu packages boost)
41 #:use-module (gnu packages bison)
42 #:use-module (gnu packages boost)
43 #:use-module (gnu packages calendar)
44 #:use-module (gnu packages compression)
45 #:use-module (gnu packages databases)
46 #:use-module (gnu packages docbook)
47 #:use-module (gnu packages flex)
48 #:use-module (gnu packages freedesktop)
49 #:use-module (gnu packages gettext)
50 #:use-module (gnu packages gl)
51 #:use-module (gnu packages glib)
52 #:use-module (gnu packages gnome)
53 #:use-module (gnu packages gnupg)
54 #:use-module (gnu packages gperf)
55 #:use-module (gnu packages graphics)
56 #:use-module (gnu packages gstreamer)
57 #:use-module (gnu packages image)
58 #:use-module (gnu packages kerberos)
59 #:use-module (gnu packages libreoffice)
60 #:use-module (gnu packages linux)
61 #:use-module (gnu packages mp3)
62 #:use-module (gnu packages openbox)
63 #:use-module (gnu packages pdf)
64 #:use-module (gnu packages pcre)
65 #:use-module (gnu packages perl)
66 #:use-module (gnu packages pkg-config)
67 #:use-module (gnu packages polkit)
68 #:use-module (gnu packages python)
69 #:use-module (gnu packages python-xyz)
70 #:use-module (gnu packages qt)
71 #:use-module (gnu packages textutils)
72 #:use-module (gnu packages tls)
73 #:use-module (gnu packages version-control)
74 #:use-module (gnu packages video)
75 #:use-module (gnu packages web)
76 #:use-module (gnu packages xml)
77 #:use-module (gnu packages xorg)
78 #:use-module (srfi srfi-1))
80 (define-public extra-cmake-modules
82 (name "extra-cmake-modules")
87 "mirror://kde/stable/frameworks/"
88 (version-major+minor version) "/"
89 name "-" version ".tar.xz"))
92 "14h7519bfkwzh58lxgxrj5jlfhfnrakhjcm6lmhafnkg5h56m4kr"))))
93 (build-system cmake-build-system)
95 `(("qtbase" ,qtbase))) ; For tests (needs qmake)
98 (modify-phases %standard-phases
99 (add-after 'unpack 'fix-lib-path
101 ;; Always install into /lib and not into /lib64.
102 (substitute* "kde-modules/KDEInstallDirs.cmake"
103 (("\"lib64\"") "\"lib\"")
104 ;; TODO: Base the following on values taken from Qt
105 ;; Install plugins into lib/qt5/plugins
106 ;; TODO: Check if this is okay for Android, too
107 ;; (see comment in KDEInstallDirs.cmake)
108 (("_define_relative\\(QTPLUGINDIR \"\\$\\{_pluginsDirParent}\" \"plugins\"")
109 "_define_relative(QTPLUGINDIR \"${_pluginsDirParent}\" \"qt5/plugins\"")
110 ;; Install imports into lib/qt5/imports
111 (("_define_relative\\(QTQUICKIMPORTSDIR QTPLUGINDIR \"imports\"")
112 "_define_relative(QTQUICKIMPORTSDIR LIBDIR \"qt5/imports\"")
113 ;; Install qml-files into lib/qt5/qml
114 (("_define_relative\\(QMLDIR LIBDIR \"qml\"")
115 "_define_relative(QMLDIR LIBDIR \"qt5/qml\""))
116 (substitute* "modules/ECMGeneratePriFile.cmake"
117 ;; Install pri-files into lib/qt5/mkspecs
118 (("set\\(ECM_MKSPECS_INSTALL_DIR mkspecs/modules")
119 "set(ECM_MKSPECS_INSTALL_DIR lib/qt5/mkspecs/modules"))
121 ;; install and check phase are swapped to prevent install from failing
122 ;; after testsuire has run
123 (add-after 'install 'check-post-install
124 (assoc-ref %standard-phases 'check))
126 ;; optional dependencies - to save space, we do not add these inputs.
128 ;; Required to build Extra CMake Modules documentation in Qt Help format.
129 ;; Qt5LinguistTools , Qt5 linguist tools. , <http://www.qt.io/>
130 ;; Required to run tests for the ECMPoQmTools module.
132 ;; Required to run tests for the ECMQtDeclareLoggingCategory module,
133 ;; and for some tests of the KDEInstallDirs module.
134 (home-page "https://community.kde.org/Frameworks")
135 (synopsis "CMake module files for common software used by KDE")
136 (description "The Extra CMake Modules package, or ECM, adds to the
137 modules provided by CMake to find common software. In addition, it provides
138 common build settings used in software produced by the KDE community.")
139 (license license:bsd-3)))
141 (define-public phonon
148 "mirror://kde/stable/phonon"
150 name "-" version ".tar.xz"))
153 "0bfy8iqmjhlg3ma3iqd3kxjc2zkzpjgashbpf5x17y0dc2i1whxl"))))
154 (build-system cmake-build-system)
156 ;; TODO: Think about adding pulseaudio. Is it required for sound?
157 ;; TODO: Add building the super experimental QML support
158 `(("extra-cmake-modules" ,extra-cmake-modules)
159 ("pkg-config" ,pkg-config)
160 ("qttools" ,qttools)))
162 `(("qtbase" ,qtbase)))
165 '("-DCMAKE_CXX_FLAGS=-fPIC"
166 "-DPHONON_BUILD_PHONON4QT5=ON")
168 (modify-phases %standard-phases
169 (add-before 'install 'patch-installdir
170 (lambda* (#:key inputs outputs #:allow-other-keys)
171 (let ((regex (string-append "(INSTALL DESTINATION \")"
172 (assoc-ref inputs "qtbase"))))
173 (substitute* "cmake_install.cmake"
175 (string-append dest (assoc-ref outputs "out")))))
177 (home-page "https://phonon.kde.org")
178 (synopsis "KDE's multimedia library")
179 (description "KDE's multimedia library.")
180 (license license:lgpl2.1+)))
182 (define-public phonon-backend-gstreamer
184 (name "phonon-backend-gstreamer")
189 "mirror://kde/stable/phonon/"
191 name "-" version ".tar.xz"))
194 "1wk1ip2w7fkh65zk6rilj314dna0hgsv2xhjmpr5w08xa8sii1y5"))))
195 (build-system cmake-build-system)
197 `(("extra-cmake-modules" ,extra-cmake-modules)
198 ("pkg-config" ,pkg-config)
199 ("qttools" ,qttools)))
204 ("qtx11extras" ,qtx11extras)
205 ("gstreamer" ,gstreamer)
206 ("gst-plugins-base" ,gst-plugins-base)
207 ("libxml2" ,libxml2)))
210 '( "-DPHONON_BUILD_PHONON4QT5=ON")))
211 (home-page "https://phonon.kde.org")
212 (synopsis "Phonon backend which uses GStreamer")
213 (description "Phonon makes use of backend libraries to provide sound.
214 Phonon-GStreamer is a backend based on the GStreamer multimedia library.")
215 ;; license: source files mention "either version 2.1 or 3"
216 (license (list license:lgpl2.1 license:lgpl3))))
221 ;; Tier 1 frameworks depend only on Qt (and possibly a small number of other
222 ;; third-party libraries), so can easily be used by an Qt-based project.
224 (define-public attica
231 "mirror://kde/stable/frameworks/"
232 (version-major+minor version) "/"
233 name "-" version ".tar.xz"))
236 "0dvsjwl2c3liiicv2m8p1m7hlc3fcapsj5pfirmdm1l38wcayr60"))))
237 (build-system cmake-build-system)
240 (modify-phases %standard-phases
241 (add-after 'unpack 'disable-network-tests
243 ;; These tests require network access.
244 (substitute* "autotests/CMakeLists.txt"
245 ((".*providertest.cpp") "")))))))
247 `(("extra-cmake-modules" ,extra-cmake-modules)))
249 `(("qtbase" ,qtbase)))
250 (home-page "https://community.kde.org/Frameworks")
251 (synopsis "Open Collaboration Service client library")
252 (description "Attica is a Qt library that implements the Open
253 Collaboration Services API version 1.6.
255 It grants easy access to the services such as querying information about
256 persons and contents. The library is used in KNewStuff3 as content provider.
257 In order to integrate with KDE's Plasma Desktop, a platform plugin exists in
260 The REST API is defined here:
261 http://freedesktop.org/wiki/Specifications/open-collaboration-services/")
262 (license (list license:lgpl2.1+ license:lgpl3+))))
264 (define-public bluez-qt
271 "mirror://kde/stable/frameworks/"
272 (version-major+minor version) "/"
273 name "-" version ".tar.xz"))
276 "179am9czhb9mcirmja5bxjmqil3qg81v56n8rmkkp5q50qpln4dh"))))
277 (build-system cmake-build-system)
280 ("extra-cmake-modules" ,extra-cmake-modules)))
282 ;; TODO: qtdeclarative (yields one failing test)
283 `(("qtbase" ,qtbase)))
287 "-DUDEV_RULES_INSTALL_DIR=" %output "/lib/udev/rules.d"))
288 ;; TODO: Make tests pass: DBUS_FATAL_WARNINGS=0 still yields 7/8 tests
289 ;; failing. When running after install, tests hang.
291 (home-page "https://community.kde.org/Frameworks")
292 (synopsis "QML wrapper for BlueZ")
293 (description "bluez-qt is a Qt-style library for accessing the bluez
294 Bluetooth stack. It is used by the KDE Bluetooth stack, BlueDevil.")
295 (license (list license:lgpl2.1+ license:lgpl3+))))
297 (define-public breeze-icons
299 (name "breeze-icons")
304 "mirror://kde/stable/frameworks/"
305 (version-major+minor version) "/"
306 name "-" version ".tar.xz"))
309 "17kil9dlh8w5r29arrjbv47b7jxz45kqzpg06zw3vz70bdgbb995"))))
310 (build-system cmake-build-system)
312 `(("extra-cmake-modules" ,extra-cmake-modules)
314 ("libxml2" ,libxml2)))
316 `(("qtbase" ,qtbase)))
317 (home-page "https://community.kde.org/Frameworks")
318 (synopsis "Default KDE Plasma 5 icon theme")
319 (description "Breeze provides a freedesktop.org compatible icon theme.
320 It is the default icon theme for the KDE Plasma 5 desktop.")
321 ;; The license file mentions lgpl3+. The license files in the source
322 ;; directories are lgpl3, while the top directory contains the lgpl2.1.
324 (license license:lgpl3+)))
326 (define-public kapidox
333 "mirror://kde/stable/frameworks/"
334 (version-major+minor version) "/"
335 name "-" version ".tar.xz"))
338 "0cwprhpz731bqqhr6vra6lc76k5i4pm3m9j0q21km9wm2djfmk19"))))
339 (build-system cmake-build-system)
341 `(#:tests? #f)) ; has no test target
343 `(("extra-cmake-modules" ,extra-cmake-modules)))
345 ;; kapidox is a python programm
346 ;; TODO: check if doxygen has to be installed, the readme does not
347 ;; mention it. The openSuse .rpm lists doxygen, graphviz, graphviz-gd,
350 ("python-jinja2" ,python-jinja2)
351 ("python-pyyaml" ,python-pyyaml)))
353 `(("qtbase" ,qtbase)))
354 (home-page "https://community.kde.org/Frameworks")
355 (synopsis "KDE Doxygen Tools")
356 (description "This framework contains scripts and data for building API
357 documentation (dox) in a standard format and style for KDE.
359 For the actual documentation extraction and formatting the Doxygen tool is
360 used, but this framework provides a wrapper script to make generating the
361 documentation more convenient (including reading settings from the target
362 framework or other module) and a standard template for the generated
364 ;; Most parts are bsd-2, but incuded jquery is expat
365 ;; This list is taken from http://packaging.neon.kde.org/cgit/
366 (license (list license:bsd-2 license:expat))))
368 (define-public karchive
375 "mirror://kde/stable/frameworks/"
376 (version-major+minor version) "/"
377 name "-" version ".tar.xz"))
380 "0ypykybxl9dz57rgsfihx4rfhzhphidypb2f5nwrw1f6vlqkawzs"))))
381 (build-system cmake-build-system)
383 `(("extra-cmake-modules" ,extra-cmake-modules)))
389 (home-page "https://community.kde.org/Frameworks")
390 (synopsis "Qt 5 addon providing access to numerous types of archives")
391 (description "KArchive provides classes for easy reading, creation and
392 manipulation of @code{archive} formats like ZIP and TAR.
394 It also provides transparent compression and decompression of data, like the
395 GZip format, via a subclass of QIODevice.")
396 ;; The included licenses is are gpl2 and lgpl2.1, but the sources are
397 ;; under a variety of licenses.
398 ;; This list is taken from http://packaging.neon.kde.org/cgit/
399 (license (list license:lgpl2.1 license:lgpl2.1+
400 license:lgpl3+ license:bsd-2))))
402 (define-public kcalendarcore
404 (name "kcalendarcore")
409 "mirror://kde/stable/frameworks/"
410 (version-major+minor version) "/"
411 name "-" version ".tar.xz"))
414 "1cqqwpd6faz7sd6jrda564xxvwr231b175h2w3ilxx6hvz9yrps3"))))
415 (build-system cmake-build-system)
417 `(("extra-cmake-modules" ,extra-cmake-modules)
419 ("tzdata" ,tzdata-for-tests)))
421 `(("libical" ,libical)
425 (modify-phases %standard-phases
426 (add-before 'configure 'disable-failing-libical3-tests
428 ;; testicaltimezones fails with some time-zone issue
429 (substitute* "autotests/CMakeLists.txt"
430 (("macro_unit_tests\\(testicaltimezones\\)" line)
431 (string-append "## " line))
432 (("target_link_libraries\\(testicaltimezones " line)
433 (string-append "## " line)))
437 ;; test cases are generated for each .ics file. These fail:
438 "autotests/data/Compat-libical3/AppleICal_1.5.ics"
439 "autotests/data/Compat-libical3/Evolution_2.8.2_timezone_test.ics"
440 "autotests/data/Compat-libical3/KOrganizer_3.1a.ics"
441 "autotests/data/Compat-libical3/MSExchange.ics"
442 "autotests/data/Compat-libical3/Mozilla_1.0.ics"))
444 (add-before 'check 'set-timezone
445 (lambda* (#:key inputs #:allow-other-keys)
446 (setenv "TZ" "Europe/Prague")
448 (string-append (assoc-ref inputs "tzdata")
451 (home-page "https://community.kde.org/Frameworks")
452 (synopsis "Library for interfacing with calendars")
453 (description "This library provides access to and handling of calendar
454 data. It supports the standard formats iCalendar and vCalendar and the group
455 scheduling standard iTIP.
457 A calendar contains information like incidences (events, to-dos, journals),
458 alarms, time zones, and other useful information. This API provides access to
459 that calendar information via well known calendar formats iCalendar (or iCal)
460 and the older vCalendar.")
461 (license (list license:lgpl3+ license:bsd-2))))
463 (define-public kcodecs
470 "mirror://kde/stable/frameworks/"
471 (version-major+minor version) "/"
472 name "-" version ".tar.xz"))
475 "0w5q37lqdzyl84723kg9sh9xxn2g2wv0xfxpy3218hmc9364s89h"))))
476 (build-system cmake-build-system)
478 `(("extra-cmake-modules" ,extra-cmake-modules)
480 ("qttools" ,qttools)))
482 `(("qtbase" ,qtbase)))
483 (home-page "https://community.kde.org/Frameworks")
484 (synopsis "String encoding and manipulating library")
485 (description "KCodecs provide a collection of methods to manipulate
486 strings using various encodings.
488 It can automatically determine the charset of a string, translate XML
489 entities, validate email addresses, and find encodings by name in a more
490 tolerant way than QTextCodec (useful e.g. for data coming from the
492 ;; The included licenses is are gpl2 and lgpl2.1, but the sources are
493 ;; under a variety of licenses.
494 ;; This list is taken from http://packaging.neon.kde.org/cgit/
495 (license (list license:gpl2 license:gpl2+ license:bsd-2
496 license:lgpl2.1 license:lgpl2.1+ license:expat
497 license:lgpl3+ license:mpl1.1))))
499 (define-public kconfig
506 "mirror://kde/stable/frameworks/"
507 (version-major+minor version) "/"
508 name "-" version ".tar.xz"))
511 "1ya0fvrrfiw4a5wkydcjpnkkyq3ampxy5h210dm04qim6a9x8rb1"))))
512 (build-system cmake-build-system)
515 ("extra-cmake-modules" ,extra-cmake-modules)
516 ("inetutils" ,inetutils)
518 ("xorg-server" ,xorg-server-for-tests)))
520 `(("qtbase" ,qtbase)))
523 (modify-phases %standard-phases
524 (add-before 'check 'check-setup
526 (setenv "HOME" (getcwd))
527 (setenv "TMPDIR" (getcwd))
531 (setenv "QT_QPA_PLATFORM" "offscreen")
532 (invoke "dbus-launch" "ctest" "."))))))
533 (home-page "https://community.kde.org/Frameworks")
534 (synopsis "Kconfiguration settings framework for Qt")
535 (description "KConfig provides an advanced configuration system.
536 It is made of two parts: KConfigCore and KConfigGui.
538 KConfigCore provides access to the configuration files themselves.
542 @item Code generation: describe your configuration in an XML file, and use
543 `kconfig_compiler to generate classes that read and write configuration
546 @item Cascading configuration files (global settings overridden by local
549 @item Optional shell expansion support (see docs/options.md).
551 @item The ability to lock down configuration options (see docs/options.md).
554 KConfigGui provides a way to hook widgets to the configuration so that they
555 are automatically initialized from the configuration and automatically
556 propagate their changes to their respective configuration files.")
557 ;; The included licenses is are gpl2 and lgpl2.1, but the sources are
558 ;; under a variety of licenses.
559 ;; This list is taken from http://packaging.neon.kde.org/cgit/
560 (license (list license:lgpl2.1 license:lgpl2.1+ license:expat
561 license:lgpl3+ license:gpl1 ; licende:mit-olif
562 license:bsd-2 license:bsd-3))))
564 (define-public kcoreaddons
571 "mirror://kde/stable/frameworks/"
572 (version-major+minor version) "/"
573 name "-" version ".tar.xz"))
576 "1w658wfksxglr0fjpa2p8gmjbvpd2knzhk3byk2s9dwil7i7cvjd"))))
577 (build-system cmake-build-system)
579 `(("extra-cmake-modules" ,extra-cmake-modules)
581 ("shared-mime-info" ,shared-mime-info)
582 ;; TODO: FAM: File alteration notification http://oss.sgi.com/projects/fam
583 ("xorg-server" ,xorg-server-for-tests))) ; for the tests
585 `(("qtbase" ,qtbase)))
588 (modify-phases %standard-phases
589 (add-before 'check 'blacklist-failing-test
591 ;; Blacklist failing tests.
592 (with-output-to-file "autotests/BLACKLIST"
594 ;; FIXME: Make it pass. Test failure caused by stout/stderr
595 ;; being interleaved.
596 (display "[test_channels]\n*\n")
597 ;; This fails with ENOSPC because of too many inotify watches.
598 (display "[benchNotifyWatcher]\n*\n")))
600 ;; See upstream commit ee424e9b62368485bba4193053cabb553a1d268e
601 (add-after 'unpack 'fix-broken-test
603 (substitute* "autotests/kdirwatch_unittest.cpp"
604 (("QVERIFY\\(waitForRecreationSignal\\(watch, existingFile\\)\\);" m)
605 (string-append m "\nwaitUntilNewSecond();")))
607 (add-before 'check 'check-setup
609 (setenv "HOME" (getcwd))
610 (setenv "TMPDIR" (getcwd))
612 (home-page "https://community.kde.org/Frameworks")
613 (synopsis "Qt addon library with a collection of non-GUI utilities")
614 (description "KCoreAddons provides classes built on top of QtCore to
615 perform various tasks such as manipulating mime types, autosaving files,
616 creating backup files, generating random sequences, performing text
617 manipulations such as macro replacement, accessing user information and
619 (license (list license:lgpl2.0+ license:lgpl2.1+))))
621 (define-public kdbusaddons
628 "mirror://kde/stable/frameworks/"
629 (version-major+minor version) "/"
630 name "-" version ".tar.xz"))
633 "11zwr89v0k4m1235rzr39z4cbfdwn5zg34abs62nfnr8vmba62qv"))
634 (patches (search-patches "kdbusaddons-kinit-file-name.patch"))))
635 (build-system cmake-build-system)
637 `(("extra-cmake-modules" ,extra-cmake-modules)
639 ("qttools" ,qttools)))
642 ("qtx11extras" ,qtx11extras)
643 ("kinit" ,kinit-bootstrap))) ;; kinit-bootstrap: kinit package which does not depend on kdbusaddons.
646 (modify-phases %standard-phases
648 'configure 'patch-source
649 (lambda* (#:key inputs #:allow-other-keys)
650 ;; look for the kdeinit5 executable in kinit's store directory,
651 ;; instead of the current application's directory:
652 (substitute* "src/kdeinitinterface.cpp"
653 (("@SUBSTITUTEME@") (assoc-ref inputs "kinit")))))
656 (setenv "DBUS_FATAL_WARNINGS" "0")
657 (invoke "dbus-launch" "ctest" "."))))))
658 (home-page "https://community.kde.org/Frameworks")
659 (synopsis "Convenience classes for DBus")
660 (description "KDBusAddons provides convenience classes on top of QtDBus,
661 as well as an API to create KDED modules.")
662 ;; Some source files mention lgpl2.0+, but the included license is
663 ;; the lgpl2.1. Some source files are under non-copyleft licenses.
664 (license license:lgpl2.1+)))
666 (define-public kdnssd
673 "mirror://kde/stable/frameworks/"
674 (version-major+minor version) "/"
675 name "-" version ".tar.xz"))
678 "1bn9c6ii1n6ns478i3lp7yzga7dbcqvdb43rfzmz7gndnmh853gm"))))
679 (build-system cmake-build-system)
681 `(("extra-cmake-modules" ,extra-cmake-modules)
682 ("qttools" ,qttools)))
684 `(("avahi" ,avahi) ; alternativly dnssd could be used
686 (home-page "https://community.kde.org/Frameworks")
687 (synopsis "Network service discovery using Zeroconf")
688 (description "KDNSSD is a library for handling the DNS-based Service
689 Discovery Protocol (DNS-SD), the layer of Zeroconf that allows network services,
690 such as printers, to be discovered without any user intervention or centralized
692 (license license:lgpl2.1+)))
694 (define-public kguiaddons
701 "mirror://kde/stable/frameworks/"
702 (version-major+minor version) "/"
703 name "-" version ".tar.xz"))
706 "0k22kargqxf0j09wzk1x90b526npj8a0210ilk0n1k6spc8xa6mr"))))
707 (build-system qt-build-system)
708 ;; TODO: Build packages for the Python bindings. Ideally this will be
709 ;; done for all versions of python guix supports. Requires python,
710 ;; python-sip, clang-python, libclang. Requires python-2 in all cases for
713 `(("extra-cmake-modules" ,extra-cmake-modules)
714 ("pkg-config" ,pkg-config)))
717 ("qtx11extras" ,qtx11extras)))
718 (home-page "https://community.kde.org/Frameworks")
719 (synopsis "Utilities for graphical user interfaces")
720 (description "The KDE GUI addons provide utilities for graphical user
721 interfaces in the areas of colors, fonts, text, images, keyboard input.")
722 (license (list license:gpl2+ license:lgpl2.1+))))
724 (define-public kholidays
731 "mirror://kde/stable/frameworks/"
732 (version-major+minor version) "/"
733 name "-" version ".tar.xz"))
735 (base32 "1035kh0na4hwp4pnsi8p1nd7r114d4bgdnjr0g2hwmy868vx0a67"))))
736 (build-system cmake-build-system)
739 (modify-phases %standard-phases
740 (add-before 'check 'check-setup
742 ;; blacklist a failing test function TODO: make it pass
743 (with-output-to-file "autotests/BLACKLIST"
745 (display "[testDefaultRegions]\n*\n")))
748 `(("extra-cmake-modules" ,extra-cmake-modules)
749 ("qttools" ,qttools)))
752 ("qtdeclarative" ,qtdeclarative)))
753 (home-page "https://cgit.kde.org/kholidays.git")
754 (synopsis "Library for regional holiday information")
755 (description "This library provides a C++ API that determines holiday and
756 other special events for a geographical region.")
757 (license license:lgpl2.0+)))
766 "mirror://kde/stable/frameworks/"
767 (version-major+minor version) "/"
768 name "-" version ".tar.xz"))
771 "1fdp0bdvqbqzbxynbg3bcdridr8j3qnm9spyrrdg5q95sz99a4s9"))))
772 (build-system cmake-build-system)
774 `(("gettext" ,gettext-minimal)
777 `(("extra-cmake-modules" ,extra-cmake-modules)))
780 ("qtdeclarative" ,qtdeclarative)
781 ("qtscript" ,qtscript)))
784 (modify-phases %standard-phases
785 (add-before 'check 'check-setup
787 (setenv "HOME" (getcwd))
789 (home-page "https://community.kde.org/Frameworks")
790 (synopsis "KDE Gettext-based UI text internationalization")
791 (description "KI18n provides functionality for internationalizing user
792 interface text in applications, based on the GNU Gettext translation system. It
793 wraps the standard Gettext functionality, so that the programmers and translators
794 can use the familiar Gettext tools and workflows.
796 KI18n provides additional functionality as well, for both programmers and
797 translators, which can help to achieve a higher overall quality of source and
798 translated text. This includes argument capturing, customizable markup, and
799 translation scripting.")
800 (license license:lgpl2.1+)))
802 (define-public kidletime
809 "mirror://kde/stable/frameworks/"
810 (version-major+minor version) "/"
811 name "-" version ".tar.xz"))
814 "0zd51lsz23rqwk4lnzs5653sanprgr80p33yk8gmgsihgyfbjv0r"))))
815 (build-system cmake-build-system)
817 `(("extra-cmake-modules" ,extra-cmake-modules)
818 ("pkg-config" ,pkg-config)))
820 `(("libxscrnsaver" ,libxscrnsaver) ; X-Screensaver based poller, fallback mode
822 ("qtx11extras" ,qtx11extras)))
823 (home-page "https://community.kde.org/Frameworks")
824 (synopsis "Reporting of idle time of user and system")
825 (description "KIdleTime is a singleton reporting information on idle time.
826 It is useful not only for finding out about the current idle time of the PC,
827 but also for getting notified upon idle time events, such as custom timeouts,
829 (license (list license:gpl2+ license:lgpl2.1+))))
831 (define-public kirigami
832 ;; Kirigami is listed as tier 1 framework, but optionally includes
833 ;; plasma-framework which is tier 3.
840 "mirror://kde/stable/frameworks/"
841 (version-major+minor version) "/"
842 "kirigami2-" version ".tar.xz"))
845 "1v76d1xgmi9kkxiwq4y6rzaxs1hwwm95pw490m09rgqhli7180yv"))))
846 (properties `((upstream-name . "kirigami2")))
847 (build-system cmake-build-system)
849 `(("extra-cmake-modules" ,extra-cmake-modules)
850 ("qttools" ,qttools)))
852 `(("kwindowsystem" ,kwindowsystem)
853 ;; TODO: Find a way to activate this optional include without
854 ;; introducing a recursive dependency.
855 ;;("plasma-frameworks" ,plasma-framework) ;; Tier 3!
857 ("qtdeclarative" ,qtdeclarative)
858 ("qtquickcontrols2" ,qtquickcontrols2)
860 ;; Run-time dependency
861 ("qtgraphicaleffects" ,qtgraphicaleffects)))
862 (home-page "https://community.kde.org/Frameworks")
863 (synopsis "QtQuick components for mobile user interfaces")
864 (description "Kirigami is a set of high level QtQuick components looking
865 and feeling well on both mobile and desktop devices. They ease the creation
866 of applications that follow the Kirigami Human Interface Guidelines.")
867 (license license:lgpl2.1+)))
869 (define-public kitemmodels
876 "mirror://kde/stable/frameworks/"
877 (version-major+minor version) "/"
878 name "-" version ".tar.xz"))
881 "10bhg0db9gdg2hlc02ngg1i2q7a99862d5973hxqzf620d28p5rd"))))
882 (build-system qt-build-system)
884 `(("extra-cmake-modules" ,extra-cmake-modules)))
887 ("qtdeclarative" ,qtdeclarative)))
888 (home-page "https://community.kde.org/Frameworks")
889 (synopsis "Set of item models extending the Qt model-view framework")
890 (description "KItemModels provides the following models:
893 @item KBreadcrumbSelectionModel - Selects the parents of selected items to
896 @item KCheckableProxyModel - Adds a checkable capability to a source model.
898 @item KConcatenateRowsProxyModel - Concatenates rows from multiple source models.
900 @item KDescendantsProxyModel - Proxy Model for restructuring a Tree into a list.
902 @item KExtraColumnsProxyModel - Adds columns after existing columns.
904 @item KLinkItemSelectionModel - Share a selection in multiple views which do
905 not have the same source model.
907 @item KModelIndexProxyMapper - Mapping of indexes and selections through proxy
910 @item KRearrangeColumnsProxyModel - Can reorder and hide columns from the source
913 @item KRecursiveFilterProxyModel - Recursive filtering of models.
915 @item KSelectionProxyModel - A Proxy Model which presents a subset of its source
918 (license license:lgpl2.1+)))
920 (define-public kitemviews
927 "mirror://kde/stable/frameworks/"
928 (version-major+minor version) "/"
929 name "-" version ".tar.xz"))
932 "15h0w16wgj94kxz4vgjb34i3pyx5w1f2npj86j4d2sa0mxxpmqyz"))))
933 (build-system qt-build-system)
935 `(("extra-cmake-modules" ,extra-cmake-modules)
936 ("qttools" ,qttools)))
938 `(("qtbase" ,qtbase)))
939 (home-page "https://community.kde.org/Frameworks")
940 (synopsis "Set of item views extending the Qt model-view framework")
941 (description "KItemViews includes a set of views, which can be used with
942 item models. It includes views for categorizing lists and to add search filters
943 to flat and hierarchical lists.")
944 (license (list license:gpl2+ license:lgpl2.1+))))
946 (define-public kplotting
953 "mirror://kde/stable/frameworks/"
954 (version-major+minor version) "/"
955 name "-" version ".tar.xz"))
958 "11kpq34j37c1gsvj5nxhkc31bw8gw2n7nkqsfx87jw9f4v2vhmr9"))))
959 (build-system qt-build-system)
961 `(("extra-cmake-modules" ,extra-cmake-modules)
962 ("qttools" ,qttools)))
964 `(("qtbase" ,qtbase)))
965 (home-page "https://community.kde.org/Frameworks")
966 (synopsis "Data plotting library")
967 (description "KPlotWidget is a QWidget-derived class that provides a virtual
968 base class for easy data-plotting. The idea behind KPlotWidget is that you only
969 have to specify information in \"data units\", the natural units of the
970 data being plotted. KPlotWidget automatically converts everything to screen
972 (license license:lgpl2.1+)))
974 (define-public ksyntaxhighlighting
976 (name "ksyntaxhighlighting")
981 "mirror://kde/stable/frameworks/"
982 (version-major+minor version) "/"
983 "syntax-highlighting-" version ".tar.xz"))
986 "08y0m4wcq1sbxvlga3w72waj5xckh5jra5x7rvnp87dl38qxhacs"))))
987 (build-system cmake-build-system)
989 `(("extra-cmake-modules" ,extra-cmake-modules)
992 ;; Optional, for compile-time validation of syntax definition files:
993 ("qtxmlpatterns" ,qtxmlpatterns)))
995 `(("qtbase" ,qtbase)))
998 (modify-phases %standard-phases
999 (add-after 'patch-source-shebangs 'unpatch-source-shebang
1001 ;; revert the patch-shebang phase on scripts which are
1002 ;; in fact test data
1003 (substitute* '("autotests/input/test.bash"
1004 "autotests/folding/test.bash.fold")
1005 (((which "bash")) "/bin/bash"))
1006 (substitute* '("autotests/input/highlight.sh"
1007 "autotests/folding/highlight.sh.fold")
1008 (((which "sh")) " /bin/sh")) ;; space in front!
1009 (substitute* '("autotests/input/highlight.pl"
1010 "autotests/folding/highlight.pl.fold")
1011 (((which "perl")) "/usr/bin/perl"))
1013 (home-page "https://community.kde.org/Frameworks")
1014 (synopsis "Syntax highlighting engine for Kate syntax definitions")
1015 (description "This is a stand-alone implementation of the Kate syntax
1016 highlighting engine. It's meant as a building block for text editors as well
1017 as for simple highlighted text rendering (e.g. as HTML), supporting both
1018 integration with a custom editor as well as a ready-to-use
1019 @code{QSyntaxHighlighter} sub-class.")
1020 (properties `((upstream-name . "syntax-highlighting")))
1021 (license license:lgpl2.1+)))
1023 (define-public kwayland
1030 "mirror://kde/stable/frameworks/"
1031 (version-major+minor version) "/"
1032 name "-" version ".tar.xz"))
1035 "03z8hiw0mrhl3f0y7ypc46ic0w5vlp56prbqbk448jin5hakkkdg"))))
1036 (build-system cmake-build-system)
1038 `(("extra-cmake-modules" ,extra-cmake-modules)
1039 ("pkg-config" ,pkg-config)))
1041 `(("qtbase" ,qtbase)
1042 ("wayland" ,wayland)
1043 ("wayland-protocols" ,wayland-protocols)))
1045 `(#:tests? #f ; FIXME tests require weston to run
1046 ; weston requires wayland flags in mesa
1048 (modify-phases %standard-phases
1049 (add-before 'check 'check-setup
1051 (setenv "XDG_RUNTIME_DIR" "/tmp")
1053 (home-page "https://community.kde.org/Frameworks")
1054 (synopsis "Qt-style API to interact with the wayland client and server")
1055 (description "As the names suggest they implement a Client respectively a
1056 Server API for the Wayland protocol. The API is Qt-styled removing the needs to
1057 interact with a for a Qt developer uncomfortable low-level C-API. For example
1058 the callback mechanism from the Wayland API is replaced by signals, data types
1059 are adjusted to be what a Qt developer expects - two arguments of int are
1060 represented by a QPoint or a QSize.")
1061 (license license:lgpl2.1+)))
1063 (define-public kwidgetsaddons
1065 (name "kwidgetsaddons")
1070 "mirror://kde/stable/frameworks/"
1071 (version-major+minor version) "/"
1072 name "-" version ".tar.xz"))
1075 "1nzgv3v3kyq5jm2b9xri6qjawspr9ycxhskfvj8kkgr46dr35qyc"))))
1076 (build-system qt-build-system)
1078 `(("extra-cmake-modules" ,extra-cmake-modules)
1079 ("qttools" ,qttools)
1080 ("xorg-server" ,xorg-server-for-tests)))
1082 `(("qtbase" ,qtbase)))
1085 (modify-phases %standard-phases
1086 (add-before 'check 'start-xorg-server
1087 (lambda* (#:key inputs #:allow-other-keys)
1088 ;; The test suite requires a running X server.
1089 ;; Xvfb doesn't have proper glx support and needs a pixeldepth
1090 ;; of 24 bit to avoid "libGL error: failed to load driver: swrast"
1091 ;; "Could not initialize GLX"
1092 (system (string-append (assoc-ref inputs "xorg-server")
1093 "/bin/Xvfb :1 -screen 0 640x480x24 &"))
1094 (setenv "DISPLAY" ":1")
1096 (home-page "https://community.kde.org/Frameworks")
1097 (synopsis "Large set of desktop widgets")
1098 (description "Provided are action classes that can be added to toolbars or
1099 menus, a wide range of widgets for selecting characters, fonts, colors, actions,
1100 dates and times, or MIME types, as well as platform-aware dialogs for
1101 configuration pages, message boxes, and password requests.")
1102 (license (list license:gpl2+ license:lgpl2.1+))))
1104 (define-public kwindowsystem
1106 (name "kwindowsystem")
1111 "mirror://kde/stable/frameworks/"
1112 (version-major+minor version) "/"
1113 name "-" version ".tar.xz"))
1116 "0nbkb8pkrbbp1s892ndzhakzri3qxpw48kibgb0rqz6i0azfxrz8"))))
1117 (build-system cmake-build-system)
1119 `(("extra-cmake-modules" ,extra-cmake-modules)
1120 ("pkg-config" ,pkg-config)
1121 ("dbus" ,dbus) ; for the tests
1122 ("openbox" ,openbox) ; for the tests
1123 ("qttools" ,qttools)
1124 ("xorg-server" ,xorg-server-for-tests))) ; for the tests
1126 `(("libxrender" ,libxrender)
1128 ("qtx11extras" ,qtx11extras)
1129 ("xcb-utils-keysyms" ,xcb-util-keysyms)
1130 ("xcb-util-wm" ,xcb-util-wm)))
1133 (modify-phases %standard-phases
1134 (add-before 'check 'blacklist-failing-tests
1136 ;; Blacklist a failing test-functions. FIXME: Make it pass.
1137 (with-output-to-file "autotests/BLACKLIST"
1139 (display "[testGroupLeader]\n*\n")
1140 (display "[testClientMachine]\n*\n"))) ;; requires network
1144 ;; The test suite requires a running window anager
1145 (setenv "XDG_RUNTIME_DIR" "/tmp")
1146 (system "Xvfb :1 -ac -screen 0 640x480x24 &")
1147 (setenv "DISPLAY" ":1")
1148 (sleep 5) ;; Give Xvfb a few moments to get on it's feet
1149 (system "openbox &")
1150 (setenv "CTEST_OUTPUT_ON_FAILURE" "1")
1151 (setenv "DBUS_FATAL_WARNINGS" "0")
1152 (invoke "dbus-launch" "ctest" "."))))))
1153 (home-page "https://community.kde.org/Frameworks")
1154 (synopsis "KDE access to the windowing system")
1155 (description "KWindowSystem provides information about and allows
1156 interaction with the windowing system. It provides a high level API, which
1157 is windowing system independent and has platform specific
1158 implementations. This API is inspired by X11 and thus not all functionality
1159 is available on all windowing systems.
1161 In addition to the high level API, this framework also provides several
1162 lower level classes for interaction with the X Windowing System.")
1163 ;; Some source files mention lgpl2.0+, but the included license is
1164 ;; the lgpl2.1. Some source files are under non-copyleft licenses.
1165 (license license:lgpl2.1+)))
1167 (define-public modemmanager-qt
1169 (name "modemmanager-qt")
1174 "mirror://kde/stable/frameworks/"
1175 (version-major+minor version) "/"
1176 name "-" version ".tar.xz"))
1179 "0yv5q71cyyy04051ny5lr7n35pw391gxr6l324n6c0z7kgc560ad"))))
1180 (build-system cmake-build-system)
1182 `(("extra-cmake-modules" ,extra-cmake-modules)
1184 ("pkg-config" ,pkg-config)))
1186 ;; Headers contain #include <ModemManager/ModemManager.h>
1187 `(("modem-manager" ,modem-manager)))
1189 `(("qtbase" ,qtbase)))
1192 (modify-phases %standard-phases
1195 (setenv "DBUS_FATAL_WARNINGS" "0")
1196 (invoke "dbus-launch" "ctest" "."))))))
1197 (home-page "https://community.kde.org/Frameworks")
1198 (synopsis "Qt wrapper for ModemManager DBus API")
1199 (description "ModemManagerQt provides access to all ModemManager features
1200 exposed on DBus. It allows you to manage modem devices and access to
1201 information available for your modem devices, like signal, location and
1203 (license license:lgpl2.1+)))
1205 (define-public networkmanager-qt
1207 (name "networkmanager-qt")
1212 "mirror://kde/stable/frameworks/"
1213 (version-major+minor version) "/"
1214 name "-" version ".tar.xz"))
1217 "0ydfz6ikya1h8gg9c716y8lmy45iqnx0gaghkm0vz3c3ckx99l9g"))))
1218 (build-system cmake-build-system)
1220 `(("extra-cmake-modules" ,extra-cmake-modules)
1222 ("pkg-config" ,pkg-config)))
1224 ;; Headers contain #include <NetworkManager.h> and
1225 ;; #include <libnm/NetworkManager.h>
1226 `(("network-manager" ,network-manager)))
1228 `(("qtbase" ,qtbase)))
1231 (modify-phases %standard-phases
1234 (setenv "DBUS_FATAL_WARNINGS" "0")
1235 (invoke "dbus-launch" "ctest" "."))))))
1236 (home-page "https://community.kde.org/Frameworks")
1237 (synopsis "Qt wrapper for NetworkManager DBus API")
1238 (description "NetworkManagerQt provides access to all NetworkManager
1239 features exposed on DBus. It allows you to manage your connections and control
1240 your network devices and also provides a library for parsing connection settings
1241 which are used in DBus communication.")
1242 (license license:lgpl2.1+)))
1244 (define-public oxygen-icons
1246 (name "oxygen-icons")
1251 "mirror://kde/stable/frameworks/"
1252 (version-major+minor version) "/"
1253 name "5" "-" version ".tar.xz"))
1256 "0rh9bysiisnpz3c92hyba98f58dlmwf9zhbbb4vmab0qvm5d3q9g"))))
1257 (build-system cmake-build-system)
1259 `(("extra-cmake-modules" ,extra-cmake-modules)
1260 ("fdupes" ,fdupes)))
1262 `(("qtbase" ,qtbase)))
1263 (home-page "https://community.kde.org/Frameworks")
1264 (synopsis "Oxygen provides the standard icon theme for the KDE desktop")
1265 (description "Oxygen icon theme for the KDE desktop")
1266 (license license:lgpl3+)
1267 (properties '((upstream-name . "oxygen-icons5")))))
1269 (define-public prison
1276 (uri (string-append "mirror://kde/stable/frameworks/"
1277 (version-major+minor version) "/"
1278 name "-" version ".tar.xz"))
1280 (base32 "0spkm5j2qmwl374xrbm054rjv4rcqwsz0wl5v2nyrfq2ma4bzzw5"))))
1281 (build-system cmake-build-system)
1283 `(("extra-cmake-modules" ,extra-cmake-modules)))
1285 `(("libdmtx" ,libdmtx)
1286 ("qrencode" ,qrencode)
1287 ("qtbase" ,qtbase))) ;; TODO: rethink: nix propagates this
1288 (home-page "https://api.kde.org/frameworks/prison/html/index.html")
1289 (synopsis "Barcode generation abstraction layer")
1290 (description "Prison is a Qt-based barcode abstraction layer/library and
1291 provides uniform access to generation of barcodes with data.")
1292 (license license:lgpl2.1+)))
1294 (define-public qqc2-desktop-style
1296 (name "qqc2-desktop-style")
1301 "mirror://kde/stable/frameworks/"
1302 (version-major+minor version) "/"
1303 name "-" version ".tar.xz"))
1306 "1sz2735fn5665pyb5v70y2fmw2mkziq83di4h06pwday9vf2r6l5"))))
1307 (build-system cmake-build-system)
1309 `(("extra-cmake-modules" ,extra-cmake-modules)
1310 ("pkg-config" ,pkg-config)))
1313 ("kconfigwidgets" ,kconfigwidgets) ; optional
1314 ("kcoreaddons" ,kcoreaddons)
1315 ("kiconthemes" ,kiconthemes) ; optional
1316 ("kirigami" ,kirigami)
1318 ("qtdeclarative" ,qtdeclarative)
1319 ("qtquickcontrols2" ,qtquickcontrols2)))
1320 (home-page "https://community.kde.org/Frameworks")
1321 (synopsis "QtQuickControls2 style that integrates with the desktop")
1322 (description "This is a style for QtQuickControls2 which is using
1323 QWidget's QStyle to paint the controls in order to give it a native look and
1325 ;; Mostly LGPL 2+, but many files are dual-licensed
1326 (license (list license:lgpl2.1+ license:gpl3+))))
1328 (define-public solid
1335 "mirror://kde/stable/frameworks/"
1336 (version-major+minor version) "/"
1337 name "-" version ".tar.xz"))
1340 "0i124kyhd1hfnajp0hnqma35ycr3bh60z39gc6byhxb75p59swnl"))))
1341 (build-system cmake-build-system)
1344 (modify-phases %standard-phases
1347 (setenv "DBUS_FATAL_WARNINGS" "0")
1348 (invoke "dbus-launch" "ctest" "."))))))
1352 ("extra-cmake-modules" ,extra-cmake-modules)
1354 ("qttools" ,qttools)))
1356 `(("qtbase" ,qtbase)
1357 ("qtdeclarative" ,qtdeclarative)
1359 ;; TODO: Add runtime-only dependency MediaPlayerInfo
1360 (home-page "https://community.kde.org/Frameworks")
1361 (synopsis "Desktop hardware abstraction")
1362 (description "Solid is a device integration framework. It provides a way of
1363 querying and interacting with hardware independently of the underlying operating
1365 (license license:lgpl2.1+)))
1367 (define-public sonnet
1374 "mirror://kde/stable/frameworks/"
1375 (version-major+minor version) "/"
1376 name "-" version ".tar.xz"))
1379 "0gqxmyxmwn2rs9f8x2z8pfmbx0mvkyh7nalnsmfqkph8f0fja9ig"))))
1380 (build-system qt-build-system)
1382 `(("extra-cmake-modules" ,extra-cmake-modules)
1383 ("pkg-config" ,pkg-config)
1384 ("qttools" ,qttools)))
1386 `(("hunspell" ,hunspell)
1387 ;; TODO: hspell (for Hebrew), Voikko (for Finish)
1388 ("qtbase" ,qtbase)))
1389 (home-page "https://community.kde.org/Frameworks")
1390 (synopsis "Multi-language spell checker")
1391 (description "Sonnet is a plugin-based spell checking library for Qt-based
1392 applications. It supports several different plugins, including HSpell, Enchant,
1393 ASpell and HUNSPELL.")
1394 (license license:lgpl2.1+)))
1396 (define-public threadweaver
1398 (name "threadweaver")
1403 "mirror://kde/stable/frameworks/"
1404 (version-major+minor version) "/"
1405 name "-" version ".tar.xz"))
1408 "0z2906nmamvcg85jip98wq834rjs3nc1qlv3q182gw1cnh4nbdag"))))
1409 (build-system cmake-build-system)
1411 `(("extra-cmake-modules" ,extra-cmake-modules)))
1413 `(("qtbase" ,qtbase)))
1414 (home-page "https://community.kde.org/Frameworks")
1415 (synopsis "Helper for multithreaded programming")
1416 (description "ThreadWeaver is a helper for multithreaded programming. It
1417 uses a job-based interface to queue tasks and execute them in an efficient way.")
1418 (license license:lgpl2.1+)))
1423 ;; Tier 2 frameworks additionally depend on tier 1 frameworks, but still have
1424 ;; easily manageable dependencies.
1426 (define-public kactivities
1428 (name "kactivities")
1433 "mirror://kde/stable/frameworks/"
1434 (version-major+minor version) "/"
1435 name "-" version ".tar.xz"))
1438 "03h5r7z2a449hfvaj3zk1n7dhpj49liy5q60fb4nxz4yjkgca27s"))))
1439 (build-system cmake-build-system)
1441 `(("extra-cmake-modules" ,extra-cmake-modules)))
1445 ("kbookmarks" ,kbookmarks)
1446 ("kcodecs" ,kcodecs)
1447 ("kcompletion" ,kcompletion)
1448 ("kconfig" ,kconfig)
1449 ("kconfigwidgets" ,kconfigwidgets)
1450 ("kcoreaddons" ,kcoreaddons)
1452 ("kitemviews" ,kitemviews)
1453 ("kjobwidgets" ,kjobwidgets)
1454 ("kservice" ,kservice)
1455 ("kwidgetsaddons" ,kwidgetsaddons)
1456 ("kwindowsystem" ,kwindowsystem)
1457 ("kxmlgui" ,kxmlgui)
1459 ("qtdeclarative" ,qtdeclarative)
1461 (home-page "https://community.kde.org/Frameworks")
1462 (synopsis "Core components for the KDE Activity concept")
1463 (description "KActivities provides the infrastructure needed to manage a
1464 user's activities, allowing them to switch between tasks, and for applications
1465 to update their state to match the user's current activity. This includes a
1466 daemon, a library for interacting with that daemon, and plugins for integration
1467 with other frameworks.")
1469 (license (list license:gpl2+ license:lgpl2.0+ license:lgpl2.1+))))
1471 (define-public kauth
1478 "mirror://kde/stable/frameworks/"
1479 (version-major+minor version) "/"
1480 name "-" version ".tar.xz"))
1483 "08gkgmxaxqpavsqdmcgs4i8j63pg5qld7agd58irpw29pgq1fj9c"))))
1484 (build-system cmake-build-system)
1487 ("extra-cmake-modules" ,extra-cmake-modules)
1488 ("qttools" ,qttools)))
1490 `(("kcoreaddons" ,kcoreaddons)
1491 ("polkit-qt" ,polkit-qt)
1492 ("qtbase" ,qtbase)))
1495 (modify-phases %standard-phases
1496 (add-after 'unpack 'fix-cmake-install-directories
1498 ;; Make packages using kauth put their policy files and helpers
1499 ;; into their own prefix.
1500 (substitute* "KF5AuthConfig.cmake.in"
1501 (("@KAUTH_POLICY_FILES_INSTALL_DIR@")
1502 "${KDE_INSTALL_DATADIR}/polkit-1/actions")
1503 (("@KAUTH_HELPER_INSTALL_DIR@")
1504 "${KDE_INSTALL_LIBEXECDIR}")
1505 (("@KAUTH_HELPER_INSTALL_ABSOLUTE_DIR@")
1506 "${KDE_INSTALL_LIBEXECDIR}"))))
1509 (setenv "DBUS_FATAL_WARNINGS" "0")
1510 (invoke "dbus-launch" "ctest" "."))))))
1511 (home-page "https://community.kde.org/Frameworks")
1512 (synopsis "Execute actions as privileged user")
1513 (description "KAuth provides a convenient, system-integrated way to offload
1514 actions that need to be performed as a privileged user to small set of helper
1516 (license license:lgpl2.1+)))
1518 (define-public kcompletion
1520 (name "kcompletion")
1525 "mirror://kde/stable/frameworks/"
1526 (version-major+minor version) "/"
1527 name "-" version ".tar.xz"))
1530 "10ggypg09acc19gkvxsigfsaq8s5vqv64ada307blpzy8j74bisb"))))
1531 (build-system qt-build-system)
1533 `(("extra-cmake-modules" ,extra-cmake-modules)
1534 ("qttools" ,qttools)))
1536 `(("kconfig" ,kconfig)
1537 ("kwidgetsaddons" ,kwidgetsaddons)
1538 ("qtbase" ,qtbase)))
1539 (home-page "https://community.kde.org/Frameworks")
1540 (synopsis "Powerful autocompletion framework and widgets")
1541 (description "This framework helps implement autocompletion in Qt-based
1542 applications. It provides a set of completion-ready widgets, or can be
1543 integrated it into your application's other widgets.")
1544 (license license:lgpl2.1+)))
1546 (define-public kcontacts
1553 "mirror://kde/stable/frameworks/"
1554 (version-major+minor version) "/"
1555 name "-" version ".tar.xz"))
1558 "0xs5c5l4vck5i6879jax1nf93if02f9hyfkn60l36cxbphnbpw0h"))))
1559 (build-system cmake-build-system)
1561 `(("extra-cmake-modules" ,extra-cmake-modules)
1562 ("xorg-server" ,xorg-server))) ; for the tests
1564 `(("kcodecs" ,kcodecs)
1565 ("kconfig" ,kconfig)
1566 ("kcoreaddons" ,kcoreaddons)
1568 ("qtbase" ,qtbase)))
1571 (modify-phases %standard-phases
1572 (add-before 'check 'start-xorg-server
1573 (lambda* (#:key inputs #:allow-other-keys)
1574 ;; The test suite requires a running X server.
1575 ;; Xvfb doesn't have proper glx support and needs a pixeldepth
1576 ;; of 24 bit to avoid "libGL error: failed to load driver: swrast"
1577 ;; "Could not initialize GLX"
1578 (system (string-append (assoc-ref inputs "xorg-server")
1579 "/bin/Xvfb :1 -screen 0 640x480x24 &"))
1580 (setenv "DISPLAY" ":1")
1582 (home-page "https://community.kde.org/Frameworks")
1583 (synopsis "API for contacts/address book data following the vCard standard")
1584 (description "This library provides a vCard data model, vCard
1585 input/output, contact group management, locale-aware address formatting, and
1586 localized country name to ISO 3166-1 alpha 2 code mapping and vice verca.
1588 (license license:lgpl2.1+)))
1590 (define-public kcrash
1597 "mirror://kde/stable/frameworks/"
1598 (version-major+minor version) "/"
1599 name "-" version ".tar.xz"))
1602 "1xl3bzxfchfafcplil3g07gq1a3fnwx1i40bxp4jfsgb8d8slfwc"))))
1603 (build-system qt-build-system)
1605 `(("extra-cmake-modules" ,extra-cmake-modules)))
1607 `(("kcoreaddons" ,kcoreaddons)
1608 ("kwindowsystem" ,kwindowsystem)
1610 ("qtx11extras" ,qtx11extras)))
1611 (home-page "https://community.kde.org/Frameworks")
1612 (synopsis "Graceful handling of application crashes")
1613 (description "KCrash provides support for intercepting and handling
1614 application crashes.")
1615 (license license:lgpl2.1+)))
1617 (define-public kdoctools
1624 "mirror://kde/stable/frameworks/"
1625 (version-major+minor version) "/"
1626 name "-" version ".tar.xz"))
1629 "1zna9szii2r9agwfqbglk904zzpr3fyrz6x5v2rxrm3c9m110sm4"))))
1630 (build-system cmake-build-system)
1632 `(("extra-cmake-modules" ,extra-cmake-modules)))
1634 `(("docbook-xml" ,docbook-xml)
1635 ("docbook-xsl" ,docbook-xsl)
1636 ("karchive" ,karchive)
1638 ("libxml2" ,libxml2)
1639 ("libxslt" ,libxslt)
1641 ("perl-uri" ,perl-uri)
1642 ("qtbase" ,qtbase)))
1645 (modify-phases %standard-phases
1646 (add-after 'unpack 'cmake-find-docbook
1647 (lambda* (#:key inputs #:allow-other-keys)
1648 (substitute* (find-files "cmake" "\\.cmake$")
1649 (("CMAKE_SYSTEM_PREFIX_PATH")
1650 "CMAKE_PREFIX_PATH"))
1651 (substitute* "cmake/FindDocBookXML4.cmake"
1652 (("^.*xml/docbook/schema/dtd.*$")
1653 "xml/dtd/docbook\n"))
1654 (substitute* "cmake/FindDocBookXSL.cmake"
1655 (("^.*xml/docbook/stylesheet.*$")
1656 (string-append "xml/xsl/docbook-xsl-"
1657 ,(package-version docbook-xsl) "\n")))
1659 (add-after 'install 'add-symlinks
1660 ;; Some package(s) (e.g. kdelibs4support) refer to this locale by a
1661 ;; different spelling.
1662 (lambda* (#:key outputs #:allow-other-keys)
1663 (let ((xsl (string-append (assoc-ref outputs "out")
1664 "/share/kf5/kdoctools/customization/xsl/")))
1665 (symlink (string-append xsl "pt_br.xml")
1666 (string-append xsl "pt-BR.xml")))
1668 (home-page "https://community.kde.org/Frameworks")
1669 (synopsis "Create documentation from DocBook")
1670 (description "Provides tools to generate documentation in various format
1671 from DocBook files.")
1672 (license license:lgpl2.1+)))
1674 (define-public kfilemetadata
1676 (name "kfilemetadata")
1681 "mirror://kde/stable/frameworks/"
1682 (version-major+minor version) "/"
1683 name "-" version ".tar.xz"))
1686 "11wvddb7nqdyi5rin3xa0p32lmvc62yw47hwcdzc01lkfbxdn050"))))
1687 (build-system cmake-build-system)
1690 (modify-phases %standard-phases
1691 (add-before 'check 'disable-failing-test
1693 ;; Blacklist a failing test-function. FIXME: Make it pass.
1694 ;; UserMetaDataWriterTest fails with getxattr("…/writertest.txt")
1695 ;; -> EOPNOTSUPP (Operation not supported)
1696 (with-output-to-file "autotests/BLACKLIST"
1698 (display "[testMimetype]\n*\n")
1699 (display "[test]\n*\n")))
1702 `(("extra-cmake-modules" ,extra-cmake-modules)
1703 ("pkg-config" ,pkg-config)
1704 ("python-2" ,python-2)))
1707 ;; TODO: EPub http://sourceforge.net/projects/ebook-tools
1708 ("karchive" ,karchive)
1709 ("kcoreaddons" ,kcoreaddons)
1711 ("qtmultimedia" ,qtmultimedia)
1713 ;; Required run-time packages
1715 ;; Optional run-time packages
1718 ("poppler-qt5" ,poppler-qt5)
1719 ("taglib" ,taglib)))
1720 (home-page "https://community.kde.org/Frameworks")
1721 (synopsis "Extract metadata from different fileformats")
1722 (description "KFileMetaData provides a simple library for extracting the
1723 text and metadata from a number of different files. This library is typically
1724 used by file indexers to retrieve the metadata. This library can also be used
1725 by applications to write metadata.")
1726 (license (list license:lgpl2.0 license:lgpl2.1 license:lgpl3))))
1728 (define-public kimageformats
1730 (name "kimageformats")
1735 "mirror://kde/stable/frameworks/"
1736 (version-major+minor version) "/"
1737 name "-" version ".tar.xz"))
1740 "15y339by7jvsbmfqb33s3ain7sfhx3789xy2xjpkh5f2f9v29r2b"))))
1741 (build-system cmake-build-system)
1743 `(("extra-cmake-modules" ,extra-cmake-modules)
1744 ("pkg-config" ,pkg-config)))
1746 `(("karchive" ,karchive) ; for Krita and OpenRaster images
1747 ("openexr" ,openexr) ; for OpenEXR high dynamic-range images
1748 ("qtbase" ,qtbase)))
1751 (modify-phases %standard-phases
1752 ;; This test fails regularly (also at KDE CI, see
1753 ;; https://build.kde.org/job/Frameworks%20kimageformats%20kf5-qt5%20XenialQt5.7/6/testReport/)
1754 ;; delete offending portion
1755 (add-after 'unpack 'neuter-read-xcf-test
1757 (delete-file "autotests/read/xcf/simple-rgba-gimp-2.8.10.png")
1758 (delete-file "autotests/read/xcf/simple-rgba-gimp-2.8.10.xcf")))
1759 (add-before 'check 'check-setup
1761 ;; make Qt render "offscreen", required for tests
1762 (setenv "QT_QPA_PLATFORM" "offscreen")
1763 (setenv "QT_PLUGIN_PATH"
1764 (string-append (getcwd) "/bin:"
1765 (getenv "QT_PLUGIN_PATH")))
1767 ;; FIXME: The header files of ilmbase (propagated by openexr) are not
1768 ;; found when included by the header files of openexr, and an explicit
1769 ;; flag needs to be set.
1771 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
1772 (assoc-ref %build-inputs "ilmbase")
1773 "/include/OpenEXR"))))
1774 (home-page "https://community.kde.org/Frameworks")
1775 (synopsis "Plugins to allow QImage to support extra file formats")
1776 (description "This framework provides additional image format plugins for
1777 QtGui. As such it is not required for the compilation of any other software,
1778 but may be a runtime requirement for Qt-based software to support certain image
1780 (license license:lgpl2.1+)))
1782 (define-public kjobwidgets
1784 (name "kjobwidgets")
1789 "mirror://kde/stable/frameworks/"
1790 (version-major+minor version) "/"
1791 name "-" version ".tar.xz"))
1794 "0pg055ampm69yr1vn03s1ys3p18raj8f5pcg0hg9hb4sjkyrr3pn"))))
1795 (build-system cmake-build-system)
1797 `(("extra-cmake-modules" ,extra-cmake-modules)
1798 ("qttools" ,qttools)))
1800 `(("kcoreaddons" ,kcoreaddons)
1801 ("kwidgetsaddons" ,kwidgetsaddons)
1803 ("qtx11extras" ,qtx11extras)))
1804 (home-page "https://community.kde.org/Frameworks")
1805 (synopsis "Widgets for showing progress of asynchronous jobs")
1806 (description "KJobWIdgets provides widgets for showing progress of
1807 asynchronous jobs.")
1808 (license license:lgpl2.1+)))
1810 (define-public knotifications
1812 (name "knotifications")
1817 "mirror://kde/stable/frameworks/"
1818 (version-major+minor version) "/"
1819 name "-" version ".tar.xz"))
1822 "1rknfn50kq6ng7gclgg0n4qyhv2grc7xcf3gcax3bbyy46gajsl8"))))
1823 (build-system cmake-build-system)
1825 `(("extra-cmake-modules" ,extra-cmake-modules)
1827 ("qttools" ,qttools)))
1829 `(("kcodecs" ,kcodecs)
1830 ("kconfig" ,kconfig)
1831 ("kcoreaddons" ,kcoreaddons)
1832 ("kwindowsystem" ,kwindowsystem)
1835 ("qtspeech" ,qtspeech)
1836 ;; TODO: Think about adding dbusmenu-qt5 from
1837 ;; https://launchpad.net/libdbusmenu-qt
1838 ("qtx11extras" ,qtx11extras)))
1841 (modify-phases %standard-phases
1842 (add-before 'check 'check-setup
1844 (setenv "HOME" (getcwd))
1848 (setenv "DBUS_FATAL_WARNINGS" "0")
1849 (invoke "dbus-launch" "ctest" "."))))))
1850 (home-page "https://community.kde.org/Frameworks")
1851 (synopsis "Desktop notifications")
1852 (description "KNotification is used to notify the user of an event. It
1853 covers feedback and persistent events.")
1854 (license license:lgpl2.1+)))
1856 (define-public kpackage
1863 "mirror://kde/stable/frameworks/"
1864 (version-major+minor version) "/"
1865 name "-" version ".tar.xz"))
1868 "1h57kicsjkisysd2mmd5q9q5m421xqcv3p8vkjlqxkph5sa7y2q5"))
1869 ;; Default to: external paths/symlinks can be followed by a
1871 (patches (search-patches "kpackage-allow-external-paths.patch"))))
1872 (build-system cmake-build-system)
1874 `(("extra-cmake-modules" ,extra-cmake-modules)))
1876 `(("karchive" ,karchive)
1877 ("kconfig" ,kconfig)
1878 ("kcoreaddons" ,kcoreaddons)
1879 ("kdoctools" ,kdoctools)
1881 ("qtbase" ,qtbase)))
1884 (modify-phases %standard-phases
1885 (add-after 'unpack 'patch
1887 ;; Make QDirIterator follow symlinks
1888 (substitute* '("src/kpackage/packageloader.cpp"
1889 "src/kpackage/private/packagejobthread.cpp")
1890 (("^\\s*(const QDirIterator::IteratorFlags flags = QDirIterator::Subdirectories)(;)" _ a b)
1891 (string-append a " | QDirIterator::FollowSymlinks" b))
1892 (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
1893 (string-append a " | QDirIterator::FollowSymlinks" b)))
1895 (add-after 'unpack 'patch-tests
1897 ;; /bin/ls doesn't exist in the build-container use /etc/passwd
1898 (substitute* "autotests/packagestructuretest.cpp"
1899 (("(addDirectoryDefinition\\(\")bin(\".*\")bin(\".*\")bin\""
1901 (string-append a "etc" b "etc" c "etc\""))
1902 (("filePath\\(\"bin\", QStringLiteral\\(\"ls\"))")
1903 "filePath(\"etc\", QStringLiteral(\"passwd\"))")
1904 (("\"/bin/ls\"") "\"/etc/passwd\""))
1906 (add-before 'check 'check-setup
1908 (setenv "HOME" (getcwd))
1910 (home-page "https://community.kde.org/Frameworks")
1911 (synopsis "Installation and loading of additional content as packages")
1912 (description "The Package framework lets the user install and load packages
1913 of non binary content such as scripted extensions or graphic assets, as if they
1914 were traditional plugins.")
1915 (license (list license:gpl2+ license:lgpl2.1+))))
1924 "mirror://kde/stable/frameworks/"
1925 (version-major+minor version) "/"
1926 name "-" version ".tar.xz"))
1929 "10v61016kd1q41n4dwac1nsiixji64i5y501nx0hphpjkjbaklkr"))))
1930 (build-system cmake-build-system)
1932 `(("extra-cmake-modules" ,extra-cmake-modules)))
1934 `(("kcoreaddons" ,kcoreaddons)
1936 ;; TODO: utempter, for managing UTMP entries
1937 ("qtbase" ,qtbase)))
1939 `(#:tests? #f ; FIXME: 1/1 tests fail.
1941 (modify-phases %standard-phases
1942 (add-after 'unpack 'patch-tests
1944 (substitute* "autotests/kptyprocesstest.cpp"
1945 (("/bin/bash") (which "bash")))
1947 (home-page "https://community.kde.org/Frameworks")
1948 (synopsis "Interfacing with pseudo terminal devices")
1949 (description "This library provides primitives to interface with pseudo
1950 terminal devices as well as a KProcess derived class for running child processes
1951 and communicating with them using a pty.")
1952 (license (list license:gpl2+ license:lgpl2.1+))))
1954 (define-public kunitconversion
1956 (name "kunitconversion")
1961 "mirror://kde/stable/frameworks/"
1962 (version-major+minor version) "/"
1963 name "-" version ".tar.xz"))
1966 "0yzq2jxja9wnhz91cyli2mnw32xynnzbf1lr0hk6vi8a1w2mkrzz"))))
1967 (build-system cmake-build-system)
1970 (modify-phases %standard-phases
1971 (add-after 'unpack 'disable-a-failing-test-case
1973 ;; FIXME: Re-enable this test-case. It was committed with the
1974 ;; message: "tsan says it's clean, apart from issues in Qt
1975 ;; (reported upstream)"
1976 (substitute* "autotests/convertertest.cpp"
1977 (("const int numThreads = 2") "const int numThreads = 0")))))))
1979 `(("extra-cmake-modules" ,extra-cmake-modules)))
1982 ("qtbase" ,qtbase)))
1983 (home-page "https://community.kde.org/Frameworks")
1984 (synopsis "Converting physical units")
1985 (description "KUnitConversion provides functions to convert values in
1986 different physical units. It supports converting different prefixes (e.g. kilo,
1987 mega, giga) as well as converting between different unit systems (e.g. liters,
1989 (license license:lgpl2.1+)))
1991 (define-public syndication
1993 (name "syndication")
1998 "mirror://kde/stable/frameworks/"
1999 (version-major+minor version) "/"
2000 name "-" version ".tar.xz"))
2003 "1d0k6x11giylfkr183sm307n4v6rjpwkqp7y9wfhimjrcprwf2g6"))))
2004 (build-system cmake-build-system)
2006 `(("extra-cmake-modules" ,extra-cmake-modules)))
2008 `(("kcodecs" ,kcodecs)
2009 ("qtbase" ,qtbase)))
2010 (home-page "https://community.kde.org/Frameworks")
2011 (synopsis "RSS/Atom parser library")
2012 (description "@code{syndication} supports RSS (0.9/1.0, 0.91..2.0) and
2013 Atom (0.3 and 1.0) feeds. The library offers a unified, format-agnostic view
2014 on the parsed feed, so that the using application does not need to distinguish
2015 between feed formats.")
2016 (license license:lgpl2.1+)))
2021 ;; Tier 3 frameworks are generally more powerful, comprehensive packages, and
2022 ;; consequently have more complex dependencies.
2024 (define-public baloo
2031 "mirror://kde/stable/frameworks/"
2032 (version-major+minor version) "/"
2033 name "-" version ".tar.xz"))
2036 "1qhqv19glg98146cyc7ykq02b5b9m936xcml1w1p8fx32cp2zbch"))))
2037 (build-system cmake-build-system)
2039 `(("kcoreaddons" ,kcoreaddons)
2040 ("kfilemetadata" ,kfilemetadata)))
2043 ("extra-cmake-modules" ,extra-cmake-modules)))
2045 `(("kbookmarks" ,kbookmarks)
2046 ("kcompletion" ,kcompletion)
2047 ("kconfig" ,kconfig)
2049 ("kdbusaddons" ,kdbusaddons)
2050 ("kidletime" ,kidletime)
2052 ("kitemviews" ,kitemviews)
2054 ("kjobwidgets" ,kjobwidgets)
2055 ("kservice" ,kservice)
2056 ("kwidgetsaddons" ,kwidgetsaddons)
2057 ("kxmlgui" ,kxmlgui)
2060 ("qtdeclarative" ,qtdeclarative)
2064 (modify-phases %standard-phases
2065 (add-before 'check 'check-setup
2067 (setenv "HOME" (getcwd))
2068 ;; make Qt render "offscreen", required for tests
2069 (setenv "QT_QPA_PLATFORM" "offscreen")
2070 (with-output-to-file "bin/BLACKLIST"
2072 ;; Blacklist some failing tests. FIXME: Make them pass.
2073 (display "[testRenameFile]\n*\n")
2074 (display "[testMoveFile]\n*\n")))
2076 (add-after 'unpack 'remove-failing-test
2077 ;; This test fails on i686 and aarch64
2079 (substitute* "autotests/unit/file/CMakeLists.txt"
2080 (("^\\s*ecm_add_test\\(.* TEST_NAME metadatamovertest .*" line)
2081 (string-append "# " line)))
2085 (setenv "DBUS_FATAL_WARNINGS" "0")
2086 (invoke "dbus-launch" "ctest" "."))))))
2087 (home-page "https://community.kde.org/Frameworks")
2088 (synopsis "File searching and indexing")
2089 (description "Baloo provides file searching and indexing. It does so by
2090 maintaining an index of the contents of your files.")
2092 (license (list license:gpl2+ license:lgpl2.1+))))
2094 (define-public kactivities-stats
2096 (name "kactivities-stats")
2101 "mirror://kde/stable/frameworks/"
2102 (version-major+minor version) "/"
2103 name "-" version ".tar.xz"))
2106 "187fyl92pnkn317pi1pkmf7bv5z6aqdhqa6b8531xgl06gyigy45"))))
2107 (build-system cmake-build-system)
2109 `(("extra-cmake-modules" ,extra-cmake-modules)))
2112 ("kactivities" ,kactivities)
2113 ("kconfig" ,kconfig)
2115 ("qtdeclarative" ,qtdeclarative)))
2116 (home-page "https://community.kde.org/Frameworks")
2117 (synopsis "Access usage statistics collected by the activity manager")
2118 (description "The KActivitiesStats library provides a querying mechanism for
2119 the data that the activitiy manager collects - which documents have been opened
2120 by which applications, and what documents have been linked to which activity.")
2122 (license (list license:lgpl2.0+ license:lgpl2.1+ license:lgpl3+))))
2124 (define-public kbookmarks
2131 "mirror://kde/stable/frameworks/"
2132 (version-major+minor version) "/"
2133 name "-" version ".tar.xz"))
2136 "011r2ms57ycz5kma0q35cji4isj0lskrxrambk11jibs1xjdis2v"))))
2137 (build-system cmake-build-system)
2139 `(("kwidgetsaddons" ,kwidgetsaddons)))
2141 `(("extra-cmake-modules" ,extra-cmake-modules)
2142 ("qttools" ,qttools)))
2145 ("kcodecs" ,kcodecs)
2146 ("kconfig" ,kconfig)
2147 ("kconfigwidgets" ,kconfigwidgets)
2148 ("kcoreaddons" ,kcoreaddons)
2149 ("kiconthemes" ,kiconthemes)
2150 ("kxmlgui" ,kxmlgui)
2151 ("qtbase" ,qtbase)))
2154 (modify-phases %standard-phases
2155 (add-before 'check 'check-setup
2157 (setenv "HOME" (getcwd))
2158 ;; make Qt render "offscreen", required for tests
2159 (setenv "QT_QPA_PLATFORM" "offscreen")
2161 (home-page "https://community.kde.org/Frameworks")
2162 (synopsis "Bookmarks management library")
2163 (description "KBookmarks lets you access and manipulate bookmarks stored
2164 using the XBEL format.")
2165 (license license:lgpl2.1+)))
2167 (define-public kcmutils
2174 "mirror://kde/stable/frameworks/"
2175 (version-major+minor version) "/"
2176 name "-" version ".tar.xz"))
2179 "1q12n9sfgrm2f8bspsl5i9gbv4jwl25w5id9m9rnnr87hck35g68"))))
2180 (build-system cmake-build-system)
2182 `(("kconfigwidgets" ,kconfigwidgets)
2183 ("kservice" ,kservice)))
2185 `(("extra-cmake-modules" ,extra-cmake-modules)))
2188 (modify-phases %standard-phases
2189 (add-after 'unpack 'patch
2191 (substitute* "src/kpluginselector.cpp"
2192 ;; make QDirIterator follow symlinks
2193 (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
2194 (string-append a " | QDirIterator::FollowSymlinks" b)))
2195 (substitute* "src/kcmoduleloader.cpp"
2196 ;; print plugin name when loading fails
2197 (("^\\s*(qWarning\\(\\) << \"Error loading) (plugin:\")( << loader\\.errorString\\(\\);)" _ a b c)
2198 (string-append a " KCM plugin\" << mod.service()->library() << \":\"" c)))
2202 ("kcodecs" ,kcodecs)
2203 ("kconfig" ,kconfig)
2204 ("kcoreaddons" ,kcoreaddons)
2205 ("kdeclarative" ,kdeclarative)
2206 ("kiconthemes" ,kiconthemes)
2207 ("kitemviews" ,kitemviews)
2209 ("kpackage" ,kpackage)
2210 ("kwidgetsaddons" ,kwidgetsaddons)
2211 ("kxmlgui" ,kxmlgui)
2213 ("qtdeclarative" ,qtdeclarative)))
2214 (home-page "https://community.kde.org/Frameworks")
2215 (synopsis "Utilities for KDE System Settings modules")
2216 (description "KCMUtils provides various classes to work with KCModules.
2217 KCModules can be created with the KConfigWidgets framework.")
2218 (license license:lgpl2.1+)))
2220 (define-public kconfigwidgets
2222 (name "kconfigwidgets")
2227 "mirror://kde/stable/frameworks/"
2228 (version-major+minor version) "/"
2229 name "-" version ".tar.xz"))
2232 "098xdfvnyz9bdkc6iyq5r2s4vkfdhbrri4015yzbs73j4f2wcxz5"))))
2233 (build-system qt-build-system)
2236 ("kcodecs" ,kcodecs)
2237 ("kconfig" ,kconfig)
2238 ("kwidgetsaddons" ,kwidgetsaddons)))
2240 `(("extra-cmake-modules" ,extra-cmake-modules)
2241 ("kdoctools" ,kdoctools)))
2243 `(("kcoreaddons" ,kcoreaddons)
2244 ("kguiaddons" ,kguiaddons)
2246 ;; todo: PythonModuleGeneration
2248 ("qttools" ,qttools)))
2251 (modify-phases %standard-phases
2252 (add-after 'unpack 'patch
2254 (substitute* "src/khelpclient.cpp"
2255 ;; make QDirIterator follow symlinks
2256 (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
2257 (string-append a " | QDirIterator::FollowSymlinks" b)))
2259 (home-page "https://community.kde.org/Frameworks")
2260 (synopsis "Widgets for configuration dialogs")
2261 (description "KConfigWidgets provides easy-to-use classes to create
2262 configuration dialogs, as well as a set of widgets which uses KConfig to store
2265 (license (list license:gpl2+ license:lgpl2.1+))))
2267 (define-public kdeclarative
2269 (name "kdeclarative")
2274 "mirror://kde/stable/frameworks/"
2275 (version-major+minor version) "/"
2276 name "-" version ".tar.xz"))
2279 "027wnrmr79fxkf4jpdpfhp7smdai2wn9y71l1h4kgqgwfq8anwy8"))))
2280 (build-system cmake-build-system)
2282 `(("kconfig" ,kconfig)
2283 ("kpackage" ,kpackage)))
2285 `(("extra-cmake-modules" ,extra-cmake-modules)
2286 ("pkg-config" ,pkg-config)
2287 ("xorg-server" ,xorg-server-for-tests)))
2290 ("kbookmarks" ,kbookmarks)
2291 ("kcodecs" ,kcodecs)
2292 ("kcompletion" ,kcompletion)
2293 ("kconfigwidgets" ,kconfigwidgets)
2294 ("kcoreaddons" ,kcoreaddons)
2295 ("kglobalaccel" ,kglobalaccel)
2296 ("kguiaddons" ,kguiaddons)
2297 ("kiconthemes" ,kiconthemes)
2299 ("kitemviews" ,kitemviews)
2301 ("kjobwidgets" ,kjobwidgets)
2302 ("kservice" ,kservice)
2303 ("kwidgetsaddons" ,kwidgetsaddons)
2304 ("kwindowsystem" ,kwindowsystem)
2305 ("kxmlgui" ,kxmlgui)
2306 ("libepoxy" ,libepoxy)
2308 ("qtdeclarative" ,qtdeclarative)
2312 (modify-phases %standard-phases
2313 (add-before 'check 'start-xorg-server
2314 (lambda* (#:key inputs #:allow-other-keys)
2315 ;; The test suite requires a running X server, setting
2316 ;; QT_QPA_PLATFORM=offscreen does not suffice.
2317 (system (string-append (assoc-ref inputs "xorg-server")
2318 "/bin/Xvfb :1 -screen 0 640x480x24 &"))
2319 (setenv "DISPLAY" ":1")
2321 (home-page "https://community.kde.org/Frameworks")
2322 (synopsis "Integration of QML and KDE work spaces")
2323 (description "KDeclarative provides integration of QML and KDE work spaces.
2324 It's comprises two parts: a library used by the C++ part of your application to
2325 intergrate QML with KDE Frameworks specific features, and a series of QML imports
2326 that offer bindings to some of the Frameworks.")
2328 (license (list license:gpl2+ license:lgpl2.1+))))
2337 "mirror://kde/stable/frameworks/"
2338 (version-major+minor version) "/"
2339 name "-" version ".tar.xz"))
2342 "0kjr6ff1g6xyas5si9b7zilcqcx4mgfkzfpq2c59fz1wd8q8fl05"))))
2343 (build-system cmake-build-system)
2345 `(("extra-cmake-modules" ,extra-cmake-modules)))
2347 `(("kconfig" ,kconfig)
2348 ("kcoreaddons" ,kcoreaddons)
2350 ("kdbusaddons" ,kdbusaddons)
2351 ("kdoctools" ,kdoctools)
2353 ("kservice" ,kservice)
2354 ("qtbase" ,qtbase)))
2355 (home-page "https://community.kde.org/Frameworks")
2356 (synopsis "Central daemon of KDE work spaces")
2357 (description "KDED stands for KDE Daemon. KDED runs in the background and
2358 performs a number of small tasks. Some of these tasks are built in, others are
2359 started on demand.")
2361 (license (list license:lgpl2.0+ license:lgpl2.1+))))
2363 (define-public kdesignerplugin
2365 (name "kdesignerplugin")
2370 "mirror://kde/stable/frameworks/"
2371 (version-major+minor version) "/portingAids/"
2372 name "-" version ".tar.xz"))
2375 "1w7glszd82iyw6kxzmp0568rm3qfadi7vw7gfxg4c15w5ikkvxn9"))))
2376 (build-system qt-build-system)
2378 `(("extra-cmake-modules" ,extra-cmake-modules)
2379 ("qttools" ,qttools)))
2381 `(("kconfig" ,kconfig)
2382 ("kcoreaddons" ,kcoreaddons)
2383 ("kdoctools" ,kdoctools)
2386 ("kcompletion" ,kcompletion)
2387 ("kconfigwidgets" ,kconfigwidgets)
2388 ("kiconthemes" ,kiconthemes)
2389 ("kitemviews" ,kitemviews)
2391 ("kplotting" ,kplotting)
2392 ("ktextwidgets" ,ktextwidgets)
2393 ("kdewebkit" ,kdewebkit)
2394 ("kwidgetsaddons" ,kwidgetsaddons)
2395 ("kxmlgui" ,kxmlgui)
2396 ("qtwebkit" ,qtwebkit)
2397 ("sonnet" ,sonnet)))
2398 (home-page "https://community.kde.org/Frameworks")
2399 (synopsis "Integrating KDE frameworks widgets with Qt Designer")
2400 (description "This framework provides plugins for Qt Designer that allow it
2401 to display the widgets provided by various KDE frameworks, as well as a utility
2402 (kgendesignerplugin) that can be used to generate other such plugins from
2403 ini-style description files.")
2404 (license license:lgpl2.1+)))
2406 (define-public kdesu
2413 "mirror://kde/stable/frameworks/"
2414 (version-major+minor version) "/"
2415 name "-" version ".tar.xz"))
2418 "038m0sdpnsy50m3g78sfg7wk26933rh3578qsnapw2cyimx8ypxx"))))
2419 (build-system cmake-build-system)
2423 `(("extra-cmake-modules" ,extra-cmake-modules)))
2425 `(("kconfig" ,kconfig)
2426 ("kcoreaddons" ,kcoreaddons)
2428 ("kservice" ,kservice)
2429 ("qtbase" ,qtbase)))
2430 (home-page "https://community.kde.org/Frameworks")
2431 (synopsis "User interface for running shell commands with root privileges")
2432 (description "KDESU provides functionality for building GUI front ends for
2433 (password asking) console mode programs. kdesu and kdessh use it to interface
2434 with su and ssh respectively.")
2435 (license license:lgpl2.1+)))
2437 (define-public kdewebkit
2444 "mirror://kde/stable/frameworks/"
2445 (version-major+minor version) "/portingAids/"
2446 name "-" version ".tar.xz"))
2449 "1s3bmn1ck7xvc7a6gv7ywv9161hdahiiw20aq88s4qkm2s5wyy6v"))))
2450 (build-system cmake-build-system)
2452 `(("extra-cmake-modules" ,extra-cmake-modules)
2453 ("qttools" ,qttools)))
2455 `(("kconfig" ,kconfig)
2456 ("kcoreaddons" ,kcoreaddons)
2458 ("kjobwidgets" ,kjobwidgets)
2460 ("kservice" ,kservice)
2461 ("kwallet" ,kwallet)
2463 ("qtwebkit" ,qtwebkit)))
2464 (home-page "https://community.kde.org/Frameworks")
2465 (synopsis "KDE Integration for QtWebKit")
2466 (description "This library provides KDE integration of the HTML rendering
2467 engine WebKit via QtWebKit.")
2468 (license license:lgpl2.1+)))
2470 (define-public kemoticons
2477 "mirror://kde/stable/frameworks/"
2478 (version-major+minor version) "/"
2479 name "-" version ".tar.xz"))
2482 "0li1lz5kqlczvgq6b2x3nkr0hl96a337ab83fq9wxp5sx440d6sd"))))
2483 (build-system cmake-build-system)
2485 `(("kservice" ,kservice)))
2487 `(("extra-cmake-modules" ,extra-cmake-modules)))
2489 `(("karchive" ,karchive)
2490 ("kconfig" ,kconfig)
2491 ("kcoreaddons" ,kcoreaddons)
2492 ("qtbase" ,qtbase)))
2495 (modify-phases %standard-phases
2496 (add-before 'check 'check-setup
2498 (setenv "HOME" (getcwd))
2499 ;; make Qt render "offscreen", required for tests
2500 (setenv "QT_QPA_PLATFORM" "offscreen")
2502 (home-page "https://community.kde.org/Frameworks")
2503 (synopsis "Convert text emoticons to graphical emoticons")
2504 (description "KEmoticons converts emoticons from text to a graphical
2505 representation with images in HTML. It supports setting different themes for
2506 emoticons coming from different providers.")
2507 ;; dual licensed, image files are licensed under cc-by-sa4.0
2508 (license (list license:gpl2+ license:lgpl2.1+ license:cc-by-sa4.0))))
2510 (define-public kglobalaccel
2512 (name "kglobalaccel")
2517 "mirror://kde/stable/frameworks/"
2518 (version-major+minor version) "/"
2519 name "-" version ".tar.xz"))
2522 "1xpfvwnrj81mk3di02n37b469gxzmnk89icmcz6wwyk54m86fw76"))))
2523 (build-system qt-build-system)
2525 `(("extra-cmake-modules" ,extra-cmake-modules)
2526 ("pkg-config" ,pkg-config)
2527 ("qttools" ,qttools)))
2529 `(("kconfig" ,kconfig)
2531 ("kcoreaddons" ,kcoreaddons)
2532 ("kdbusaddons" ,kdbusaddons)
2533 ("kservice" ,kservice)
2534 ("kwindowsystem" ,kwindowsystem)
2537 ("qtx11extras" ,qtx11extras)
2538 ("xcb-util-keysyms" ,xcb-util-keysyms)))
2539 (home-page "https://community.kde.org/Frameworks")
2540 (synopsis "Global desktop keyboard shortcuts")
2541 (description "KGlobalAccel allows you to have global accelerators that are
2542 independent of the focused window. Unlike regular shortcuts, the application's
2543 window does not need focus for them to be activated.")
2544 (license license:lgpl2.1+)))
2546 (define-public kiconthemes
2548 (name "kiconthemes")
2553 "mirror://kde/stable/frameworks/"
2554 (version-major+minor version) "/"
2555 name "-" version ".tar.xz"))
2558 "18p4np4chykpy2ck8c76999nh8gdj75hjfakg1pakdqhlash9q6w"))))
2559 (build-system cmake-build-system)
2561 `(("extra-cmake-modules" ,extra-cmake-modules)
2562 ("qttools" ,qttools)
2563 ("shared-mime-info" ,shared-mime-info)))
2565 `(("karchive" ,karchive)
2567 ("kcodecs" ,kcodecs)
2568 ("kcoreaddons" ,kcoreaddons)
2569 ("kconfig" ,kconfig)
2570 ("kconfigwidgets" ,kconfigwidgets)
2572 ("kitemviews" ,kitemviews)
2573 ("kwidgetsaddons" ,kwidgetsaddons)
2578 (modify-phases %standard-phases
2579 (add-before 'check 'check-setup
2580 (lambda* (#:key inputs #:allow-other-keys)
2581 (setenv "XDG_DATA_DIRS"
2582 (string-append (assoc-ref inputs "shared-mime-info")
2584 (setenv "HOME" (getcwd))
2585 ;; make Qt render "offscreen", required for tests
2586 (setenv "QT_QPA_PLATFORM" "offscreen")
2588 (home-page "https://community.kde.org/Frameworks")
2589 (synopsis "Icon GUI utilities")
2590 (description "This library contains classes to improve the handling of icons
2591 in applications using the KDE Frameworks.")
2592 (license license:lgpl2.1+)))
2594 (define-public kinit
2601 "mirror://kde/stable/frameworks/"
2602 (version-major+minor version) "/"
2603 name "-" version ".tar.xz"))
2606 "06p0i9674nzam0f4ac2jrl9pgkycz0lc0kdn24ds2rlh85cqvjwx"))
2607 ;; Use the store paths for other packages and dynamically loaded
2609 (patches (search-patches "kinit-kdeinit-extra_libs.patch"
2610 "kinit-kdeinit-libpath.patch"))))
2611 (build-system cmake-build-system)
2614 (modify-phases %standard-phases
2615 (add-after 'unpack 'patch-paths
2616 (lambda* (#:key inputs outputs #:allow-other-keys)
2617 ;; Set patched-in values:
2618 (substitute* "src/kdeinit/kinit.cpp"
2619 (("GUIX_PKGS_KF5_KIO") (assoc-ref inputs "kio"))
2620 (("GUIX_PKGS_KF5_PARTS") (assoc-ref inputs "kparts"))
2621 (("GUIX_PKGS_KF5_PLASMA") (assoc-ref inputs "plasma-framework")))
2623 (native-search-paths
2624 (list (search-path-specification
2625 (variable "KDEINIT5_LIBRARY_PATH")
2626 (files '("lib/")))))
2628 `(("extra-cmake-modules" ,extra-cmake-modules)
2629 ("pkg-config" ,pkg-config)))
2632 ("kbookmarks" ,kbookmarks)
2633 ("kcodecs" ,kcodecs)
2634 ("kcompletion" ,kcompletion)
2635 ("kconfig" ,kconfig)
2636 ("kconfigwidgets" ,kconfigwidgets)
2637 ("kcoreaddons" ,kcoreaddons)
2639 ("kdoctools" ,kdoctools)
2641 ("kitemviews" ,kitemviews)
2643 ("kjobwidgets" ,kjobwidgets)
2645 ("kservice" ,kservice)
2646 ("kwidgetsaddons" ,kwidgetsaddons)
2647 ("kwindowsystem" ,kwindowsystem)
2648 ("kxmlgui" ,kxmlgui)
2649 ("libcap" ,libcap) ; to install start_kdeinit with CAP_SYS_RESOURCE
2650 ("plasma-framework" ,plasma-framework)
2653 (home-page "https://community.kde.org/Frameworks")
2654 (synopsis "Library to speed up start of applications on KDE workspaces")
2655 (description "Kdeinit is a process launcher similar to init used for booting
2656 UNIX. It launches processes by forking and then loading a dynamic library which
2657 contains a @code{kdemain(@dots{})} function. Using kdeinit to launch KDE
2658 applications makes starting KDE applications faster and reduces memory
2661 (license (list license:lgpl2.0+ license:lgpl2.1+))))
2670 "mirror://kde/stable/frameworks/"
2671 (version-major+minor version) "/"
2672 name "-" version ".tar.xz"))
2675 "048gq6j8di6nzsacpr8j40kw6y5607zgwqr21ahcnnb0gd2sly4l"))
2676 (patches (search-patches "kio-search-smbd-on-PATH.patch"))))
2677 (build-system cmake-build-system)
2679 `(("kbookmarks" ,kbookmarks)
2680 ("kconfig" ,kconfig)
2681 ("kcompletion" ,kcompletion)
2682 ("kcoreaddons" ,kcoreaddons)
2683 ("kitemviews" ,kitemviews)
2684 ("kjobwidgets" ,kjobwidgets)
2685 ("kservice" ,kservice)
2686 ("kxmlgui" ,kxmlgui)
2690 ("qttools" ,qttools)
2691 ("extra-cmake-modules" ,extra-cmake-modules)))
2693 `(;; TODO: LibACL , <ftp://oss.sgi.com/projects/xfs/cmd_tars>
2695 ("karchive" ,karchive)
2697 ("kcodecs" ,kcodecs)
2698 ("kconfigwidgets" ,kconfigwidgets)
2700 ("kdbusaddons" ,kdbusaddons)
2701 ("kdoctools" ,kdoctools)
2702 ("kiconthemes" ,kiconthemes)
2704 ("knotifications" ,knotifications)
2705 ("ktextwidgets" ,ktextwidgets)
2706 ("kwallet" ,kwallet)
2707 ("kwidgetsaddons" ,kwidgetsaddons)
2708 ("kwindowsystem" ,kwindowsystem)
2709 ("libxml2" ,libxml2)
2710 ("libxslt" ,libxslt)
2712 ("qtscript" ,qtscript)
2713 ("qtx11extras" ,qtx11extras)
2714 ("sonnet" ,sonnet)))
2716 `(#:tests? #f ; FIXME: 41/50 tests fail.
2718 (modify-phases %standard-phases
2719 (add-after 'unpack 'patch
2721 ;; Better error message (taken from NixOS)
2722 (substitute* "src/kiod/kiod_main.cpp"
2723 (("(^\\s*qCWarning(KIOD_CATEGORY) << \"Error loading plugin:\")( << loader.errorString();)" _ a b)
2724 (string-append a "<< name" b)))
2726 (add-before 'check 'check-setup
2728 (setenv "HOME" (getcwd))
2729 (setenv "XDG_RUNTIME_DIR" (getcwd))
2730 ;; make Qt render "offscreen", required for tests
2731 (setenv "QT_QPA_PLATFORM" "offscreen")
2733 (add-after 'install 'add-symlinks
2734 ;; Some package(s) (e.g. bluedevil) refer to these service types by
2735 ;; the wrong name. I would prefer to patch those packages, but I
2736 ;; cannot find the files!
2737 (lambda* (#:key outputs #:allow-other-keys)
2738 (let ((kst5 (string-append (assoc-ref outputs "out")
2739 "/share/kservicetypes5/")))
2740 (symlink (string-append kst5 "kfileitemactionplugin.desktop")
2741 (string-append kst5 "kfileitemaction-plugin.desktop"))))))))
2744 ;; (setenv "DBUS_FATAL_WARNINGS" "0")
2745 ;; (zero? (system* "dbus-launch" "ctest" ".")))))))
2746 (home-page "https://community.kde.org/Frameworks")
2747 (synopsis "Network transparent access to files and data")
2748 (description "This framework implements a lot of file management functions.
2749 It supports accessing files locally as well as via HTTP and FTP out of the box
2750 and can be extended by plugins to support other protocols as well. There is a
2751 variety of plugins available, e.g. to support access via SSH. The framework can
2752 also be used to bridge a native protocol to a file-based interface. This makes
2753 the data accessible in all applications using the KDE file dialog or any other
2754 KIO enabled infrastructure.")
2755 (license license:lgpl2.1+)))
2757 (define-public knewstuff
2764 "mirror://kde/stable/frameworks/"
2765 (version-major+minor version) "/"
2766 name "-" version ".tar.xz"))
2769 "0pkm7qapkd9xypmhsjfwlgq0l4nfgya5b23lv3zkci8lrbssaqsv"))))
2770 (build-system cmake-build-system)
2772 `(("attica" ,attica)
2773 ("kservice" ,kservice)
2774 ("kxmlgui" ,kxmlgui)))
2776 `(("extra-cmake-modules" ,extra-cmake-modules)))
2778 `(("karchive" ,karchive)
2780 ("kbookmarks" ,kbookmarks)
2781 ("kcodecs" ,kcodecs)
2782 ("kcompletion" ,kcompletion)
2783 ("kconfig" ,kconfig)
2784 ("kconfigwidgets" ,kconfigwidgets)
2785 ("kcoreaddons" ,kcoreaddons)
2787 ("kitemviews" ,kitemviews)
2789 ("kiconthemes" ,kiconthemes)
2790 ("kjobwidgets" ,kjobwidgets)
2791 ("ktextwidgets" ,ktextwidgets)
2792 ("kwidgetsaddons" ,kwidgetsaddons)
2794 ("qtdeclarative" ,qtdeclarative)
2796 ("sonnet" ,sonnet)))
2799 (modify-phases %standard-phases
2800 (add-before 'check 'check-setup
2801 (lambda _ ; XDG_DATA_DIRS isn't set
2802 (setenv "HOME" (getcwd))
2803 ;; make Qt render "offscreen", required for tests
2804 (setenv "QT_QPA_PLATFORM" "offscreen")
2806 (home-page "https://community.kde.org/Frameworks")
2807 (synopsis "Framework for downloading and sharing additional application data")
2808 (description "The KNewStuff library implements collaborative data sharing
2809 for applications. It uses libattica to support the Open Collaboration Services
2811 (license license:lgpl2.1+)))
2813 (define-public knotifyconfig
2815 (name "knotifyconfig")
2820 "mirror://kde/stable/frameworks/"
2821 (version-major+minor version) "/"
2822 name "-" version ".tar.xz"))
2825 "1d90gsnxy3kqd6f1bkhflrdwwx3w65sw4c7nfpkdxxhlqhzc9zr4"))))
2826 (build-system cmake-build-system)
2828 `(("extra-cmake-modules" ,extra-cmake-modules)))
2831 ("kbookmarks" ,kbookmarks)
2832 ("kcodecs" ,kcodecs)
2833 ("kcompletion" ,kcompletion)
2834 ("kconfig" ,kconfig)
2835 ("kconfigwidgets" ,kconfigwidgets)
2836 ("kcoreaddons" ,kcoreaddons)
2838 ("kitemviews" ,kitemviews)
2840 ("kjobwidgets" ,kjobwidgets)
2841 ("knotifications" ,knotifications)
2842 ("kservice" ,kservice)
2843 ("kwidgetsaddons" ,kwidgetsaddons)
2844 ("kxmlgui" ,kxmlgui)
2848 (home-page "https://community.kde.org/Frameworks")
2849 (synopsis "Configuration dialog for desktop notifications")
2850 (description "KNotifyConfig provides a configuration dialog for desktop
2851 notifications which can be embedded in your application.")
2853 (license (list license:lgpl2.0+ license:lgpl2.1+))))
2855 (define-public kparts
2862 "mirror://kde/stable/frameworks/"
2863 (version-major+minor version) "/"
2864 name "-" version ".tar.xz"))
2867 "0md0349r4mdm2r04p5s3pgm17v4w40r3kz58lzp6qfcw25b969nw"))))
2868 (build-system qt-build-system)
2871 ("ktextwidgets" ,ktextwidgets)
2872 ("kxmlgui" ,kxmlgui)))
2874 `(("extra-cmake-modules" ,extra-cmake-modules)
2875 ("shared-mime-info" ,shared-mime-info)))
2878 ("kbookmarks" ,kbookmarks)
2879 ("kcodecs" ,kcodecs)
2880 ("kcompletion" ,kcompletion)
2881 ("kconfig" ,kconfig)
2882 ("kconfigwidgets" ,kconfigwidgets)
2883 ("kcoreaddons" ,kcoreaddons)
2884 ("kiconthemes" ,kiconthemes)
2885 ("kitemviews" ,kitemviews)
2887 ("kjobwidgets" ,kjobwidgets)
2888 ("kservice" ,kservice)
2889 ("kwidgetsaddons" ,kwidgetsaddons)
2892 ("sonnet" ,sonnet)))
2893 (home-page "https://community.kde.org/Frameworks")
2894 (synopsis "Plugin framework for user interface components")
2895 (description "This library implements the framework for KDE parts, which are
2896 widgets with a user-interface defined in terms of actions.")
2897 (license license:lgpl2.1+)))
2899 (define-public kpeople
2906 "mirror://kde/stable/frameworks/"
2907 (version-major+minor version) "/"
2908 name "-" version ".tar.xz"))
2911 "1q2hh2i8hd638p907g0srdxmxm9h2ay91dmhslqzcgwnlhln4gfl"))))
2912 (build-system qt-build-system)
2914 `(("extra-cmake-modules" ,extra-cmake-modules)))
2916 `(("kconfig" ,kconfig)
2917 ("kcoreaddons" ,kcoreaddons)
2918 ("kitemviews" ,kitemviews)
2920 ("kservice" ,kservice)
2921 ("kwidgetsaddons" ,kwidgetsaddons)
2923 ("qtdeclarative" ,qtdeclarative)))
2925 `(#:tests? #f)) ; FIXME: 1/3 tests fail.
2926 (home-page "https://community.kde.org/Frameworks")
2927 (synopsis "Provides access to all contacts and aggregates them by person")
2928 (description "KPeople offers unified access to our contacts from different
2929 sources, grouping them by person while still exposing all the data. KPeople
2930 also provides facilities to integrate the data provided in user interfaces by
2931 providing QML and Qt Widgets components. The sources are plugin-based, allowing
2932 to easily extend the contacts collection.")
2933 (license license:lgpl2.1+)))
2935 (define-public krunner
2942 "mirror://kde/stable/frameworks/"
2943 (version-major+minor version) "/"
2944 name "-" version ".tar.xz"))
2947 "0gjqwzsg865gha8k7hda28hsrbfzhw9jz610lkqff5713lqbcn5a"))))
2948 (build-system cmake-build-system)
2950 `(("plasma-framework" ,plasma-framework)))
2952 `(("extra-cmake-modules" ,extra-cmake-modules)))
2955 ("kbookmarks" ,kbookmarks)
2956 ("kcodecs" ,kcodecs)
2957 ("kcompletion" ,kcompletion)
2958 ("kconfig" ,kconfig)
2959 ("kconfigwidgets" ,kconfigwidgets)
2960 ("kcoreaddons" ,kcoreaddons)
2962 ("kitemviews" ,kitemviews)
2964 ("kjobwidgets" ,kjobwidgets)
2965 ("kpackage" ,kpackage)
2966 ("kservice" ,kservice)
2967 ("kwidgetsaddons" ,kwidgetsaddons)
2968 ("kwindowsystem" ,kwindowsystem)
2969 ("kxmlgui" ,kxmlgui)
2971 ("qtdeclarative" ,qtdeclarative)
2973 ("threadweaver" ,threadweaver)))
2976 (modify-phases %standard-phases
2977 (add-after 'unpack 'fix-paths-for-test
2978 ;; This test tries to access paths like /home, /usr/bin and /bin/ls
2979 ;; which don't exist in the build-container. Change to existing paths.
2981 (substitute* "autotests/runnercontexttest.cpp"
2982 (("/home\"") "/tmp\"") ;; single path-part
2983 (("//usr/bin\"") (string-append (getcwd) "\"")) ;; multiple path-parts
2985 (string-append (assoc-ref %build-inputs "coreutils") path)))))
2986 (add-before 'check 'check-setup
2988 (setenv "HOME" (getcwd))
2989 ;; make Qt render "offscreen", required for tests
2990 (setenv "QT_QPA_PLATFORM" "offscreen")
2991 ;; Blacklist some failing test-functions. FIXME: Make them pass.
2992 (with-output-to-file "bin/BLACKLIST"
2994 (display "[testMatch]\n*\n")
2995 (display "[testMulti]\n*\n")))
2997 (home-page "https://community.kde.org/Frameworks")
2998 (synopsis "Framework for Plasma runners")
2999 (description "The Plasma workspace provides an application called KRunner
3000 which, among other things, allows one to type into a text area which causes
3001 various actions and information that match the text appear as the text is being
3003 (license license:lgpl2.1+)))
3005 (define-public kservice
3012 "mirror://kde/stable/frameworks/"
3013 (version-major+minor version) "/"
3014 name "-" version ".tar.xz"))
3017 "1rdapw9wirfq6pyaza0k7sg6q21rv3cfyalpzrwfrk5gkgpqxzwk"))))
3018 (build-system cmake-build-system)
3020 `(("kconfig" ,kconfig)
3021 ("kcoreaddons" ,kcoreaddons)))
3024 ("extra-cmake-modules" ,extra-cmake-modules)
3027 `(("kcrash" ,kcrash)
3028 ("kdbusaddons" ,kdbusaddons)
3029 ("kdoctools" ,kdoctools)
3031 ("qtbase" ,qtbase)))
3033 `(#:tests? #f ; FIXME: 6/10 tests fail.
3035 (modify-phases %standard-phases
3036 (add-after 'unpack 'patch
3037 ;; Adopted from NixOS' patches "qdiriterator-follow-symlinks" and
3038 ;; "no-canonicalize-path".
3040 (substitute* "src/sycoca/kbuildsycoca.cpp"
3041 ;; make QDirIterator follow symlinks
3042 (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
3043 (string-append a " | QDirIterator::FollowSymlinks" b)))
3044 (substitute* "src/sycoca/vfolder_menu.cpp"
3045 ;; Normalize path, but don't resolve symlinks (taken from
3047 (("^\\s*QString resolved = QDir\\(dir\\)\\.canonicalPath\\(\\);")
3048 "QString resolved = QDir::cleanPath(dir);"))
3050 (add-before 'check 'check-setup
3052 (setenv "HOME" (getcwd))
3053 ;; make Qt render "offscreen", required for tests
3054 (setenv "QT_QPA_PLATFORM" "offscreen")
3056 (home-page "https://community.kde.org/Frameworks")
3057 (synopsis "Plugin framework for desktop services")
3058 (description "KService provides a plugin framework for handling desktop
3059 services. Services can be applications or libraries. They can be bound to MIME
3060 types or handled by application specific code.")
3062 (license (list license:gpl2+ license:gpl3+ license:lgpl2.1+))))
3064 (define-public ktexteditor
3066 (name "ktexteditor")
3071 "mirror://kde/stable/frameworks/"
3072 (version-major+minor version) "/"
3073 "ktexteditor-" version ".tar.xz"))
3076 "0vfl6rr3624n8v29z07z5c0nh5af5kfg28cnp5ksfvfnssxfzfqa"))))
3077 (build-system cmake-build-system)
3079 `(("kparts" ,kparts)))
3081 `(("extra-cmake-modules" ,extra-cmake-modules)
3082 ("pkg-config" ,pkg-config)))
3084 `(;; TODO: editor-config
3085 ("karchive" ,karchive)
3087 ("kbookmarks" ,kbookmarks)
3088 ("kcodecs" ,kcodecs)
3089 ("kcompletion" ,kcompletion)
3090 ("kconfig" ,kconfig)
3091 ("kconfigwidgets" ,kconfigwidgets)
3092 ("kcoreaddons" ,kcoreaddons)
3093 ("kguiaddons" ,kguiaddons)
3094 ("kiconthemes" ,kiconthemes)
3096 ("kitemviews" ,kitemviews)
3098 ("kjobwidgets" ,kjobwidgets)
3099 ("kservice" ,kservice)
3100 ("ksyntaxhighlighting" ,ksyntaxhighlighting)
3101 ("ktextwidgets" ,ktextwidgets)
3102 ("kwidgetsaddons" ,kwidgetsaddons)
3103 ("kxmlgui" ,kxmlgui)
3104 ("libgit2" ,libgit2)
3107 ("qtdeclarative" ,qtdeclarative)
3108 ("qtscript" ,qtscript)
3109 ("qtxmlpatterns" ,qtxmlpatterns)
3111 ("sonnet" ,sonnet)))
3113 `(#:tests? #f ; FIXME: 2/54 tests fail: Cannot find fontdirectory qtbase/lib/font
3115 (modify-phases %standard-phases
3116 (add-after 'unpack 'setup
3117 (lambda* (#:key inputs #:allow-other-keys)
3118 (setenv "XDG_DATA_DIRS" ; FIXME build phase doesn't find parts.desktop
3119 (string-append (assoc-ref inputs "kparts") "/share"))
3121 (add-before 'check 'check-setup
3123 (setenv "HOME" (getcwd))
3124 ;; make Qt render "offscreen", required for tests
3125 (setenv "QT_QPA_PLATFORM" "offscreen")
3127 (add-after 'install 'add-symlinks
3128 ;; Some package(s) (e.g. plasma-sdk) refer to these service types
3129 ;; by the wrong name. I would prefer to patch those packages, but
3130 ;; I cannot find the files!
3131 (lambda* (#:key outputs #:allow-other-keys)
3132 (let ((kst5 (string-append (assoc-ref outputs "out")
3133 "/share/kservicetypes5/")))
3134 (symlink (string-append kst5 "ktexteditorplugin.desktop")
3135 (string-append kst5 "ktexteditor-plugin.desktop"))
3137 (home-page "https://community.kde.org/Frameworks")
3138 (synopsis "Full text editor component")
3139 (description "KTextEditor provides a powerful text editor component that you
3140 can embed in your application, either as a KPart or using the KF5::TextEditor
3143 (license (list license:gpl2+ license:lgpl2.0+ license:lgpl2.1+))))
3145 (define-public ktextwidgets
3147 (name "ktextwidgets")
3152 "mirror://kde/stable/frameworks/"
3153 (version-major+minor version) "/"
3154 name "-" version ".tar.xz"))
3157 "1qb1mad5bg19xwykzpwk2b3s505ka4jkg0fsi56ri57wq8gv4qha"))))
3158 (build-system qt-build-system)
3161 ("sonnet" ,sonnet)))
3163 `(("extra-cmake-modules" ,extra-cmake-modules)
3164 ("qttools" ,qttools)))
3167 ("kcodecs" ,kcodecs)
3168 ("kcompletion" ,kcompletion)
3169 ("kconfig" ,kconfig)
3170 ("kconfigwidgets" ,kconfigwidgets)
3171 ("kcoreaddons" ,kcoreaddons)
3172 ("kiconthemes" ,kiconthemes)
3173 ("kservice" ,kservice)
3174 ("kwidgetsaddons" ,kwidgetsaddons)
3175 ("kwindowsystem" ,kwindowsystem)
3177 ("qtspeech" ,qtspeech)))
3178 (home-page "https://community.kde.org/Frameworks")
3179 (synopsis "Text editing widgets")
3180 (description "KTextWidgets provides widgets for displaying and editing text.
3181 It supports rich text as well as plain text.")
3183 (license (list license:lgpl2.0+ license:lgpl2.1+))))
3185 (define-public kwallet
3192 "mirror://kde/stable/frameworks/"
3193 (version-major+minor version) "/"
3194 name "-" version ".tar.xz"))
3197 "1dp3mrgl0h6wqp4wcqpvnvkacwkrrn5lrv6bdl008kx1y594s28g"))))
3198 (build-system cmake-build-system)
3200 `(("extra-cmake-modules" ,extra-cmake-modules)))
3204 ("kcodecs" ,kcodecs)
3205 ("kconfig" ,kconfig)
3206 ("kconfigwidgets" ,kconfigwidgets)
3207 ("kcoreaddons" ,kcoreaddons)
3208 ("kdbusaddons" ,kdbusaddons)
3209 ("kdoctools" ,kdoctools)
3210 ("kiconthemes" ,kiconthemes)
3212 ("knotifications" ,knotifications)
3213 ("kservice" ,kservice)
3214 ("kwidgetsaddons" ,kwidgetsaddons)
3215 ("kwindowsystem" ,kwindowsystem)
3216 ("libgcrypt" ,libgcrypt)
3219 ("qtbase" ,qtbase)))
3220 (home-page "https://community.kde.org/Frameworks")
3221 (synopsis "Safe desktop-wide storage for passwords")
3222 (description "This framework contains an interface to KWallet, a safe
3223 desktop-wide storage for passwords and the kwalletd daemon used to safely store
3224 the passwords on KDE work spaces.")
3225 (license license:lgpl2.1+)))
3227 (define-public kxmlgui
3234 "mirror://kde/stable/frameworks/"
3235 (version-major+minor version) "/"
3236 name "-" version ".tar.xz"))
3239 "0x0mfapgl8w4xal8lamh3v27a9kdb7qyaxdn48gja4x85pkvi87i"))))
3240 (build-system cmake-build-system)
3242 `(("kconfig" ,kconfig)
3243 ("kconfigwidgets" ,kconfigwidgets)))
3245 `(("extra-cmake-modules" ,extra-cmake-modules)
3246 ("qttools" ,qttools)))
3248 `(("attica" ,attica)
3250 ("kcodecs" ,kcodecs)
3251 ("kcoreaddons" ,kcoreaddons)
3252 ("kglobalaccel" ,kglobalaccel)
3253 ("kiconthemes" ,kiconthemes)
3254 ("kitemviews" ,kitemviews)
3256 ("ktextwidgets" ,ktextwidgets)
3257 ("kwidgetsaddons" ,kwidgetsaddons)
3258 ("kwindowsystem" ,kwindowsystem)
3260 ("sonnet" ,sonnet)))
3262 `(#:tests? #f ; FIXME: 1/5 tests fail.
3264 (modify-phases %standard-phases
3265 (add-before 'check 'check-setup
3267 (setenv "HOME" (getcwd))
3268 ;; make Qt render "offscreen", required for tests
3269 (setenv "QT_QPA_PLATFORM" "offscreen")
3271 (home-page "https://community.kde.org/Frameworks")
3272 (synopsis "Framework for managing menu and toolbar actions")
3273 (description "KXMLGUI provides a framework for managing menu and toolbar
3274 actions in an abstract way. The actions are configured through a XML description
3275 and hooks in the application code. The framework supports merging of multiple
3276 descriptions for integrating actions from plugins.")
3278 (license (list license:gpl2+ license:lgpl2.1+))))
3280 (define-public kxmlrpcclient
3282 (name "kxmlrpcclient")
3287 "mirror://kde/stable/frameworks/"
3288 (version-major+minor version) "/"
3289 name "-" version ".tar.xz"))
3292 "0k82cyxjipqpky7gs0zb5s1bc6jf22d5vwpwyiqjy32da63mc89c"))))
3293 (build-system cmake-build-system)
3297 `(("extra-cmake-modules" ,extra-cmake-modules)))
3300 ("kbookmarks" ,kbookmarks)
3301 ("kcodecs" ,kcodecs)
3302 ("kcompletion" ,kcompletion)
3303 ("kconfig" ,kconfig)
3304 ("kconfigwidgets" ,kconfigwidgets)
3305 ("kcoreaddons" ,kcoreaddons)
3306 ("kitemviews" ,kitemviews)
3308 ("kjobwidgets" ,kjobwidgets)
3309 ("kservice" ,kservice)
3310 ("kwidgetsaddons" ,kwidgetsaddons)
3311 ("kxmlgui" ,kxmlgui)
3314 (home-page "https://community.kde.org/Frameworks")
3315 (synopsis "XML-RPC client")
3316 (description "This library contains simple XML-RPC Client support. It is a
3317 complete client and is easy to use. Only one interface is exposed,
3318 kxmlrpcclient/client.h and from that interface, you only need to use 3 methods:
3319 setUrl, setUserAgent and call.")
3321 (license (list license:bsd-2 license:lgpl2.1+))))
3323 (define-public plasma-framework
3325 (name "plasma-framework")
3330 "mirror://kde/stable/frameworks/"
3331 (version-major+minor version) "/"
3332 name "-" version ".tar.xz"))
3335 "0p0ziqw70lklx59d0nij3p9yi1vdacdfyrrp7zf74iwxd7598hci"))))
3336 (build-system cmake-build-system)
3338 `(("kpackage" ,kpackage)
3339 ("kservice" ,kservice)))
3341 `(("extra-cmake-modules" ,extra-cmake-modules)
3342 ("pkg-config" ,pkg-config)))
3344 `(("kactivities" ,kactivities)
3345 ("karchive" ,karchive)
3347 ("kbookmarks" ,kbookmarks)
3348 ("kcodecs" ,kcodecs)
3349 ("kcompletion" ,kcompletion)
3350 ("kconfig" ,kconfig)
3351 ("kconfigwidgets" ,kconfigwidgets)
3352 ("kcoreaddons" ,kcoreaddons)
3353 ("kdbusaddons" ,kdbusaddons)
3354 ("kdeclarative" ,kdeclarative)
3355 ("kdoctools" ,kdoctools)
3356 ("kglobalaccel" ,kglobalaccel)
3357 ("kguiaddons" ,kguiaddons)
3358 ("kiconthemes" ,kiconthemes)
3359 ("kirigami" ,kirigami)
3360 ("kitemviews" ,kitemviews)
3363 ("kjobwidgets" ,kjobwidgets)
3364 ("knotificantions" ,knotifications)
3365 ("kwayland" ,kwayland)
3366 ("kwidgetsaddons" ,kwidgetsaddons)
3367 ("kwindowsystem" ,kwindowsystem)
3368 ("kxmlgui" ,kxmlgui)
3371 ("qtdeclarative" ,qtdeclarative)
3372 ("qtquickcontrols2" ,qtquickcontrols2)
3374 ("qtx11extras" ,qtx11extras)
3377 `(#:tests? #f ; FIXME: 9/15 tests fail.
3379 (modify-phases %standard-phases
3380 (add-before 'check 'check-setup
3382 (setenv "HOME" (getcwd))
3383 ;; make Qt render "offscreen", required for tests
3384 (setenv "QT_QPA_PLATFORM" "offscreen")
3386 (home-page "https://community.kde.org/Frameworks")
3387 (synopsis "Libraries, components and tools of Plasma workspaces")
3388 (description "The plasma framework provides QML components, libplasma and
3391 (license (list license:gpl2+ license:lgpl2.1+))))
3393 (define-public purpose
3400 "mirror://kde/stable/frameworks/"
3401 (version-major+minor version) "/"
3402 name "-" version ".tar.xz"))
3405 "1mc5z131z9da6qjhlxqz64ys4fgq38iryna58f8l04x8f9igjn8f"))))
3406 (build-system cmake-build-system)
3408 `(("extra-cmake-modules" ,extra-cmake-modules)))
3410 `(;;TODO: ("kaccounts" ,kaccounts)
3411 ("kconfig" ,kconfig)
3412 ("kcoreaddons" ,kcoreaddons)
3413 ("knotifications" ,knotifications)
3416 ("kirigami" ,kirigami)
3418 ("qtdeclarative" ,qtdeclarative)))
3420 `(#:tests? #f ;; seem to require network; don't find QTQuick components
3421 #:configure-flags '("-DBUILD_TESTING=OFF"))) ; not run anyway
3422 (home-page "https://community.kde.org/Frameworks")
3423 (synopsis "Offers available actions for a specific purpose")
3424 (description "This framework offers the possibility to create integrate
3425 services and actions on any application without having to implement them
3426 specifically. Purpose will offer them mechanisms to list the different
3427 alternatives to execute given the requested action type and will facilitate
3428 components so that all the plugins can receive all the information they
3430 (license license:lgpl2.1+)))
3432 ;; This version of kdbusaddons does not use kinit as an input, and is used to
3433 ;; build kinit-bootstrap, as well as bootstrap versions of all kinit
3434 ;; dependencies which also rely on kdbusaddons.
3435 (define kdbusaddons-bootstrap
3437 (inherit kdbusaddons)
3439 (inherit (package-source kdbusaddons))
3441 (inputs (alist-delete "kinit" (package-inputs kdbusaddons)))
3443 (substitute-keyword-arguments (package-arguments kdbusaddons)
3445 `(modify-phases ,phases
3446 (delete 'patch-source)))))))
3448 (define kinit-bootstrap
3449 ((package-input-rewriting `((,kdbusaddons . ,kdbusaddons-bootstrap))) kinit))
3454 ;; Tier 4 frameworks can be mostly ignored by application programmers; this
3455 ;; tier consists of plugins acting behind the scenes to provide additional
3456 ;; functionality or platform integration to existing frameworks (including
3459 (define-public kde-frameworkintegration
3461 (name "kde-frameworkintegration")
3466 "mirror://kde/stable/frameworks/"
3467 (version-major+minor version) "/"
3468 "frameworkintegration-" version ".tar.xz"))
3471 "0n8n6lnzswi2q848qy2b4rcvkd0y1dywlk6hdmcnn8dfbxy6b050"))))
3472 (build-system cmake-build-system)
3474 `(("extra-cmake-modules" ,extra-cmake-modules)
3475 ("pkg-config" ,pkg-config)))
3476 ;; TODO: Optional packages not yet in Guix: packagekitqt5, AppStreamQt
3478 `(("kconfig" ,kconfig)
3479 ("kconfigwidgets" ,kconfigwidgets)
3480 ("kcoreaddons" ,kcoreaddons)
3482 ("kiconthemes" ,kiconthemes)
3483 ("kitemviews" ,kitemviews)
3484 ("knewstuff" ,knewstuff)
3485 ("knotificantions" ,knotifications)
3486 ("kpackage" ,kpackage)
3487 ("kwidgetsaddons" ,kwidgetsaddons)
3489 ("qtx11extras" ,qtx11extras)))
3492 (modify-phases %standard-phases
3493 (add-before 'check 'check-setup
3495 (setenv "HOME" (getcwd))
3496 ;; Make Qt render "offscreen", required for tests
3497 (setenv "QT_QPA_PLATFORM" "offscreen")
3499 (home-page "https://community.kde.org/Frameworks")
3500 (synopsis "KDE Frameworks 5 workspace and cross-framework integration plugins")
3501 (description "Framework Integration is a set of plugins responsible for
3502 better integration of Qt applications when running on a KDE Plasma
3504 ;; This package is distributed under either LGPL2 or LGPL3, but some
3505 ;; files are explicitly LGPL2+.
3506 (license (list license:lgpl2.0 license:lgpl3 license:lgpl2.0+))
3507 (properties `((upstream-name . "frameworkintegration")))))
3512 ;; Porting Aids frameworks provide code and utilities to ease the transition
3513 ;; from kdelibs 4 to KDE Frameworks 5. Code should aim to port away from this
3514 ;; framework, new projects should avoid using these libraries.
3516 (define-public kdelibs4support
3518 (name "kdelibs4support")
3524 "mirror://kde/stable/frameworks/"
3525 (version-major+minor version) "/portingAids/"
3526 name "-" version ".tar.xz"))
3528 (base32 "17mywcmgp1yzdipwwaypbkxiyybk1w0sps50jv1bl0f23ya19mlc"))))
3529 (build-system cmake-build-system)
3532 ("docbook-xml" ,docbook-xml-4.4) ; optional
3533 ("extra-cmake-modules" ,extra-cmake-modules)
3535 ("perl-uri" ,perl-uri)
3536 ("pkg-config" ,pkg-config)
3537 ("shared-mime-info" ,shared-mime-info)
3538 ("kjobwidgets" ,kjobwidgets) ;; required for running the tests
3540 ("tzdata" ,tzdata-for-tests)))
3542 ;; These are required to be installed along with this package, see
3543 ;; lib64/cmake/KF5KDELibs4Support/KF5KDELibs4SupportConfig.cmake
3544 `(("karchive" ,karchive)
3546 ("kconfigwidgets" ,kconfigwidgets)
3547 ("kcoreaddons" ,kcoreaddons)
3549 ("kdbusaddons" ,kdbusaddons)
3550 ("kdesignerplugin" ,kdesignerplugin)
3551 ("kdoctools" ,kdoctools)
3552 ("kemoticons" ,kemoticons)
3553 ("kguiaddons" ,kguiaddons)
3554 ("kiconthemes" ,kiconthemes)
3556 ("kitemmodels" ,kitemmodels)
3557 ("knotifications" ,knotifications)
3559 ("ktextwidgets" ,ktextwidgets)
3560 ("kunitconversion" ,kunitconversion)
3561 ("kwindowsystem" ,kwindowsystem)
3562 ("qtbase" ,qtbase)))
3564 `(("kcompletion" ,kcompletion)
3565 ("kconfig" ,kconfig)
3567 ("kglobalaccel" ,kglobalaccel)
3570 ("kservice" ,kservice)
3571 ("kwidgetsaddons" ,kwidgetsaddons)
3572 ("kxmlgui" ,kxmlgui)
3574 ("networkmanager-qt" ,networkmanager-qt)
3575 ("openssl" ,openssl)
3577 ("qttools" ,qttools)
3578 ("qtx11extras" ,qtx11extras)))
3579 ;; FIXME: Use Guix ca-bundle.crt in etc/xdg/ksslcalist and
3580 ;; share/kf5/kssl/ca-bundle.crt
3581 ;; TODO: NixOS has nix-kde-include-dir.patch to change std-dir "include"
3582 ;; into "@dev@/include/". Think about whether this is needed for us, too.
3585 (modify-phases %standard-phases
3586 (add-after 'unpack 'make-cmake-to-find-docbook
3588 (substitute* "cmake/FindDocBookXML4.cmake"
3589 (("^.*xml/docbook/schema/dtd.*$")
3590 "xml/dtd/docbook\n"))
3593 (add-after 'install 'check-post-install
3594 (lambda* (#:key inputs tests? #:allow-other-keys)
3595 (setenv "HOME" (getcwd))
3596 (setenv "TZDIR" ; KDateTimeTestsome needs TZDIR
3597 (string-append (assoc-ref inputs "tzdata")
3599 ;; Make Qt render "offscreen", required for tests
3600 (setenv "QT_QPA_PLATFORM" "offscreen")
3601 ;; enable debug output
3602 (setenv "CTEST_OUTPUT_ON_FAILURE" "1") ; enable debug output
3603 (setenv "DBUS_FATAL_WARNINGS" "0")
3604 ;; Make kstandarddirstest pass (see https://bugs.kde.org/381098)
3605 (mkdir-p ".kde-unit-test/xdg/config")
3606 (with-output-to-file ".kde-unit-test/xdg/config/foorc"
3607 (lambda () #t)) ;; simply touch the file
3608 ;; Blacklist a test-function (failing at build.kde.org, too).
3609 (with-output-to-file "autotests/BLACKLIST"
3611 (display "[testSmb]\n*\n")))
3612 ;; kuniqueapptest hangs. FIXME: Make this test pass.
3613 (invoke "dbus-launch" "ctest" "."
3614 "-E" "kstandarddirstest|kuniqueapptest"))))))
3615 (home-page "https://community.kde.org/Frameworks")
3616 (synopsis "KDE Frameworks 5 porting aid from KDELibs4")
3617 (description "This framework provides code and utilities to ease the
3618 transition from kdelibs 4 to KDE Frameworks 5. This includes CMake macros and
3619 C++ classes whose functionality has been replaced by code in CMake, Qt and
3622 Code should aim to port away from this framework eventually. The API
3623 documentation of the classes in this framework and the notes at
3624 http://community.kde.org/Frameworks/Porting_Notes should help with this.")
3625 ;; Most files are distributed under LGPL2+, but the package includes code
3626 ;; under a variety of licenses.
3627 (license (list license:lgpl2.1+ license:lgpl2.0 license:lgpl2.0+
3628 license:gpl2 license:gpl2+
3629 license:expat license:bsd-2 license:bsd-3
3630 license:public-domain))))
3632 (define-public khtml
3640 "mirror://kde/stable/frameworks/"
3641 (version-major+minor version) "/portingAids/"
3642 name "-" version ".tar.xz"))
3644 (base32 "15f77r6dxkkvi2vxvxlwa7qz3whmz229g79bgadiwffmzxja0ywd"))))
3645 (build-system qt-build-system)
3647 `(("extra-cmake-modules" ,extra-cmake-modules)
3650 `(("giflib" ,giflib)
3652 ("karchive" ,karchive)
3653 ("kcodecs" ,kcodecs)
3654 ("kglobalaccel" ,kglobalaccel)
3656 ("kiconthemes" ,kiconthemes)
3659 ("knotifications" ,knotifications)
3661 ("ktextwidgets" ,ktextwidgets)
3662 ("kwallet" ,kwallet)
3663 ("kwidgetsaddons" ,kwidgetsaddons)
3664 ("kwindowsystem" ,kwindowsystem)
3665 ("kxmlgui" ,kxmlgui)
3666 ("libjpeg" ,libjpeg-turbo)
3668 ("openssl" ,openssl)
3671 ("qtx11extras" ,qtx11extras)
3672 ("sonnet" ,sonnet)))
3673 (home-page "https://community.kde.org/Frameworks")
3674 (synopsis "KDE Frameworks 5 HTML widget and component")
3675 (description "KHTML is a web rendering engine, based on the KParts
3676 technology and using KJS for JavaScript support.")
3677 ;; Most files are distributed under LGPL2+, but the package includes code
3678 ;; under a variety of licenses.
3679 (license (list license:lgpl2.0+ license:lgpl2.1+
3680 license:gpl2 license:gpl3+
3681 license:expat license:bsd-2 license:bsd-3))))
3691 "mirror://kde/stable/frameworks/"
3692 (version-major+minor version) "/portingAids/"
3693 name "-" version ".tar.xz"))
3695 (base32 "16zsan9c8kba5m70h34y544id7gig2bcbcs4s90s27pckijkkarp"))))
3696 (build-system cmake-build-system)
3698 `(("extra-cmake-modules" ,extra-cmake-modules)
3699 ("kdoctools" ,kdoctools)
3701 ("pkg-config" ,pkg-config)))
3704 ("qtbase" ,qtbase)))
3705 (home-page "https://community.kde.org/Frameworks")
3706 (synopsis "KDE Frameworks 5 support for Javascript scripting in Qt
3708 (description "Add-on library to Qt which adds JavaScript scripting
3710 ;; Most files are distributed under LGPL2+, but the package also includes
3711 ;; code under a variety of licenses.
3712 (license (list license:lgpl2.1+
3713 license:bsd-2 license:bsd-3
3714 (license:non-copyleft "file://src/kjs/dtoa.cpp")))))
3716 (define-public kjsembed
3724 "mirror://kde/stable/frameworks/"
3725 (version-major+minor version) "/portingAids/"
3726 name "-" version ".tar.xz"))
3728 (base32 "00sr6lv1nai2y6aawvqwnx4pbx8pw9b1jrpa0klc014gc42l6i7b"))))
3729 (build-system cmake-build-system)
3731 `(("extra-cmake-modules" ,extra-cmake-modules)
3732 ("kdoctools" ,kdoctools)
3733 ("qttools" ,qttools)))
3739 (home-page "https://community.kde.org/Frameworks")
3740 (synopsis "KDE Frameworks 5 embedded Javascript engine for Qt")
3741 (description "KJSEmbed provides a method of binding Javascript objects to
3742 QObjects, so you can script your applications.")
3743 (license license:lgpl2.1+)))
3745 (define-public kmediaplayer
3747 (name "kmediaplayer")
3753 "mirror://kde/stable/frameworks/"
3754 (version-major+minor version) "/portingAids/"
3755 name "-" version ".tar.xz"))
3757 (base32 "19v53h3lkys3ryrjacrdng9ak91g03b9s986xhnw1r84zy242kdm"))))
3758 (build-system qt-build-system)
3760 `(("extra-cmake-modules" ,extra-cmake-modules)
3761 ("kdoctools" ,kdoctools)
3762 ("qttools" ,qttools)))
3764 `(("kcompletion" ,kcompletion)
3765 ("kcoreaddons" ,kcoreaddons)
3767 ("kiconthemes" ,kiconthemes)
3770 ("kwidgetsaddons" ,kwidgetsaddons)
3771 ("kxmlgui" ,kxmlgui)
3772 ("qtbase" ,qtbase)))
3773 (home-page "https://community.kde.org/Frameworks")
3774 (synopsis "KDE Frameworks 5 plugin interface for media player features")
3775 (description "KMediaPlayer builds on the KParts framework to provide a
3776 common interface for KParts that can play media files.
3778 This framework is a porting aid. It is not recommended for new projects, and
3779 existing projects that use it are advised to port away from it, and use plain
3781 (license license:expat)))
3783 (define-public kross
3791 "mirror://kde/stable/frameworks/"
3792 (version-major+minor version) "/portingAids/"
3793 name "-" version ".tar.xz"))
3795 (base32 "0paipgkxbm6vwgqj38rlr37vgmf1rx0cl2mka8zdbndl76ng5hgc"))))
3796 (build-system cmake-build-system)
3798 `(("extra-cmake-modules" ,extra-cmake-modules)
3799 ("kdoctools" ,kdoctools)
3800 ("qttools" ,qttools)))
3802 `(("kcompletion" ,kcompletion)
3803 ("kcoreaddons" ,kcoreaddons)
3805 ("kiconthemes" ,kiconthemes)
3807 ("kwidgetsaddons" ,kwidgetsaddons)
3808 ("kxmlgui" ,kxmlgui)
3810 ("qtscript" ,qtscript)))
3811 (home-page "https://community.kde.org/Frameworks")
3812 (synopsis "KDE Frameworks 5 solution for application scripting")
3813 (description "Kross is a scripting bridge for the KDE Development Platform
3814 used to embed scripting functionality into an application. It supports
3815 QtScript as a scripting interpreter backend.
3817 Kross provides an abstract API to provide scripting functionality in a
3818 interpreter-independent way. The application that uses Kross should not need
3819 to know anything about the scripting language being used. The core of Kross
3820 provides the framework to deal transparently with interpreter-backends and
3821 offers abstract functionality to deal with scripts.")
3822 ;; Most files are distributed under LGPL2+, but the package includes code
3823 ;; under a variety of licenses.
3824 (license (list license:lgpl2.0+ license:lgpl2.1+
3825 license:lgpl2.0 license:gpl3+))))