unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#73373] [PATCH] gnu: Add AntiMicroX.
@ 2024-09-20  2:05 Eric Bavier
  2024-09-20  5:24 ` Liliana Marie Prikler
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Bavier @ 2024-09-20  2:05 UTC (permalink / raw)
  To: 73373
  Cc: Eric Bavier, Adam Faiz, Liliana Marie Prikler,
	宋文武

* 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
+     #: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





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#73373] [PATCH] gnu: Add AntiMicroX.
  2024-09-20  2:05 [bug#73373] [PATCH] gnu: Add AntiMicroX Eric Bavier
@ 2024-09-20  5:24 ` Liliana Marie Prikler
  2024-09-20  5:58   ` Tobias Geerinckx-Rice via Guix-patches via
  0 siblings, 1 reply; 3+ messages in thread
From: Liliana Marie Prikler @ 2024-09-20  5:24 UTC (permalink / raw)
  To: Eric Bavier, 73373; +Cc: 宋文武, Adam Faiz

Am Freitag, dem 20.09.2024 um 02:05 +0000 schrieb Eric Bavier:
> * 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.
> +     #: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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#73373] [PATCH] gnu: Add AntiMicroX.
  2024-09-20  5:24 ` Liliana Marie Prikler
@ 2024-09-20  5:58   ` Tobias Geerinckx-Rice via Guix-patches via
  0 siblings, 0 replies; 3+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2024-09-20  5:58 UTC (permalink / raw)
  To: 73373, liliana.prikler, bavier; +Cc: Adam Faiz, 宋文武

On 20 September 2024 05:24:05 UTC, Liliana Marie Prikler <liliana.prikler@gmail.com> wrote:
>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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-20  6:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-20  2:05 [bug#73373] [PATCH] gnu: Add AntiMicroX Eric Bavier
2024-09-20  5:24 ` Liliana Marie Prikler
2024-09-20  5:58   ` Tobias Geerinckx-Rice via Guix-patches via

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).