Subject: [bug#38553] [PATCH 05/12] gnu: Add kmousetool.

From: Hartmut Goebel <[email-masked]>
Date: Mon, 9 Dec 2019 22:53:51 +0100

* gnu/packages/kde-utils.scm (kmousetool): New variable.
---
 gnu/packages/kde-utils.scm | 42 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 41 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/kde-utils.scm b/gnu/packages/kde-utils.scm
index 722a9aaaf3..907efc52d9 100644
--- a/gnu/packages/kde-utils.scm
+++ b/gnu/packages/kde-utils.scm
@@ -23,7 +23,8 @@
   #:use-module (guix packages)
   #:use-module (gnu packages kde-frameworks)
   #:use-module (gnu packages kde-plasma)
-  #:use-module (gnu packages qt))
+  #:use-module (gnu packages qt)
+  #:use-module (gnu packages xorg))
 
 (define-public kate
   (package
@@ -122,3 +123,42 @@ as you would use a lens to magnify a newspaper fine-print or a photograph.
 This application is useful for a variety of people: from researchers to
 artists to web-designers to people with low vision.")
     (license (list license:gpl2+ license:fdl1.2+))))
+
+(define-public kmousetool
+  (package
+    (name "kmousetool")
+    (version "19.08.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://kde/stable/applications/" version
+                           "/src/kmousetool-" version ".tar.xz"))
+       (sha256
+        (base32 "169kk20mkm29nycg2vs1k5cs22gzchqs9hbfd661cy2l7n4d8d04"))))
+    (properties `((tags . ("Desktop" "KDE" "Utilities"))))
+    (build-system qt-build-system)
+    (native-inputs
+     `(("extra-cmake-modules" ,extra-cmake-modules)
+       ("kdoctools" ,kdoctools)))
+    (inputs
+     `(("kauth" ,kauth)
+       ("kcoreaddons" ,kcoreaddons)
+       ("kconfigwidgets", kconfigwidgets)
+       ("kdbusaddons" ,kdbusaddons)
+       ("ki18n" ,ki18n)
+       ("kiconthemes" ,kiconthemes)
+       ("knotifications" ,knotifications)
+       ("kxmlgui" ,kxmlgui)
+       ("kwindowsystem" ,kwindowsystem)
+       ("libxtst" ,libxtst)
+       ("libxt" ,libxt)
+       ("phonon" ,phonon)
+       ("oxygen-icons" ,oxygen-icons) ;; default icon set
+       ("qtbase" ,qtbase)))
+    (home-page "https://kde.org/applications/utilities/org.kde.kmousetool")
+    (synopsis "Automatic mouse click and mouse manipulation tool for the
+disabled")
+    (description "KMouseTool clicks the mouse whenever the mouse cursor pauses
+briefly.  It was designed to help those with repetitive strain injuries, for
+whom pressing buttons hurts.")
+    (license (list license:gpl2+ license:fdl1.2+))))
-- 
2.21.0