2019-02-12 22:17:00 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2016 Thomas Danckaert <post@thomasdanckaert.be>
|
2019-02-12 22:21:01 +00:00
|
|
|
;;; Copyright © 2018 Meiyo Peng <meiyo.peng@gmail.com>
|
2017-06-09 11:12:08 +00:00
|
|
|
;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
|
|
|
|
;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
2019-02-24 18:42:17 +00:00
|
|
|
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
2019-02-12 22:17:00 +00:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages kde-plasma)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix build-system cmake)
|
gnu: Cleanup KDE packages to use the update qt-build-system.
* gnu/packages/kde.scm (grantleetheme): [arguments] Remove.
(kdeconnect)[arguments]<phases>{check-setup}: Remove.
libkdegames: Use qt-build-system. [arguments]: Remove.
* gnu/packages/kde-frameworks.scm (kguiaddons, kitemmodels,
kitemviews, kplotting, sonnet, kcompletion, kcrash, kdesignerplugin,
kglobalaccel, kparts, ktextwidgets, khtml, kmediaplayer): Use
qt-build-system. [arguments]: Remove.
(kpeople): Use qt-build-system. [arguments]<phases>: Remove.
(kconfigwidgets, kwidgetsaddons) Use qt-build-system.
[arguments]<phases>{check-setup}: Remove.
* gnu/packages/kde-plasma.scm (kdecoration) Use qt-build-system.
[arguments]: Remove.
(libkscreen): Use qt-build-system. [arguments]<phases>: Remove.
(libksysguard): Use qt-build-system.
[arguments]<phases>{check-setup}: Remove.
* gnu/packages/kde-utils.scm (kronometer, rsibreak): [arguments]
Remove.
2020-01-23 20:13:42 +00:00
|
|
|
#:use-module (guix build-system qt)
|
2019-02-12 22:17:00 +00:00
|
|
|
#:use-module (gnu packages compression)
|
2017-06-09 11:20:42 +00:00
|
|
|
#:use-module (gnu packages freedesktop)
|
2019-02-12 22:17:00 +00:00
|
|
|
#:use-module (gnu packages glib)
|
|
|
|
#:use-module (gnu packages kde-frameworks)
|
2017-06-09 11:20:42 +00:00
|
|
|
#:use-module (gnu packages linux)
|
2019-02-12 22:17:00 +00:00
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
#:use-module (gnu packages qt)
|
|
|
|
#:use-module (gnu packages xorg))
|
|
|
|
|
2017-06-09 11:12:08 +00:00
|
|
|
(define-public kdecoration
|
|
|
|
(package
|
|
|
|
(name "kdecoration")
|
2020-05-17 17:15:02 +00:00
|
|
|
(version "5.18.5")
|
2017-06-09 11:12:08 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://kde/stable/plasma/" version
|
|
|
|
"/kdecoration-" version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-05-17 17:15:02 +00:00
|
|
|
"1j59axgpdbj7nlg06h5gb0pix3s3nll32k6s2f88vc1cbwj5d67h"))))
|
gnu: Cleanup KDE packages to use the update qt-build-system.
* gnu/packages/kde.scm (grantleetheme): [arguments] Remove.
(kdeconnect)[arguments]<phases>{check-setup}: Remove.
libkdegames: Use qt-build-system. [arguments]: Remove.
* gnu/packages/kde-frameworks.scm (kguiaddons, kitemmodels,
kitemviews, kplotting, sonnet, kcompletion, kcrash, kdesignerplugin,
kglobalaccel, kparts, ktextwidgets, khtml, kmediaplayer): Use
qt-build-system. [arguments]: Remove.
(kpeople): Use qt-build-system. [arguments]<phases>: Remove.
(kconfigwidgets, kwidgetsaddons) Use qt-build-system.
[arguments]<phases>{check-setup}: Remove.
* gnu/packages/kde-plasma.scm (kdecoration) Use qt-build-system.
[arguments]: Remove.
(libkscreen): Use qt-build-system. [arguments]<phases>: Remove.
(libksysguard): Use qt-build-system.
[arguments]<phases>{check-setup}: Remove.
* gnu/packages/kde-utils.scm (kronometer, rsibreak): [arguments]
Remove.
2020-01-23 20:13:42 +00:00
|
|
|
(build-system qt-build-system)
|
2017-06-09 11:12:08 +00:00
|
|
|
(native-inputs
|
|
|
|
`(("extra-cmake-modules" ,extra-cmake-modules)))
|
|
|
|
(inputs
|
|
|
|
`(("ki18n" ,ki18n)
|
|
|
|
("qtbase" ,qtbase)))
|
|
|
|
(home-page "https://cgit.kde.org/kdecoration.git")
|
|
|
|
(synopsis "Plugin based library to create window decorations")
|
|
|
|
(description "KDecoration is a library to create window decorations.
|
|
|
|
These window decorations can be used by for example an X11 based window
|
|
|
|
manager which re-parents a Client window to a window decoration frame.")
|
|
|
|
(license license:lgpl3+)))
|
|
|
|
|
2017-06-09 11:20:42 +00:00
|
|
|
(define-public kscreenlocker
|
|
|
|
(package
|
|
|
|
(name "kscreenlocker")
|
2020-05-17 17:15:02 +00:00
|
|
|
(version "5.18.5")
|
2017-06-09 11:20:42 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://kde/stable/plasma/" version
|
|
|
|
"/kscreenlocker-" version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-05-17 17:15:02 +00:00
|
|
|
"1lhq9rxafbbxwpwzq8m25xi9hgcdfdfwl8hafqhygzp14z89q9ml"))))
|
2017-06-09 11:20:42 +00:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'check 'check-setup
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(system (string-append (assoc-ref inputs "xorg-server")
|
|
|
|
"/bin/Xvfb :1 -screen 0 640x480x24 &"))
|
|
|
|
(setenv "DISPLAY" ":1")
|
|
|
|
#t))
|
|
|
|
(delete 'check)
|
|
|
|
;; Tests use the installed library and require a DBus session.
|
|
|
|
(add-after 'install 'check
|
|
|
|
(lambda _
|
|
|
|
(setenv "CTEST_OUTPUT_ON_FAILURE" "1")
|
|
|
|
(invoke "dbus-launch" "ctest" "."))))))
|
|
|
|
(native-inputs
|
|
|
|
`(("extra-cmake-modules" ,extra-cmake-modules)
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
|
|
|
|
;; For tests.
|
|
|
|
("dbus" ,dbus)
|
gnu: Use the test-only Xorg variant for tests.
* gnu/packages/education.scm (gcompris-qt)[native-inputs]: Change XORG-SERVER
to XORG-SERVER-FOR-TESTS.
* gnu/packages/engineering.scm (pcb, qucs, openscad)[native-inputs]: Likewise.
* gnu/packages/gnome.scm (libbonoboui, d-feet, gspell, libdazzle, libhandy)[native-inputs]: Likewise.
* gnu/packages/gnupg.scm (parcimonie)[native-inputs]: Likewise.
* gnu/packages/graphics.scm (opensubdiv, rapicorn)[native-inputs]: Likewise.
* gnu/packages/gtk.scm (gtksourceview-2, gtksourceview)[native-inputs]: Likewise.
* gnu/packages/image-processing.scm (opencv)[native-inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (kconfig, kcoreaddons, kwidgetsaddons,
kwindowsystem, kdeclarative)[native-inputs]: Likewise.
* gnu/packages/kde-plasma.scm (kscreenlocker)[native-inputs]: Likewise.
* gnu/packages/messaging.scm (gajim)[native-inputs]: Likewise.
* gnu/packages/python-xyz.scm (python-seaborn)[native-inputs]: Likewise.
2019-11-27 21:19:13 +00:00
|
|
|
("xorg-server" ,xorg-server-for-tests)))
|
2017-06-09 11:20:42 +00:00
|
|
|
(inputs
|
|
|
|
`(("kcmutils" ,kcmutils)
|
|
|
|
("kcrash" ,kcrash)
|
|
|
|
("kdeclarative" ,kdeclarative)
|
|
|
|
("kglobalaccel" ,kglobalaccel)
|
|
|
|
("ki18n" ,ki18n)
|
|
|
|
("kidletime" ,kidletime)
|
|
|
|
("knotifications" ,knotifications)
|
|
|
|
("ktextwidgets" ,ktextwidgets)
|
|
|
|
("kwayland" ,kwayland)
|
|
|
|
("kwindowsystem" ,kwindowsystem)
|
|
|
|
("kxmlgui" ,kxmlgui)
|
|
|
|
("libseccomp" ,libseccomp) ;for sandboxing the look'n'feel package
|
|
|
|
("libxcursor" ,libxcursor) ;missing in CMakeList.txt
|
|
|
|
("libxi" ,libxi) ;XInput, required for grabbing XInput2 devices
|
|
|
|
("linux-pam" ,linux-pam)
|
|
|
|
("logind" ,elogind) ;optional loginctl support
|
|
|
|
("qtbase" ,qtbase)
|
|
|
|
("qtdeclarative" ,qtdeclarative)
|
|
|
|
("qtx11extras" ,qtx11extras)
|
|
|
|
("solid" ,solid)
|
|
|
|
("wayland" ,wayland)
|
|
|
|
("xcb-util-keysyms" ,xcb-util-keysyms)))
|
|
|
|
(home-page "https://cgit.kde.org/kscreenlocker.git")
|
|
|
|
(synopsis "Screen locking library")
|
|
|
|
(description
|
|
|
|
"@code{kscreenlocker} is a library for creating secure lock screens.")
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
2019-02-12 22:17:00 +00:00
|
|
|
(define-public libkscreen
|
|
|
|
(package
|
|
|
|
(name "libkscreen")
|
2020-05-17 17:15:02 +00:00
|
|
|
(version "5.18.5")
|
2019-02-12 22:17:00 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://kde/stable/plasma/" version "/"
|
|
|
|
name "-" version ".tar.xz"))
|
|
|
|
(sha256
|
2020-05-17 17:15:02 +00:00
|
|
|
(base32 "0z18djlfrj510dz3r2n8qx6fswdbp2qmhg5y3bn00hij02832qm9"))))
|
gnu: Cleanup KDE packages to use the update qt-build-system.
* gnu/packages/kde.scm (grantleetheme): [arguments] Remove.
(kdeconnect)[arguments]<phases>{check-setup}: Remove.
libkdegames: Use qt-build-system. [arguments]: Remove.
* gnu/packages/kde-frameworks.scm (kguiaddons, kitemmodels,
kitemviews, kplotting, sonnet, kcompletion, kcrash, kdesignerplugin,
kglobalaccel, kparts, ktextwidgets, khtml, kmediaplayer): Use
qt-build-system. [arguments]: Remove.
(kpeople): Use qt-build-system. [arguments]<phases>: Remove.
(kconfigwidgets, kwidgetsaddons) Use qt-build-system.
[arguments]<phases>{check-setup}: Remove.
* gnu/packages/kde-plasma.scm (kdecoration) Use qt-build-system.
[arguments]: Remove.
(libkscreen): Use qt-build-system. [arguments]<phases>: Remove.
(libksysguard): Use qt-build-system.
[arguments]<phases>{check-setup}: Remove.
* gnu/packages/kde-utils.scm (kronometer, rsibreak): [arguments]
Remove.
2020-01-23 20:13:42 +00:00
|
|
|
(build-system qt-build-system)
|
2019-02-12 22:17:00 +00:00
|
|
|
(native-inputs
|
|
|
|
`(("extra-cmake-modules" ,extra-cmake-modules)
|
|
|
|
;; For testing.
|
|
|
|
("dbus" ,dbus)))
|
|
|
|
(inputs
|
|
|
|
`(("kwayland" ,kwayland)
|
|
|
|
("libxrandr" ,libxrandr)
|
|
|
|
("qtbase" ,qtbase)
|
|
|
|
("qtx11extras" ,qtx11extras)))
|
|
|
|
(arguments
|
gnu: Cleanup KDE packages to use the update qt-build-system.
* gnu/packages/kde.scm (grantleetheme): [arguments] Remove.
(kdeconnect)[arguments]<phases>{check-setup}: Remove.
libkdegames: Use qt-build-system. [arguments]: Remove.
* gnu/packages/kde-frameworks.scm (kguiaddons, kitemmodels,
kitemviews, kplotting, sonnet, kcompletion, kcrash, kdesignerplugin,
kglobalaccel, kparts, ktextwidgets, khtml, kmediaplayer): Use
qt-build-system. [arguments]: Remove.
(kpeople): Use qt-build-system. [arguments]<phases>: Remove.
(kconfigwidgets, kwidgetsaddons) Use qt-build-system.
[arguments]<phases>{check-setup}: Remove.
* gnu/packages/kde-plasma.scm (kdecoration) Use qt-build-system.
[arguments]: Remove.
(libkscreen): Use qt-build-system. [arguments]<phases>: Remove.
(libksysguard): Use qt-build-system.
[arguments]<phases>{check-setup}: Remove.
* gnu/packages/kde-utils.scm (kronometer, rsibreak): [arguments]
Remove.
2020-01-23 20:13:42 +00:00
|
|
|
'(#:tests? #f)) ; FIXME: 55% tests passed, 5 tests failed out of 11
|
2019-02-12 22:17:00 +00:00
|
|
|
(home-page "https://community.kde.org/Solid/Projects/ScreenManagement")
|
|
|
|
(synopsis "KDE's screen management software")
|
|
|
|
(description "KScreen is the new screen management software for KDE Plasma
|
|
|
|
Workspaces which tries to be as magic and automatic as possible for users with
|
|
|
|
basic needs and easy to configure for those who want special setups.")
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
|
|
|
(define-public libksysguard
|
|
|
|
(package
|
|
|
|
(name "libksysguard")
|
2020-05-17 17:15:02 +00:00
|
|
|
(version "5.18.5")
|
2019-02-12 22:17:00 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://kde//stable/plasma/" version
|
|
|
|
"/libksysguard-" version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-05-17 17:15:02 +00:00
|
|
|
"02s40ahqp4r9amjshdf0dhw9hdggvica2jl426i4d9b950507myl"))))
|
2019-02-12 22:17:00 +00:00
|
|
|
(native-inputs
|
|
|
|
`(("extra-cmake-modules" ,extra-cmake-modules)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(inputs
|
|
|
|
`(("kconfigwidgets" ,kconfigwidgets)
|
|
|
|
("kiconthemes" ,kiconthemes)
|
|
|
|
("kwindowsystem" ,kwindowsystem)
|
|
|
|
("ki18n" ,ki18n)
|
|
|
|
("kauth" ,kauth)
|
|
|
|
("kcompletion" ,kcompletion)
|
|
|
|
("kconfig" ,kconfig)
|
|
|
|
("kcoreaddons" ,kcoreaddons)
|
2019-02-03 18:33:47 +00:00
|
|
|
("kglobalaccel" ,kglobalaccel)
|
|
|
|
("kio" ,kio)
|
2019-02-12 22:17:00 +00:00
|
|
|
("kwidgetsaddons" ,kwidgetsaddons)
|
|
|
|
("kservice" ,kservice)
|
|
|
|
("qtbase" ,qtbase)
|
|
|
|
("qtscript" ,qtscript)
|
|
|
|
("qtwebkit" ,qtwebkit)
|
|
|
|
("qtx11extras" ,qtx11extras)
|
|
|
|
("plasma" ,plasma-framework)
|
|
|
|
("zlib" ,zlib)))
|
gnu: Cleanup KDE packages to use the update qt-build-system.
* gnu/packages/kde.scm (grantleetheme): [arguments] Remove.
(kdeconnect)[arguments]<phases>{check-setup}: Remove.
libkdegames: Use qt-build-system. [arguments]: Remove.
* gnu/packages/kde-frameworks.scm (kguiaddons, kitemmodels,
kitemviews, kplotting, sonnet, kcompletion, kcrash, kdesignerplugin,
kglobalaccel, kparts, ktextwidgets, khtml, kmediaplayer): Use
qt-build-system. [arguments]: Remove.
(kpeople): Use qt-build-system. [arguments]<phases>: Remove.
(kconfigwidgets, kwidgetsaddons) Use qt-build-system.
[arguments]<phases>{check-setup}: Remove.
* gnu/packages/kde-plasma.scm (kdecoration) Use qt-build-system.
[arguments]: Remove.
(libkscreen): Use qt-build-system. [arguments]<phases>: Remove.
(libksysguard): Use qt-build-system.
[arguments]<phases>{check-setup}: Remove.
* gnu/packages/kde-utils.scm (kronometer, rsibreak): [arguments]
Remove.
2020-01-23 20:13:42 +00:00
|
|
|
(build-system qt-build-system)
|
2019-02-12 22:17:00 +00:00
|
|
|
(arguments
|
|
|
|
`(#:configure-flags
|
|
|
|
`(,(string-append "-DKDE_INSTALL_DATADIR="
|
|
|
|
(assoc-ref %outputs "out") "/share"))
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'configure 'patch-cmakelists
|
|
|
|
(lambda _
|
|
|
|
;; TODO: Verify: This should no longer be necessary, since
|
|
|
|
;; KF5AuthConfig.cmake.in contains this already.
|
|
|
|
(substitute* "processcore/CMakeLists.txt"
|
|
|
|
(("KAUTH_HELPER_INSTALL_DIR") "KDE_INSTALL_LIBEXECDIR"))))
|
|
|
|
(replace 'check
|
|
|
|
(lambda _
|
|
|
|
;; TODO: Fix this failing test-case
|
|
|
|
(invoke "ctest" "-E" "processtest"))))))
|
2019-02-15 10:24:49 +00:00
|
|
|
(home-page "https://userbase.kde.org/KSysGuard")
|
2019-02-12 22:17:00 +00:00
|
|
|
(synopsis "Network enabled task and system monitoring")
|
|
|
|
(description "KSysGuard can obtain information on system load and
|
|
|
|
manage running processes. It obtains this information by interacting
|
|
|
|
with a ksysguardd daemon, which may also run on a remote system.")
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|