Subject: [PATCH] gnu: cutecom: Add cutecom v0.51.0

From: Aaron Covrig <[email-masked]>
Date: Fri, 11 Oct 2024 19:50:29 -0400

* gnu/packages/terminals.scm (cutecom): New variable
---
 gnu/packages/terminals.scm | 37 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 36 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index 701686258d..936d66a654 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -34,7 +34,7 @@
 ;;; Copyright © 2022 Felipe Balbi <[email-masked]>
 ;;; Copyright © 2022 ( <[email-masked]>
 ;;; Copyright © 2022, 2023 jgart <[email-masked]>
-;;; Copyright © 2023 Aaron Covrig <[email-masked]>
+;;; Copyright © 2023, 2024 Aaron Covrig <[email-masked]>
 ;;; Copyright © 2023 Foundation Devices, Inc. <[email-masked]>
 ;;; Copyright © 2023, 2024 Zheng Junjie <[email-masked]>
 ;;; Copyright © 2023 Jaeme Sifat <[email-masked]>
@@ -846,6 +846,41 @@ (define-public cool-retro-term
                 license:x11
                 license:bsd-3))))
 
+(define-public cutecom
+  (package
+    (name "cutecom")
+    (version "0.51.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://gitlab.com/cutecom/cutecom")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1zprabjs4z26hsb64fc3k790aiiqiz9d88j666xrzi4983m1bfv8"))))
+    (build-system cmake-build-system)
+    (inputs (list qtbase-5 qtserialport-5))
+    (arguments
+     `(#:tests? #f
+       #:phases (modify-phases %standard-phases
+                  ;; Patch in missing QT 5.15 required include
+                  (add-after 'unpack 'patch-includes
+                    (lambda _
+                      (substitute* "ctrlcharacterspopup.cpp"
+                        (("#include <QPainter>" all)
+                         (string-append all "\n" "#include <QPainterPath>"))))))))
+    (home-page "https://gitlab.com/cutecom/cutecom")
+    (synopsis "Graphical serial terminal")
+    (description
+     "CuteCom is a graphical serial terminal, like minicom.  Currently it runs
+on Linux (tested) and should run on FreeBSD, Mac OS X and maybe other systems as
+well (untested).  It is aimed mainly at hardware developers or other people who
+need a terminal to talk to their devices.  It is free software and distributed
+under the GNU General Public License Version 3.  It is written using the Qt
+library originally created by Trolltech.")
+    (license license:gpl3)))
+
 (define-public foot
   (package
     (name "foot")

base-commit: b8fd792ea267cb920da0651074a533d8abf00488
-- 
2.46.0