unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#71403] [PATCH] gnu: libinput-gestures: Update to 2.76.
@ 2024-06-07  2:27 kiasoc5 via Guix-patches via
  2024-06-07  2:35 ` [bug#71403] [PATCH v2] gnu: Add libinput-gestures kiasoc5 via Guix-patches via
  2024-06-29  9:49 ` [bug#71403] Comment Andreas Enge
  0 siblings, 2 replies; 3+ messages in thread
From: kiasoc5 via Guix-patches via @ 2024-06-07  2:27 UTC (permalink / raw)
  To: 71403; +Cc: kiasoc5

* 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





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#71403] [PATCH v2] gnu: Add libinput-gestures.
  2024-06-07  2:27 [bug#71403] [PATCH] gnu: libinput-gestures: Update to 2.76 kiasoc5 via Guix-patches via
@ 2024-06-07  2:35 ` kiasoc5 via Guix-patches via
  2024-06-29  9:49 ` [bug#71403] Comment Andreas Enge
  1 sibling, 0 replies; 3+ messages in thread
From: kiasoc5 via Guix-patches via @ 2024-06-07  2:35 UTC (permalink / raw)
  To: 71403; +Cc: kiasoc5

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





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#71403] Comment
  2024-06-07  2:27 [bug#71403] [PATCH] gnu: libinput-gestures: Update to 2.76 kiasoc5 via Guix-patches via
  2024-06-07  2:35 ` [bug#71403] [PATCH v2] gnu: Add libinput-gestures kiasoc5 via Guix-patches via
@ 2024-06-29  9:49 ` Andreas Enge
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Enge @ 2024-06-29  9:49 UTC (permalink / raw)
  To: 71403

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-29  9:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-07  2:27 [bug#71403] [PATCH] gnu: libinput-gestures: Update to 2.76 kiasoc5 via Guix-patches via
2024-06-07  2:35 ` [bug#71403] [PATCH v2] gnu: Add libinput-gestures kiasoc5 via Guix-patches via
2024-06-29  9:49 ` [bug#71403] Comment Andreas Enge

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).