all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: kiasoc5 via Guix-patches via <guix-patches@gnu.org>
To: 71403@debbugs.gnu.org
Cc: kiasoc5 <kiasoc5@disroot.org>
Subject: [bug#71403] [PATCH v2] gnu: Add libinput-gestures.
Date: Thu,  6 Jun 2024 22:35:54 -0400	[thread overview]
Message-ID: <b2605ae412cad93c46f5be64a2b3110ae73f6137.1717727754.git.kiasoc5@disroot.org> (raw)
In-Reply-To: <686648def1516cc739f7fabe771f4c92c0f5afc5.1717727224.git.kiasoc5@disroot.org>

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





  reply	other threads:[~2024-06-07  2:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2024-06-29  9:49 ` [bug#71403] Comment Andreas Enge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b2605ae412cad93c46f5be64a2b3110ae73f6137.1717727754.git.kiasoc5@disroot.org \
    --to=guix-patches@gnu.org \
    --cc=71403@debbugs.gnu.org \
    --cc=kiasoc5@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.