guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

24/45: gnu: Add kscreen.


From: guix-commits
Subject: 24/45: gnu: Add kscreen.
Date: Sun, 31 Jan 2021 10:27:25 -0500 (EST)

htgoebel pushed a commit to branch wip-kde-plasma
in repository guix.

commit 15dc1b11580b52a7e9d10645d74d9ee4ddecafff
Author: Hartmut Goebel <h.goebel@crazy-compilers.com>
AuthorDate: Fri Jun 9 13:36:42 2017 +0200

    gnu: Add kscreen.
    
    * gnu/packages/kde-plasma.scm (kscreen): New variable.
---
 gnu/packages/kde-plasma.scm | 60 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/gnu/packages/kde-plasma.scm b/gnu/packages/kde-plasma.scm
index e2a9f09..2a7af14 100644
--- a/gnu/packages/kde-plasma.scm
+++ b/gnu/packages/kde-plasma.scm
@@ -414,6 +414,66 @@ Each of the red, green, and blue components can be 
adjusted individually, or
 all three components can be adjusted together.")
     (license license:gpl2+)))
 
+(define-public kscreen
+  (package
+    (name "kscreen")
+    (version "5.19.5")
+    (source
+     (origin
+      (method url-fetch)
+      (uri (string-append "mirror://kde/stable/plasma/" version
+                          "/kscreen-" version ".tar.xz"))
+      (sha256
+       (base32 "1s2ngg86128665mf6q7dnwv953jf2d4ad25klrm8wd85lj3wcwhd"))))
+    (build-system qt-build-system)
+    (arguments
+     `(#:tests? #f ;; TODO: tests fail even when blacklisted
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'check-setup
+           (lambda _
+             (setenv "HOME" (getcwd))
+             ;; The test suite requires a running X server.
+             (system "Xvfb :98 -screen 0 640x480x24 &")
+             (setenv "DISPLAY" ":98")
+             ;; blacklist failing test-functions TODO: make them pass
+             (with-output-to-file "bin/BLACKLIST"
+               (lambda _
+                 (display "[testNullConfig]\n*\n")))
+             #t)))))
+    (native-inputs
+     `(("extra-cmake-modules" ,extra-cmake-modules)
+       ("xorg-server" ,xorg-server))) ; required for the tests
+    (inputs
+     `(("kauth" ,kauth)
+       ("kcmutils" ,kcmutils)
+       ("kconfig" ,kconfig)
+       ("kconfigwidgets" ,kconfigwidgets)
+       ("kcoreaddons" ,kcoreaddons)
+       ("kdbusaddons" ,kdbusaddons)
+       ("kdeclarative" ,kdeclarative)
+       ("kded" ,kded) ;; missing in CMakeList.txt
+       ("kglobalaccel" ,kglobalaccel)
+       ("ki18n" ,ki18n)
+       ("kiconthemes" ,kiconthemes)
+       ("kwidgetsaddons" ,kwidgetsaddons)
+       ("kwindowsystem" ,kwindowsystem)
+       ("kxmlgui" ,kxmlgui)
+       ("libkscreen" ,libkscreen)
+       ("plasma-framework" ,plasma-framework)
+       ("qtbase" ,qtbase)
+       ("qtdeclarative" ,qtdeclarative)
+       ("qtsensors", qtsensors)))
+    (home-page "https://projects.kde.org/projects/extragear/base/kscreen";)
+    (synopsis "KDE monitor hotplug and screen handling")
+    (description "The KDE multiple monitor support is trying to be as smart as
+possible adapting the behavior of it to each use case making the configuration
+of monitors as simple as plugging them to your computer.
+
+This package contains the modules and plugins for monitor hot-plugging and
+automatic screen handling.")
+    (license license:lgpl2.1+)))
+
 (define-public kscreenlocker
   (package
     (name "kscreenlocker")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]