GNU bug report logs - #71403
[PATCH] gnu: libinput-gestures: Update to 2.76.

Previous Next

Package: guix-patches;

Reported by: kiasoc5 <kiasoc5 <at> disroot.org>

Date: Fri, 7 Jun 2024 02:32:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 71403 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#71403; Package guix-patches. (Fri, 07 Jun 2024 02:32:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to kiasoc5 <kiasoc5 <at> disroot.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 07 Jun 2024 02:32:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: kiasoc5 <kiasoc5 <at> disroot.org>
To: guix-patches <at> gnu.org
Cc: kiasoc5 <kiasoc5 <at> disroot.org>
Subject: [PATCH] gnu: libinput-gestures: Update to 2.76.
Date: Thu,  6 Jun 2024 22:27:04 -0400
* gnu/packages/freedesktop.scm (libinput-gestures): Update to 2.76.

Change-Id: If01b291c6790539af22c508d764c5f09a92ec051
---
 gnu/packages/freedesktop.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index e29c289df2..79dd6d5015 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -747,7 +747,7 @@ (define-public libinput-minimal
 (define-public libinput-gestures
   (package
     (name "libinput-gestures")
-    (version "2.73")
+    (version "2.76")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -756,7 +756,7 @@ (define-public libinput-gestures
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "1klnc4y43maxpz7c6q0gc2gbly6jfcawnalx3f2jyc61zzgrxl3n"))))
+                "0x7gwdq7c7rahbfj6cdk19jgmm4g87r51i1229rq55wlzm1y1gsd"))))
     (build-system gnu-build-system)
     (arguments
      (list

base-commit: 580d77d0fb12448ef1621699cc0c56e787e2aadb
prerequisite-patch-id: 3105d2dda46daf29f7ea4fd49a21a44826cb965a
-- 
2.45.1





Information forwarded to guix-patches <at> gnu.org:
bug#71403; Package guix-patches. (Fri, 07 Jun 2024 02:38:01 GMT) Full text and rfc822 format available.

Message #8 received at 71403 <at> debbugs.gnu.org (full text, mbox):

From: kiasoc5 <kiasoc5 <at> disroot.org>
To: 71403 <at> debbugs.gnu.org
Cc: kiasoc5 <kiasoc5 <at> disroot.org>
Subject: [PATCH v2] gnu: Add libinput-gestures.
Date: Thu,  6 Jun 2024 22:35:54 -0400
Forgot to rebase this forgotten 2-year-old patch!

* gnu/packages/freedesktop.scm (libinput-gestures): New variable.
---
 gnu/packages/freedesktop.scm | 56 ++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 6941450436..79dd6d5015 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -744,6 +744,62 @@ (define-public libinput-minimal
                "-Ddebug-gui=false"    ;requires gtk+@3
                ,flags))))))
 
+(define-public libinput-gestures
+  (package
+    (name "libinput-gestures")
+    (version "2.76")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/bulletmark/libinput-gestures")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0x7gwdq7c7rahbfj6cdk19jgmm4g87r51i1229rq55wlzm1y1gsd"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list
+      #:make-flags
+      #~(list (string-append "DESTDIR=" #$output))
+      #:phases
+      #~(modify-phases %standard-phases
+          (delete 'configure) ; no configure
+          (add-before 'install 'fix-hardcoded-paths
+            (lambda _
+              (substitute* "libinput-gestures"
+                (("PROGPATH = Path(sys.argv[0])")
+                 "PROGPATH = Path(\"libinput-gestures\")")
+                (("'libinput'")
+                 (string-append
+                  "'" (search-input-file %build-inputs "/bin/libinput") "'")))))
+          (add-before 'install 'delete-mentions-of-usr
+            (lambda _
+              (substitute* "libinput-gestures-setup"
+                (("/usr") ""))))
+          ;; TODO: replace this phase
+          (add-before 'patch-dot-desktop-files 'patch-desktop-file-manually
+            (lambda _
+              (substitute* "libinput-gestures.desktop"
+                (("/usr/bin/libinput-gestures")
+                  (string-append #$output "/bin/libinput-gestures")))))
+          (add-after 'install 'remove-systemd-service
+            (lambda _
+              (delete-file-recursively (string-append #$output "/lib"))))
+          (delete 'check) ; no tests
+          )))
+    (inputs
+     (list python libinput hicolor-icon-theme))
+    (home-page "https://github.com/bulletmark/libinput-gestures")
+    (synopsis "Actions gestures on your touchpad using libinput")
+    (description
+     "@code{libinput-gestures} is a utility which reads libinput gestures from
+your touchpad and maps them to gestures you configure in a configuration file. 
+Each gesture can be configured to activate a shell command. It can be used for
+X window managers and Wayland compositors that do not support libinput gestures
+natively.")
+    (license license:gpl3+)))
+
 (define-public libxdg-basedir
   (package
     (name "libxdg-basedir")

base-commit: 580d77d0fb12448ef1621699cc0c56e787e2aadb
-- 
2.45.1





Information forwarded to guix-patches <at> gnu.org:
bug#71403; Package guix-patches. (Sat, 29 Jun 2024 09:50:02 GMT) Full text and rfc822 format available.

Message #11 received at 71403 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: 71403 <at> debbugs.gnu.org
Subject: Comment
Date: Sat, 29 Jun 2024 11:49:35 +0200
Hello,

I was about to apply your patch, but then I saw a line
;; TODO: replace this phase

Is it still relevant? To the untrained eye the phase looks okay.

Concerning the description, I would suggest the following:
     "@code{libinput-gestures} is a utility which reads libinput gestures from
the touchpad and maps them to gestures defined in a configuration file.
Each gesture can be configured to activate a shell command. It can be used for
X window managers and Wayland compositors that do not support libinput gestures
natively."
to remove the "you" and one of many "configur{e,ation}".

Andreas





This bug report was last modified 175 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.