unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#56594] [PATCH] gnu: linux: Add evtest.
@ 2022-07-16  7:00 Artyom V. Poptsov
  2022-07-24  7:01 ` Artyom V. Poptsov
  2022-08-03 10:17 ` bug#56594: " Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: Artyom V. Poptsov @ 2022-07-16  7:00 UTC (permalink / raw)
  To: 56594


[-- Attachment #1.1: Type: text/plain, Size: 36 bytes --]

Hello,

this patch adds evtest. [1]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-linux-Add-evtest.patch --]
[-- Type: text/x-diff, Size: 3600 bytes --]

From 5de46ed4acc56eb41e5ffe1bdacd0e05f86d49c9 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sat, 16 Jul 2022 09:51:26 +0300
Subject: [PATCH] gnu: linux: Add evtest.

* gnu/packages/linux.scm (evtest): New variable.
---
 gnu/packages/linux.scm | 59 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 48beae0e69..0bf6f917c0 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -9280,3 +9280,62 @@ (define-public touchegg
 gestures you make on your touchpad or touchscreen into visible actions in your
 desktop.")
     (license license:gpl3+)))
+
+(define-public evtest
+  (package
+    (name "evtest")
+    (version "1.35")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://gitlab.freedesktop.org/libevdev/evtest")
+                    (commit (string-append "evtest-" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "164prnw35kda6jfykl7h52lfzy99ma2lk029zscyqk766k19spf4"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:tests? #f ;No tests exist
+           #:make-flags #~(list (string-append "CC="
+                                               #$(cc-for-target))
+                                (string-append "PREFIX="
+                                               #$output))
+           #:phases #~(modify-phases %standard-phases
+                        (add-after 'unpack 'generate-doc
+                          (lambda _
+                            (invoke "asciidoc"
+                                    "-d"
+                                    "manpage"
+                                    "-b"
+                                    "docbook"
+                                    "-o"
+                                    "evtest.1.xml"
+                                    "evtest.txt")
+                            (invoke "xsltproc" "--nonet"
+                                    (string-append #$(this-package-native-input
+                                                      "docbook-xsl")
+                                                   "/xml/xsl/docbook-xsl-"
+                                                   #$(package-version (this-package-native-input
+                                                                       "docbook-xsl"))
+                                                   "/manpages/docbook.xsl")
+                                    "evtest.1.xml")))
+                        (replace 'bootstrap
+                          (lambda _
+                            (setenv "CONFIG_SHELL"
+                                    (which "sh"))
+                            (invoke "autoreconf" "-fi"))))))
+    (native-inputs (list autoconf
+                         automake
+                         bash-minimal
+                         xmlto
+                         docbook-xsl
+                         libxslt
+                         asciidoc))
+    (home-page "https://gitlab.freedesktop.org/libevdev/evtest")
+    (synopsis "Kernel evdev device information and monitor")
+    (description
+     "@code{evtest} is a tool to print @code{evdev} kernel events.  It reads
+directly from the kernel device and prints a device description and the events
+with the value and the symbolic name.")
+    (license license:gpl2+)))
-- 
2.34.1


[-- Attachment #1.3: Type: text/plain, Size: 296 bytes --]


Thanks,

- Artyom

References:
1. https://gitlab.freedesktop.org/libevdev/evtest

-- 
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 519 bytes --]

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

* [bug#56594] [PATCH] gnu: linux: Add evtest.
  2022-07-16  7:00 [bug#56594] [PATCH] gnu: linux: Add evtest Artyom V. Poptsov
@ 2022-07-24  7:01 ` Artyom V. Poptsov
  2022-08-03 10:17 ` bug#56594: " Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Artyom V. Poptsov @ 2022-07-24  7:01 UTC (permalink / raw)
  To: 56594

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

Gently ping.  :-)

- Artyom

-- 
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 519 bytes --]

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

* bug#56594: [PATCH] gnu: linux: Add evtest.
  2022-07-16  7:00 [bug#56594] [PATCH] gnu: linux: Add evtest Artyom V. Poptsov
  2022-07-24  7:01 ` Artyom V. Poptsov
@ 2022-08-03 10:17 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2022-08-03 10:17 UTC (permalink / raw)
  To: Artyom V. Poptsov; +Cc: 56594-done

Hi,

"Artyom V. Poptsov" <poptsov.artyom@gmail.com> skribis:

> From 5de46ed4acc56eb41e5ffe1bdacd0e05f86d49c9 Mon Sep 17 00:00:00 2001
> From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
> Date: Sat, 16 Jul 2022 09:51:26 +0300
> Subject: [PATCH] gnu: linux: Add evtest.
>
> * gnu/packages/linux.scm (evtest): New variable.

Applied with minor formatting changes (‘guix style’ isn’t doing a great
job here.)

Thanks,
Ludo’.




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

end of thread, other threads:[~2022-08-03 10:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-16  7:00 [bug#56594] [PATCH] gnu: linux: Add evtest Artyom V. Poptsov
2022-07-24  7:01 ` Artyom V. Poptsov
2022-08-03 10:17 ` bug#56594: " Ludovic Courtès

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).