diff options
author | Zac Berkowitz <zac.berkowitz@gmail.com> | 2024-03-18 12:02:40 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2024-04-06 12:23:19 -0400 |
commit | 50a72a08af37557575199b56bbee9f334d58575a (patch) | |
tree | 6bc2cf583688316617730138e66e1745d20f5b0e /gnu/packages/qt.scm | |
parent | 726e7e3996fdef7a5f9da0f4cbb4ae35fcddc2c8 (diff) |
gnu: qtserialport: Update to 6.6.3.
* gnu/packages/qt.scm (qtserialport): Rename to ...
* gnu/packages/qt.scm (qtserialport-5): ... this.
* gnu/packages/qt.scm (qtserialport): New variable.
* gnu/packages/engineering.scm (fritzing, candle)
[inputs]: Replace qtserialport with qtserialport-5.
* gnu/packages/geo.scm (qgis): Likewise.
* gnu/packages/kde-utils.scm (atelier, libatcore): Likewise.
* gnu/packages/qt.scm (qtserialbus, qtlocation, python-pyqt): Likewise.
* gnu/packages/radio.scm (wsjtx, jtdx, js8call)
(sdrangel, wfview, qdmr): Likewise.
Change-Id: I8e0c8d2408ea0bf776b2efe58e23821cb653363c
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu/packages/qt.scm')
-rw-r--r-- | gnu/packages/qt.scm | 42 |
1 files changed, 37 insertions, 5 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 1440c6981c..dcc9bfeb62 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -2054,7 +2054,7 @@ compositor libraries.") (home-page (package-home-page qtbase)) (license (package-license qtbase)))) -(define-public qtserialport +(define-public qtserialport-5 (package (inherit qtsvg-5) (name "qtserialport") @@ -2085,6 +2085,38 @@ compositor libraries.") (description "The Qt Serial Port module provides the library for interacting with serial ports from within Qt."))) +(define-public qtserialport + (package + (name "qtserialport") + (version "6.6.3") + (source + (origin + (method url-fetch) + (uri (qt-url name version)) + (sha256 + (base32 "0dywalgafvxi2jgdv9dk22hwwd8qsgk5xfybh75n3njmwmwnarg1")))) + (build-system cmake-build-system) + (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. + (("setFileNameAndVersion\\(QStringLiteral\\(\"udev\")") + (format #f "setFileNameAndVersion(QStringLiteral(~s))" + (string-append #$(this-package-input "eudev") + "/lib/libudev"))))))))) + (native-inputs (list pkg-config)) + (inputs (list qtbase eudev)) + (home-page (package-home-page qtbase)) + (synopsis "Qt Serial Port module") + (description "The Qt Serial Port module provides the library for +interacting with serial ports from within Qt.") + (license (package-license qtbase)))) + (define-public qtserialbus (package (inherit qtsvg-5) @@ -2107,7 +2139,7 @@ interacting with serial ports from within Qt."))) (format #f "QStringLiteral(~s)" (search-input-file inputs "lib/libsocketcan.so")))))))))) - (inputs (list libsocketcan qtbase-5 qtserialport)) + (inputs (list libsocketcan qtbase-5 qtserialport-5)) (synopsis "Qt Serial Bus module") (description "The Qt Serial Bus API provides classes and functions to access the various industrial serial buses and protocols, such as CAN, ModBus, @@ -2258,7 +2290,7 @@ Server Protocol (LSP) for Qt.") (add-before 'check 'pre-check (lambda _ (setenv "HOME" "/tmp"))))))) - (native-inputs (list perl qtdeclarative-5 qtquickcontrols-5 qtserialport)) + (native-inputs (list perl qtdeclarative-5 qtquickcontrols-5 qtserialport-5)) (inputs (list icu4c openssl qtbase-5 zlib)) (synopsis "Qt Location and Positioning modules") (description "The Qt Location module provides an interface for location, @@ -3918,8 +3950,8 @@ module provides support functions to the automatically generated code.") ("qtdeclarative-5" ,qtdeclarative-5) ("qtlocation" ,qtlocation) ("qtmultimedia-5" ,qtmultimedia-5) - ("qtsensors-5" ,qtsensors-5) - ("qtserialport" ,qtserialport) + ("qtsensors" ,qtsensors-5) + ("qtserialport" ,qtserialport-5) ("qtsvg-5" ,qtsvg-5) ("qttools-5" ,qttools-5) ("qtwebchannel-5" ,qtwebchannel-5) |