unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Cairn via Guix-patches via <guix-patches@gnu.org>
To: "58481@debbugs.gnu.org" <58481@debbugs.gnu.org>
Subject: [bug#58481] [PATCH 4/9] gnu: Add qtserialport, version 6.3.1.
Date: Thu, 13 Oct 2022 05:39:23 +0000	[thread overview]
Message-ID: <ngkyUlmGgut35PNxTb1vkxoK74AUlf7pfWsKM0QnmURB1WE6CRJJla1P3gOPloPp1pITSjnCphwPQE5iVfnkVhkGRac-yneAGjV0gjG2Lmw=@pm.me> (raw)
In-Reply-To: <94mAek164ENauq8r9O2XguR2a7BFYVU2ypJqpJr5Z42OJKl96FxC5qetFugtvngiV5uewDij2lo1zuoI7XEDvQ_GIEZRL4fc1DFI0k6U03w=@pm.me>


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

* gnu/packages/qt.scm (qtserialport): New variable.
---
 gnu/packages/qt.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index d589f653fb..d0d2c906a4 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1580,6 +1580,35 @@ (define-public qtserialport-5
     (description "The Qt Serial Port module provides the library for
 interacting with serial ports from within Qt.")))
 

+(define-public qtserialport
+  (package (inherit qtsvg)
+    (name "qtserialport")
+    (version "6.3.1")
+    (source (origin
+             (method url-fetch)
+             (uri (qt-urls name version))
+             (sha256
+              (base32
+               "0vk17cjj9jpdkgd8qwb1x0lijg0p2jxdzx4d67hd57brcl7didjf"))))
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'patch-dlopen-paths
+                 (lambda* (#:key inputs #:allow-other-keys)
+                   (substitute* "src/serialport/qtudev_p.h"
+                     ;; Use the absolute paths for dynamically loaded libs,
+                     ;; otherwise the lib will be searched in LD_LIBRARY_PATH which
+                     ;; typically is not set in guix.
+                     (("^\\s*(udevLibrary->setFileNameAndVersion\\(QStringLiteral\\(\")(udev\"\\),\\s*[0-9]+\\);)" _ a b)
+                      (string-append a #$(this-package-input "eudev") "/lib/lib" b))))))))
+    (native-inputs
+     (list perl pkg-config))
+    (inputs
+     (list qtbase eudev))
+    (synopsis "Qt Serial Port module")
+    (description "The Qt Serial Port module provides the library for
+interacting with serial ports from within Qt.")))
+
 (define-public qtserialbus
   (package (inherit qtsvg-5)
     (name "qtserialbus")
-- 

2.38.0


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 855 bytes --]

  parent reply	other threads:[~2022-10-13  5:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-13  5:19 [bug#58481] [WIP PATCH 0/9] gnu: stellarium: Update to 1.0 Cairn via Guix-patches via
2022-10-13  5:24 ` [bug#58481] Stellarium build log Cairn via Guix-patches via
2022-10-13  5:35 ` [bug#58481] [PATCH 1/9] gnu: qtcharts: Rename variable to qtcharts-5 Cairn via Guix-patches via
2022-10-13  5:37 ` [bug#58481] [PATCH 2/9] gnu: Add qtcharts, version 6.3.1 Cairn via Guix-patches via
2022-10-13  5:38 ` [bug#58481] [PATCH 3/9] gnu: qtserialport: Rename variable to qtserialport-5 Cairn via Guix-patches via
2022-10-13  5:39 ` Cairn via Guix-patches via [this message]
2022-10-13  5:39 ` [bug#58481] [PATCH 5/9] gnu: qtimageformats: Rename variable to qtimageformats-5 Cairn via Guix-patches via
2022-10-13  5:41 ` [bug#58481] [PATCH 6/9] gnu: Add qtimageformats, version 6.3.1 Cairn via Guix-patches via
2022-10-13  5:42 ` [bug#58481] [PATCH 7/9] gnu: Add qxlsx Cairn via Guix-patches via
2022-10-13  5:42 ` [bug#58481] [PATCH 8/9] gnu: Add calcmysky Cairn via Guix-patches via
2022-10-13  5:43 ` [bug#58481] [PATCH 9/9] gnu: stellarium: Update to 1.0 Cairn via Guix-patches via
2023-05-03  8:24 ` [bug#58481] Sharlatan Hellseher
2024-02-08 18:27 ` bug#58481: [WIP PATCH 0/9] gnu: stellarium: Update to 1.0 Sharlatan Hellseher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ngkyUlmGgut35PNxTb1vkxoK74AUlf7pfWsKM0QnmURB1WE6CRJJla1P3gOPloPp1pITSjnCphwPQE5iVfnkVhkGRac-yneAGjV0gjG2Lmw=@pm.me' \
    --to=guix-patches@gnu.org \
    --cc=58481@debbugs.gnu.org \
    --cc=cairn@pm.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).