Subject: [PATCH 3/5] gnu: Add libevdevplus.

From: Alexandr Vityazev <[email-masked]>
Date: Mon, 27 Sep 2021 13:55:09 +0000

* gnu/packages/cpp.scm (libevdevplus): New variable.
---
 gnu/packages/cpp.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 26f933996c..cf063fc921 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -1037,6 +1037,42 @@ provides a number of utilities to make coding with expected cleaner.")
 uinput interface.")
     (license license:expat)))
 
+(define-public libevdevplus
+  (package
+    (name "libevdevplus")
+    (version "0.2.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/YukiWorkshop/libevdevPlus")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "09y65s16gch0w7fy1s9yjk9gz3bjzxix36h5wmwww6lkj2i1z3rj"))))
+    (build-system cmake-build-system)
+    (arguments
+     ;; No tests
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         ;; No rule to make target 'install' in version 0.2.1
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (inc (string-append out "/include"))
+                    (lib (string-append out "/lib")))
+               (install-file "libevdevPlus.a" lib)
+               (with-directory-excursion "../source"
+                 (install-file "CommonIncludes.hpp" inc)
+                 (install-file "evdevPlus.hpp" inc)
+                 (install-file "InputEvent.hpp" inc))))))))
+    (home-page "https://github.com/YukiWorkshop/libevdevPlus")
+    (synopsis "Easy-to-use event device library in C++")
+    (description "@code{libevdevPlus} is a C++ event device library.")
+    (license license:expat)))
+
 (define-public magic-enum
   (package
     (name "magic-enum")
-- 
2.33.0

-- 

Alexandr Vityazev