[PATCH] gnu: Add AntiMicroX.

  • Done
  • quality assurance status badge
Details
3 participants
  • Eric Bavier
  • Liliana Marie Prikler
  • Tobias Geerinckx-Rice
Owner
unassigned
Submitted by
Eric Bavier
Severity
normal
E
E
Eric Bavier wrote on 20 Sep 04:05 +0200
(address . guix-patches@gnu.org)(name . Eric Bavier)(address . bavier@posteo.net)
a807ac8eb404702fb5304451a333c804b3716eab.1726797896.git.bavier@posteo.net
* gnu/packages/games.scm (antimicrox): New variable.

Change-Id: Ie159edf259bba0aa06ff60c074fec4457b409d12
---
gnu/packages/games.scm | 52 +++++++++++++++++++++++++++++++++++++++++-
1 file changed, 51 insertions(+), 1 deletion(-)

Toggle diff (81 lines)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 213c4c598d..a1b27306d2 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -2,7 +2,7 @@
;;; Copyright © 2013 John Darrington <jmd@gnu.org>
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2014, 2015 David Thompson <dthompson2@worcester.edu>
-;;; Copyright © 2014-2023 Eric Bavier <bavier@posteo.net>
+;;; Copyright © 2014-2024 Eric Bavier <bavier@posteo.net>
;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
;;; Copyright © 2014, 2015, 2018, 2019, 2021 Ludovic Courtès <ludo@gnu.org>
@@ -170,6 +170,7 @@ (define-module (gnu packages games)
#:use-module (gnu packages image)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages javascript)
+ #:use-module (gnu packages kde-frameworks)
#:use-module (gnu packages less)
#:use-module (gnu packages lesstif)
#:use-module (gnu packages libcanberra)
@@ -485,6 +486,55 @@ (define-public anarch
Doom clone shooter game.")
(license license:cc0))))
+(define-public antimicrox
+ (package
+ (name "antimicrox")
+ (version "3.4.1")
+ (home-page "https://github.com/AntiMicroX/antimicrox")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "04yb5nppn751asbihr90sqk5imamc937886lc24cihhgp0sila8y"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:tests? #f ; Tests require Qt5
+ #:configure-flags
+ #~(list "-DCHECK_FOR_UPDATES=NO"
+ "-DWITH_TESTS=NO"
+ #$(string-append "-DANTIMICROX_PKG_VERSION=" version))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-installation-target
+ (lambda _
+ (substitute* "CMakeLists.txt"
+ (("/usr(/lib/udev/rules.d)" _ lib)
+ (string-append #$output lib))))))))
+ (native-inputs
+ (list extra-cmake-modules
+ gettext-minimal
+ itstool
+ qttools))
+ (inputs
+ (list libxtst
+ libx11
+ qtbase
+ sdl2))
+ (synopsis "Control your system with a gamepad")
+ (description
+ "AntiMicroX is a graphical program used to map gamepad keys to keyboard, mouse,
+scripts, and macros. Useful for controlling your system with a gamepad or
+playing games that don't natively support gamepads. It can also be used for
+generating SDL2 configuration (useful for mapping atypical gamepads to generic
+ones). It support X.org and Wayland.")
+ (license license:gpl3+)))
+
(define-public armagetronad
(package
(name "armagetronad")

base-commit: 6ea75bb9bcc52521f0bb3f121799745fdc17f1c9
--
2.46.0
L
L
Liliana Marie Prikler wrote on 20 Sep 07:24 +0200
bd7bcbc4ed5bedb1ca19f9fde9e6b47e2d4f452d.camel@gmail.com
Am Freitag, dem 20.09.2024 um 02:05 +0000 schrieb Eric Bavier:
Toggle quote (53 lines)
> * gnu/packages/games.scm (antimicrox): New variable.
>
> Change-Id: Ie159edf259bba0aa06ff60c074fec4457b409d12
> ---
>  gnu/packages/games.scm | 52
> +++++++++++++++++++++++++++++++++++++++++-
>  1 file changed, 51 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
> index 213c4c598d..a1b27306d2 100644
> --- a/gnu/packages/games.scm
> +++ b/gnu/packages/games.scm
> @@ -2,7 +2,7 @@
>  ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
>  ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
>  ;;; Copyright © 2014, 2015 David Thompson <dthompson2@worcester.edu>
> -;;; Copyright © 2014-2023 Eric Bavier <bavier@posteo.net>
> +;;; Copyright © 2014-2024 Eric Bavier <bavier@posteo.net>
>  ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
>  ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
>  ;;; Copyright © 2014, 2015, 2018, 2019, 2021 Ludovic Courtès
> <ludo@gnu.org>
> @@ -170,6 +170,7 @@ (define-module (gnu packages games)
>    #:use-module (gnu packages image)
>    #:use-module (gnu packages imagemagick)
>    #:use-module (gnu packages javascript)
> +  #:use-module (gnu packages kde-frameworks)
>    #:use-module (gnu packages less)
>    #:use-module (gnu packages lesstif)
>    #:use-module (gnu packages libcanberra)
> @@ -485,6 +486,55 @@ (define-public anarch
>  Doom clone shooter game.")
>        (license license:cc0))))
>  
> +(define-public antimicrox
> +  (package
> +   (name "antimicrox")
> +   (version "3.4.1")
> +   (home-page "https://github.com/AntiMicroX/antimicrox")
> +   (source
> +    (origin
> +     (method git-fetch)
> +     (uri (git-reference
> +           (url home-page)
> +           (commit version)))
> +     (file-name (git-file-name name version))
> +     (sha256
> +      (base32
> +       "04yb5nppn751asbihr90sqk5imamc937886lc24cihhgp0sila8y"))))
> +   (build-system cmake-build-system)
> +   (arguments
> +    (list
> +     #:tests? #f                        ; Tests require Qt5
Is there a reason to build it with Qt 6 then? ?
Alternatively, we might want to check if the tests can be built with Qt
6. This requires a little more work.
Toggle quote (33 lines)
> +     #:configure-flags
> +     #~(list "-DCHECK_FOR_UPDATES=NO"
> +             "-DWITH_TESTS=NO"
> +             #$(string-append "-DANTIMICROX_PKG_VERSION=" version))
> +     #:phases
> +     #~(modify-phases %standard-phases
> +         (add-after 'unpack 'patch-installation-target
> +           (lambda _
> +             (substitute* "CMakeLists.txt"
> +               (("/usr(/lib/udev/rules.d)" _ lib)
> +                (string-append #$output lib))))))))
> +   (native-inputs
> +    (list extra-cmake-modules
> +          gettext-minimal
> +          itstool
> +          qttools))
> +   (inputs
> +    (list libxtst
> +          libx11
> +          qtbase
> +          sdl2))
> +   (synopsis "Control your system with a gamepad")
> +   (description
> +    "AntiMicroX is a graphical program used to map gamepad keys to
> keyboard, mouse,
> +scripts, and macros.  Useful for controlling your system with a
> gamepad or
> +playing games that don't natively support gamepads.  It can also be
> used for
> +generating SDL2 configuration (useful for mapping atypical gamepads
> to generic
> +ones).  It support X.org and Wayland.")
> +   (license license:gpl3+)))
The description could use some polishing. It should consist of
complete sentences and there are some minor grammar mistakes as well.
Also, I don't see a home-page (how does guix not complain about this?)

Cheers
T
T
Tobias Geerinckx-Rice wrote on 20 Sep 07:58 +0200
7519A2B2-6698-4FA8-B61D-512FB488C6BD@tobias.gr
On 20 September 2024 05:24:05 UTC, Liliana Marie Prikler <liliana.prikler@gmail.com> wrote:
Toggle quote (2 lines)
>Also, I don't see a home-page (how does guix not complain about this?)

It's there, under version, but I prefer seeing it in its conventional spot above synopsis too.



Kind regards,

T G-R

Sent on the go. Excuse or enjoy my brevity.
E
E
Eric Bavier wrote on 20 Sep 18:39 +0200
(name . Liliana Marie Prikler)(address . liliana.prikler@gmail.com)
d6ca74b1b79a910c9f2dfa738cb69c2a@posteo.net
Hi, thanks for reviewing.

On 20.09.2024 00:24, Liliana Marie Prikler wrote:
Toggle quote (8 lines)
> Am Freitag, dem 20.09.2024 um 02:05 +0000 schrieb Eric Bavier:
>> +   (arguments
>> +    (list
>> +     #:tests? #f                        ; Tests require Qt5
> Is there a reason to build it with Qt 6 then? ?
> Alternatively, we might want to check if the tests can be built with Qt
> 6. This requires a little more work.

I looked into this a little more. It appears that the tests themselves
are not maintained. E.g. the most recent changes are several years
behind other changes to the codebase, and there is at least one
egregious typo ("#inlude") that prevents them from compiling even with
Qt5. So maybe we disable with "Tests unmaintained" as the reason
instead.

Toggle quote (14 lines)
>> +   (description
>> +    "AntiMicroX is a graphical program used to map gamepad keys to
>> keyboard, mouse,
>> +scripts, and macros.  Useful for controlling your system with a
>> gamepad or
>> +playing games that don't natively support gamepads.  It can also be
>> used for
>> +generating SDL2 configuration (useful for mapping atypical gamepads
>> to generic
>> +ones).  It support X.org and Wayland.")
>> +   (license license:gpl3+)))
> The description could use some polishing. It should consist of
> complete sentences and there are some minor grammar mistakes as well.

Thanks, I've revised the description a bit in the attached updated
patch.

Toggle quote (2 lines)
> Also, I don't see a home-page (how does guix not complain about this?)

I placed home-page above source to avoid having to duplicate the github
address. There are about 452 other packages that do this.

--
`~Eric
From 4b5a4b6aa01810c6c5f84b0c143a3d3997e57d18 Mon Sep 17 00:00:00 2001
Message-ID: <4b5a4b6aa01810c6c5f84b0c143a3d3997e57d18.1726850221.git.bavier@posteo.net>
From: Eric Bavier <bavier@posteo.net>
Date: Thu, 19 Sep 2024 19:21:43 -0500
Subject: [PATCH] gnu: Add AntiMicroX.

* gnu/packages/games.scm (antimicrox): New variable.

Change-Id: Ie159edf259bba0aa06ff60c074fec4457b409d12
---
gnu/packages/games.scm | 51 +++++++++++++++++++++++++++++++++++++++++-
1 file changed, 50 insertions(+), 1 deletion(-)

Toggle diff (80 lines)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 213c4c598d..44316f0f71 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -2,7 +2,7 @@
;;; Copyright © 2013 John Darrington <jmd@gnu.org>
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2014, 2015 David Thompson <dthompson2@worcester.edu>
-;;; Copyright © 2014-2023 Eric Bavier <bavier@posteo.net>
+;;; Copyright © 2014-2024 Eric Bavier <bavier@posteo.net>
;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
;;; Copyright © 2014, 2015, 2018, 2019, 2021 Ludovic Courtès <ludo@gnu.org>
@@ -170,6 +170,7 @@ (define-module (gnu packages games)
#:use-module (gnu packages image)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages javascript)
+ #:use-module (gnu packages kde-frameworks)
#:use-module (gnu packages less)
#:use-module (gnu packages lesstif)
#:use-module (gnu packages libcanberra)
@@ -485,6 +486,54 @@ (define-public anarch
Doom clone shooter game.")
(license license:cc0))))
+(define-public antimicrox
+ (package
+ (name "antimicrox")
+ (version "3.4.1")
+ (home-page "https://github.com/AntiMicroX/antimicrox")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "04yb5nppn751asbihr90sqk5imamc937886lc24cihhgp0sila8y"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:tests? #f ; Tests are unmaintained
+ #:configure-flags
+ #~(list "-DCHECK_FOR_UPDATES=NO"
+ "-DWITH_TESTS=NO"
+ #$(string-append "-DANTIMICROX_PKG_VERSION=" version))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-installation-target
+ (lambda _
+ (substitute* "CMakeLists.txt"
+ (("/usr(/lib/udev/rules.d)" _ lib)
+ (string-append #$output lib))))))))
+ (native-inputs
+ (list extra-cmake-modules
+ gettext-minimal
+ itstool
+ qttools))
+ (inputs
+ (list libxtst
+ libx11
+ qtbase
+ sdl2))
+ (synopsis "Control your system with a gamepad")
+ (description
+ "AntiMicroX is a graphical program used to map gamepad keys to keyboard, mouse,
+scripts, and macros. With it you can control your system using a gamepad or
+play games that don't natively support gamepads. It can also be used for
+generating SDL2 configurations. It supports X.org and Wayland.")
+ (license license:gpl3+)))
+
(define-public armagetronad
(package
(name "armagetronad")

base-commit: 6ea75bb9bcc52521f0bb3f121799745fdc17f1c9
--
2.46.0
E
E
Eric Bavier wrote on 2 Oct 06:11 +0200
(name . Tobias Geerinckx-Rice)(address . me@tobias.gr)
cd7a488eb1d739f7921350525eea3f74@posteo.net
Hearing no more comments, I've pushed the latest patch with a slightly
reworded description in commit b9f2ff6b8d361fa40f6db08378cb47afa2652c4e

Thanks for reviewing,
--
`~Eric
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 73373@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 73373
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch