From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:37566) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIlsB-0000QM-EZ for guix-patches@gnu.org; Mon, 30 Mar 2020 00:18:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIlsA-0006VO-44 for guix-patches@gnu.org; Mon, 30 Mar 2020 00:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48789) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIlsA-0006V7-0m for guix-patches@gnu.org; Mon, 30 Mar 2020 00:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jIls9-00018N-UK for guix-patches@gnu.org; Mon, 30 Mar 2020 00:18:01 -0400 Subject: [bug#40312] [PATCH 2/3] gnu: Add libratbag. Resent-Message-ID: From: Brendan Tildesley Date: Mon, 30 Mar 2020 15:16:50 +1100 Message-Id: <20200330041651.16348-2-mail@brendan.scot> In-Reply-To: <20200330041651.16348-1-mail@brendan.scot> References: <20200330041651.16348-1-mail@brendan.scot> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40312@debbugs.gnu.org * gnu/packages/gnome.scm (libratbag): New variable. --- gnu/packages/gnome.scm | 71 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index bc78910c64..d44e9ea5e7 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -27,7 +27,7 @@ ;;; Copyright © 2017, 2018 nee ;;; Copyright © 2017 Chris Marusich ;;; Copyright © 2017 Mohammed Sadiq -;;; Copyright © 2017 Brendan Tildesley +;;; Copyright © 2017, 2020 Brendan Tildesley ;;; Copyright © 2017, 2018 Rutger Helling ;;; Copyright © 2018 Jovany Leandro G.C ;;; Copyright © 2018 Vasile Dumitrascu @@ -159,10 +159,12 @@ #:use-module (gnu packages speech) #:use-module (gnu packages spice) #:use-module (gnu packages sqlite) + #:use-module (gnu packages swig) #:use-module (gnu packages ssh) #:use-module (gnu packages tex) #:use-module (gnu packages time) #:use-module (gnu packages tls) + #:use-module (gnu packages valgrind) #:use-module (gnu packages version-control) #:use-module (gnu packages video) #:use-module (gnu packages virtualization) @@ -9889,3 +9891,70 @@ to.") license:public-domain ;; snowball license:bsd-2)))) + +(define-public libratbag + (package + (name "libratbag") + (version "0.13") + (source (origin + (method url-fetch) + (uri + (string-append + "https://github.com/libratbag/libratbag/archive/v" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1j8ryzrljqcp0c1wqzzpgr5fqdmwqr5z99avkxwfs7kqwm8ii9xh")))) + (build-system meson-build-system) + (native-inputs `(("pkg-config" ,pkg-config) + ("check" ,check) + ("swig" ,swig) + ("valgrind" ,valgrind))) + (inputs `(("glib" ,glib) + ("json-glib" ,json-glib) + ("libevdev" ,libevdev) + ("udev" ,eudev) + ("libunistring" ,libunistring) + ("python-pygobject" ,python-pygobject) + ("python-evdev" ,python-evdev) + ("libsystemd" ,elogind))) + (arguments + `(#:configure-flags + (list "-Dsystemd=false" + "-Dlogind-provider=elogind") + #:phases + (modify-phases %standard-phases + ;; (add-after 'install 'wrap-python + ;; (assoc-ref python:%standard-phases 'wrap)) + (add-after 'install 'wrap + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (site (string-append + "/lib/python" + ,(version-major+minor (package-version python)) + "/site-packages")) + (evdev (string-append + (assoc-ref inputs "python-evdev") site)) + (pygo (string-append + (assoc-ref inputs "python-pygobject") site)) + (python-wrap + `("PYTHONPATH" = (,evdev ,pygo)))) + (wrap-program (string-append out "/bin/" "ratbagctl") + python-wrap) + #t)))))) + (home-page "https://github.com/libratbag/libratbag") + (synopsis "DBus daemon and utility for configuring gaming mice") + (description "libratbag provides @command{ratbagd}, a DBus daemon to +configure input devices, mainly gaming mice. The daemon provides a generic +way to access the various features exposed by these mice and abstracts away +hardware-specific and kernel-specific quirks. There is also the +@command{ratbagctl} command line interface for configuring devices. + +libratbag currently supports devices from Logitech, Etekcity, GSkill, Roccat, +Steelseries. + +The ratbagd dbus service can be enabled by adding the following service to +your operating-system definition: +(simple-service 'ratbagd dbus-root-service-type (list libratbag)) +") + (license license:expat))) -- 2.25.2