From patchwork Fri Jun 7 02:35:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kiasoc5 X-Patchwork-Id: 65204 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6E7E727BBEA; Fri, 7 Jun 2024 03:38:03 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CC54227BBE2 for ; Fri, 7 Jun 2024 03:38:02 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFPUD-0007yy-NP; Thu, 06 Jun 2024 22:37:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFPUB-0007y5-Q6 for guix-patches@gnu.org; Thu, 06 Jun 2024 22:37:47 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sFPUB-00010K-I8 for guix-patches@gnu.org; Thu, 06 Jun 2024 22:37:47 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFPUP-0005oz-Sh for guix-patches@gnu.org; Thu, 06 Jun 2024 22:38:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71403] [PATCH v2] gnu: Add libinput-gestures. References: <686648def1516cc739f7fabe771f4c92c0f5afc5.1717727224.git.kiasoc5@disroot.org> In-Reply-To: <686648def1516cc739f7fabe771f4c92c0f5afc5.1717727224.git.kiasoc5@disroot.org> Resent-From: kiasoc5 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 07 Jun 2024 02:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71403 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71403@debbugs.gnu.org Cc: kiasoc5 Received: via spool by 71403-submit@debbugs.gnu.org id=B71403.171772784622280 (code B ref 71403); Fri, 07 Jun 2024 02:38:01 +0000 Received: (at 71403) by debbugs.gnu.org; 7 Jun 2024 02:37:26 +0000 Received: from localhost ([127.0.0.1]:36569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFPTq-0005nG-Cz for submit@debbugs.gnu.org; Thu, 06 Jun 2024 22:37:26 -0400 Received: from layka.disroot.org ([178.21.23.139]:52266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFPTo-0005mz-3I for 71403@debbugs.gnu.org; Thu, 06 Jun 2024 22:37:25 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8FC5344DB1; Fri, 7 Jun 2024 04:37:08 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 57PmEJdqBAXR; Fri, 7 Jun 2024 04:37:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1717727827; bh=haveF0cA2wlf1OoMcsePOb2bsQQrOvb4zrjRd7iAzD4=; h=From:To:Cc:Subject:Date; b=BQ948Qn4PqNxYOreGDf5q8XT9zNdv+zcbqBRy5zUOeVHwn+8o84bTrUMF60iO/d0T iHaaLJpD/KHZNhfRd11bRtV44K4RffUAmlQFWbm/TmLhNi0j1WNIG57tz+QrimSoZj fNGcY8292fa2RY9e2ulTLMX4Vlb5HfbOA2LlS8/7C8H/BgZG//7FwmzyYW/2XQ3OMY Y7mXuoBw/HuxprqEeTfB8mUZ3mv7GYU9jzCdC1PcrpiNKPADZHlp24LlYvJ3m+5XKd nsVH7E454EFrECyVyjUrQGtiyYVCin3yD9KLi4sSSMGpKOiGglb6ud2flR1MRQSsk3 2AnQH/8/WJCJA== Date: Thu, 6 Jun 2024 22:35:54 -0400 Message-ID: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: kiasoc5 X-ACL-Warn: , kiasoc5 via Guix-patches X-Patchwork-Original-From: kiasoc5 via Guix-patches via From: kiasoc5 Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches 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(+) base-commit: 580d77d0fb12448ef1621699cc0c56e787e2aadb 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")