From patchwork Sun Apr 12 05:27:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Tildesley X-Patchwork-Id: 21201 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 2CC9527BBE4; Sun, 12 Apr 2020 06:28:35 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id E4CF627BBE1 for ; Sun, 12 Apr 2020 06:28:29 +0100 (BST) Received: from localhost ([::1]:59012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNVAT-0005sk-Bs for patchwork@mira.cbaines.net; Sun, 12 Apr 2020 01:28:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57533) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNVAC-0005sH-Uh for guix-patches@gnu.org; Sun, 12 Apr 2020 01:28:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNVA2-00063o-Su for guix-patches@gnu.org; Sun, 12 Apr 2020 01:28:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45748) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jNVA2-00063g-CR for guix-patches@gnu.org; Sun, 12 Apr 2020 01:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jNVA2-0002ff-9V for guix-patches@gnu.org; Sun, 12 Apr 2020 01:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40312] ([PATCH 0/3]: Add Piper and libratbag -- New patch set; minor fixes. Resent-From: Brendan Tildesley Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Apr 2020 05:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40312 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40312@debbugs.gnu.org Received: via spool by 40312-submit@debbugs.gnu.org id=B40312.158666925110223 (code B ref 40312); Sun, 12 Apr 2020 05:28:02 +0000 Received: (at 40312) by debbugs.gnu.org; 12 Apr 2020 05:27:31 +0000 Received: from localhost ([127.0.0.1]:57294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNV9O-0002ed-08 for submit@debbugs.gnu.org; Sun, 12 Apr 2020 01:27:31 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:60190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNV9L-0002eN-Dz for 40312@debbugs.gnu.org; Sun, 12 Apr 2020 01:27:20 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 490Kxr5kV1zQlHv for <40312@debbugs.gnu.org>; Sun, 12 Apr 2020 07:27:12 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1586669230; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YuogeLQ8JrVmeK4Cet9GOe9/adFtMXTIH4sSkrrLnJ0=; b=UJ4zER5XPvJcKn7fM3XbYzJLUcWwy0sPqAowDY77FVe2n0WiXHIkdH9taBi8s5d0XLEOVp Nvuwo9NAGQkW5pw7EhVRsitJrMneLPLaVd80M798wmTfSAGiOQfFARmDTUzl/n0DNOrfBF xChZTtZIQR0hOXV+LyBTwlBQmiwlqEm7f47RwlXdGq3TrRdv95wxv+eu5mIUMQVXTIh4EE KJCNDcE18f+7JBVaGSNwyzFf8spjrA6+ivZwEhZP+OWLNLraMmpqTDx/fsegacERba4fxq i6wzw4GyQRTHiqsRHH4oFY1bkaauPq6X2dScg+PcCc4lVLT+9qoyeOmQpH1sqg== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id Qpfk45XRk2o5 for <40312@debbugs.gnu.org>; Sun, 12 Apr 2020 07:27:09 +0200 (CEST) References: <99b3cb1d-94d0-d3b3-a64b-873eb5edea36@brendan.scot> From: Brendan Tildesley Message-ID: Date: Sun, 12 Apr 2020 15:27:03 +1000 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Rspamd-Queue-Id: 92A941739 X-Rspamd-Score: -6.69 / 15.00 / 15.00 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches This patch set (all attached) corrects my sloppy use of texinfo format in the python-evdev patch, and uses git-fetch instead of github archive tarballs. I originally sent these patches in when the mailing list was down so it all got lost to civilization I think. If you looking at reviewing this but have no interest in Piper/libratbag, at least it would be good to add python-evdev, as there is at least one other user that wishes to use it. Thanks. From f4395487a19f003450793b1274af3def611a43f2 Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Sat, 28 Mar 2020 19:14:45 +1100 Subject: [PATCH 3/3] gnu: Add piper. * gnu/packages/gnome (piper): New variable. --- gnu/packages/gnome.scm | 61 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index b1b4383f72..5d2144fceb 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -183,6 +183,7 @@ #:use-module (guix build-system meson) #:use-module (guix build-system python) #:use-module (guix build-system trivial) + #:use-module (guix build python-build-system) #:use-module (guix download) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) @@ -9956,3 +9957,63 @@ your operating-system definition: (simple-service 'ratbagd dbus-root-service-type (list libratbag)) ") (license license:expat))) + +(define-public piper + (package + (name "piper") + (version "0.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libratbag/piper.git") + (commit version))) + (sha256 + (base32 + "17h06j8lxpbfygq8fzycl7lml4vv7r05bsyhh3gga2hp0zms4mvg")))) + (build-system meson-build-system) + (native-inputs `(("pkg-config" ,pkg-config) + ("glib:bin" ,glib "bin") + ("gobject-introspection" ,gobject-introspection) + ("gettext" ,gettext-minimal) + ("python-flake8" ,python-flake8))) + (inputs `(("gtk:bin" ,gtk+ "bin") + ("gtk" ,gtk+) + ("adwaita-icon-theme" ,adwaita-icon-theme) + ("librsvg" ,librsvg) + ("python-pygobject" ,python-pygobject) + ("python-lxml" ,python-lxml) + ("python-evdev" ,python-evdev) + ("python-pycairo" ,python-pycairo))) + (arguments + `(#:imported-modules ((guix build python-build-system) + ,@%meson-build-system-modules) + #:modules (((guix build python-build-system) #:prefix python:) + (guix build meson-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'dont-update-gtk-icon-cache + (lambda _ + (substitute* "meson.build" + (("meson.add_install_script('meson_install.sh')") "")) + #t)) + ;; TODO: Switch to wrap-script when it is fixed + (add-after 'install 'wrap-python + (assoc-ref python:%standard-phases 'wrap)) + (add-after 'wrap-python 'wrap + (lambda* (#:key outputs #:allow-other-keys) + (wrap-program + (string-append (assoc-ref outputs "out" )"/bin/piper") + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))) + #t))))) + (home-page "https://github.com/libratbag/piper/") + (synopsis "Configure bindings and LEDs on gaming mice") + (description "Piper is a GTK+ application for configuring gaming mice with +onboard configuration for key bindings via libratbag. Piper requires a +@command{ratbagd} daemon running with root privileges. It can be run manually +as root, but is preferably configured as a dbus service that can launch on +demand. This can be configured by enabling the following service, provided +there is a dbus-service present: + (simple-service 'ratbagd dbus-root-service-type (list libratbag))") + (license license:gpl2))) -- 2.26.0