1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
4 ;;; Copyright © 2015, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
5 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
6 ;;; Copyright © 2016, 2017 Nils Gillmann <ng0@n0.is>
7 ;;; Copyright © 2016 Thomas Danckaert <post@thomasdanckaert.be>
8 ;;; Copyright © 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2017 Quiliro <quiliro@fsfla.org>
10 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
12 ;;; Copyright © 2018 Hartmut Goebel <h.goebel@crazy-compilers.com>
13 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
15 ;;; This file is part of GNU Guix.
17 ;;; GNU Guix is free software; you can redistribute it and/or modify it
18 ;;; under the terms of the GNU General Public License as published by
19 ;;; the Free Software Foundation; either version 3 of the License, or (at
20 ;;; your option) any later version.
22 ;;; GNU Guix is distributed in the hope that it will be useful, but
23 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;;; GNU General Public License for more details.
27 ;;; You should have received a copy of the GNU General Public License
28 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30 (define-module (gnu packages qt)
31 #:use-module ((guix licenses) #:prefix license:)
32 #:use-module (guix packages)
33 #:use-module (guix download)
34 #:use-module (guix git-download)
35 #:use-module (guix build-system cmake)
36 #:use-module (guix build-system gnu)
37 #:use-module (guix build-system trivial)
38 #:use-module (guix packages)
39 #:use-module (guix utils)
40 #:use-module (gnu packages)
41 #:use-module (gnu packages bison)
42 #:use-module (gnu packages compression)
43 #:use-module (gnu packages cups)
44 #:use-module (gnu packages databases)
45 #:use-module (gnu packages documentation)
46 #:use-module (gnu packages fontutils)
47 #:use-module (gnu packages flex)
48 #:use-module (gnu packages freedesktop)
49 #:use-module (gnu packages gl)
50 #:use-module (gnu packages glib)
51 #:use-module (gnu packages gnuzilla)
52 #:use-module (gnu packages gperf)
53 #:use-module (gnu packages gstreamer)
54 #:use-module (gnu packages gtk)
55 #:use-module (gnu packages icu4c)
56 #:use-module (gnu packages image)
57 #:use-module (gnu packages linux)
58 #:use-module (gnu packages maths)
59 #:use-module (gnu packages pciutils)
60 #:use-module (gnu packages pcre)
61 #:use-module (gnu packages perl)
62 #:use-module (gnu packages pkg-config)
63 #:use-module (gnu packages pulseaudio)
64 #:use-module (gnu packages python)
65 #:use-module (gnu packages python-xyz)
66 #:use-module (gnu packages ruby)
67 #:use-module (gnu packages sdl)
68 #:use-module (gnu packages sqlite)
69 #:use-module (gnu packages tls)
70 #:use-module (gnu packages vulkan)
71 #:use-module (gnu packages xdisorg)
72 #:use-module (gnu packages xorg)
73 #:use-module (gnu packages xml)
74 #:use-module (srfi srfi-1))
76 (define-public grantlee
84 (url "https://github.com/steveire/grantlee.git")
85 (commit (string-append "v" version))))
86 (file-name (git-file-name name version))
88 (base32 "1dmah2gd6zd4fgz2f4ir11dazqg067hjz8xshhywhfsmavchi626"))))
90 ;; Optional: lcov and cccc, both are for code coverage
91 `(("doxygen" ,doxygen)))
94 ("qtscript" ,qtscript)))
95 (build-system cmake-build-system)
98 (modify-phases %standard-phases
99 (add-before 'check 'check-setup
101 ;; make Qt render "offscreen", required for tests
102 (setenv "QT_QPA_PLATFORM" "offscreen")
104 (home-page "https://github.com/steveire/grantlee")
105 (synopsis "Libraries for text templating with Qt")
106 (description "Grantlee Templates can be used for theming and generation of
107 other text such as code. The syntax uses the syntax of the Django template
108 system, and the core design of Django is reused in Grantlee.")
109 (license license:lgpl2.0+)))
115 (outputs '("out" "examples"))
120 "http://download.qt.io/official_releases/qt/"
121 (version-major+minor version)
123 "/single/qt-everywhere-src-"
127 "0kgzy32s1fr22fxxfhcyncfryb3qxrznlr737r4y5khk4xj1g545"))
128 (modules '((guix build utils)))
131 ;; Remove qtwebengine, which relies on a bundled copy of
132 ;; chromium. Not only does it fail compilation in qt 5.5:
133 ;; 3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc:362:10:
134 ;; error: cannot convert ‘bool’ to ‘boolean’ in return
135 ;; it might also pose security problems.
136 ;; Alternatively, we could use the "-skip qtwebengine"
137 ;; configuration option.
138 (delete-file-recursively "qtwebengine")
139 ;; The following snippets are copied from their mondular-qt counterparts.
142 (delete-file-recursively (string-append "qtbase/src/3rdparty/" dir)))
143 (list "double-conversion" "freetype" "harfbuzz-ng"
144 "libpng" "libjpeg" "pcre2" "sqlite" "xcb"
148 (delete-file-recursively dir))
149 (list "qtimageformats/src/3rdparty"
150 "qtmultimedia/examples/multimedia/spectrum/3rdparty"
152 "qtscxml/tests/3rdparty"
153 "qtcanvas3d/examples/canvas3d/3rdparty"))
154 ;; Tests depend on this example, which depends on the 3rd party code.
155 (substitute* "qtmultimedia/examples/multimedia/multimedia.pro"
157 (substitute* "qtxmlpatterns/tests/auto/auto.pro"
158 (("qxmlquery") "# qxmlquery")
159 (("xmlpatterns ") "# xmlpatterns"))
160 (substitute* "qtwebglplugin/tests/plugins/platforms/platforms.pro"
161 (("webgl") "# webgl"))
162 (substitute* "qtscxml/tests/auto/auto.pro"
164 (substitute* "qtnetworkauth/tests/auto/auto.pro"
165 (("oauth1 ") "# oauth1 "))
166 (substitute* "qtremoteobjects/tests/auto/qml/qml.pro"
167 (("integration") "# integration")
168 (("usertypes") "# usertypes"))
170 (build-system gnu-build-system)
174 `(("alsa-lib" ,alsa-lib)
178 ("double-conversion" ,double-conversion)
180 ("fontconfig" ,fontconfig)
181 ("freetype" ,freetype)
183 ("gstreamer" ,gstreamer)
184 ("gst-plugins-base" ,gst-plugins-base)
185 ("harfbuzz" ,harfbuzz)
188 ("libinput" ,libinput-minimal)
196 ("libxcomposite" ,libxcomposite)
197 ("libxcursor" ,libxcursor)
199 ("libxfixes" ,libxfixes)
201 ("libxinerama" ,libxinerama)
202 ("libxkbcommon" ,libxkbcommon)
204 ("libxrandr" ,libxrandr)
205 ("libxrender" ,libxrender)
212 ("postgresql" ,postgresql)
213 ("pulseaudio" ,pulseaudio)
215 ("sqlite" ,sqlite-with-column-metadata)
217 ("unixodbc" ,unixodbc)
219 ("xcb-util" ,xcb-util)
220 ("xcb-util-image" ,xcb-util-image)
221 ("xcb-util-keysyms" ,xcb-util-keysyms)
222 ("xcb-util-renderutil" ,xcb-util-renderutil)
223 ("xcb-util-wm" ,xcb-util-wm)
230 ("pkg-config" ,pkg-config)
233 ("vulkan-headers" ,vulkan-headers)
234 ("which" ,(@ (gnu packages base) which))))
236 `(#:parallel-build? #f ; Triggers race condition in qtbase module on Hydra.
238 (modify-phases %standard-phases
239 (add-after 'configure 'patch-bin-sh
241 (substitute* '("qtbase/configure"
242 "qtbase/mkspecs/features/qt_functions.prf"
243 "qtbase/qmake/library/qmakebuiltins.cpp")
244 (("/bin/sh") (which "sh")))
247 (lambda* (#:key outputs #:allow-other-keys)
248 (let ((out (assoc-ref outputs "out"))
249 (examples (assoc-ref outputs "examples")))
250 (substitute* '("configure" "qtbase/configure")
251 (("/bin/pwd") (which "pwd")))
252 (substitute* "qtbase/src/corelib/global/global.pri"
253 (("/bin/ls") (which "ls")))
254 ;; do not pass "--enable-fast-install", which makes the
255 ;; configure process fail
260 "-docdir" (string-append out "/share/doc/qt5")
261 "-headerdir" (string-append out "/include/qt5")
262 "-archdatadir" (string-append out "/lib/qt5")
263 "-datadir" (string-append out "/share/qt5")
264 "-examplesdir" (string-append
265 examples "/share/doc/qt5/examples") ; 151MiB
269 ;; These features require higher versions of Linux than the
270 ;; minimum version of the glibc. See
271 ;; src/corelib/global/minimum-linux_p.h. By disabling these
272 ;; features Qt5 applications can be used on the oldest
273 ;; kernels that the glibc supports, including the RHEL6
274 ;; (2.6.32) and RHEL7 (3.10) kernels.
275 "-no-feature-getentropy" ; requires Linux 3.17
276 "-no-feature-renameat2" ; requires Linux 3.16
278 ;; Do not build examples; for the time being, we
279 ;; prefer to save the space and build time.
280 "-no-compile-examples"
281 ;; Most "-system-..." are automatic, but some use
282 ;; the bundled copy by default.
286 ;; explicitly link with openssl instead of dlopening it
288 ;; explicitly link with dbus instead of dlopening it
290 ;; don't use the precompiled headers
292 ;; drop special machine instructions not supported
293 ;; on all instances of the target
294 ,@(if (string-prefix? "x86_64"
295 (or (%current-target-system)
301 (add-after 'install 'patch-mkspecs
302 (lambda* (#:key outputs #:allow-other-keys)
303 (let* ((out (assoc-ref outputs "out"))
304 (archdata (string-append out "/lib/qt5"))
305 (mkspecs (string-append archdata "/mkspecs"))
306 (qt_config.prf (string-append
307 mkspecs "/features/qt_config.prf")))
308 ;; For each Qt module, let `qmake' uses search paths in the
309 ;; module directory instead of all in QT_INSTALL_PREFIX.
310 (substitute* qt_config.prf
311 (("\\$\\$\\[QT_INSTALL_HEADERS\\]")
312 "$$clean_path($$replace(dir, mkspecs/modules, ../../include/qt5))")
313 (("\\$\\$\\[QT_INSTALL_LIBS\\]")
314 "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))")
315 (("\\$\\$\\[QT_HOST_LIBS\\]")
316 "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))")
317 (("\\$\\$\\[QT_INSTALL_BINS\\]")
318 "$$clean_path($$replace(dir, mkspecs/modules, ../../bin))"))
320 ;; Searches Qt tools in the current PATH instead of QT_HOST_BINS.
321 (substitute* (string-append mkspecs "/features/qt_functions.prf")
322 (("cmd = \\$\\$\\[QT_HOST_BINS\\]/\\$\\$2")
323 "cmd = $$system(which $${2}.pl 2>/dev/null || which $${2})"))
325 ;; Resolve qmake spec files within qtbase by absolute paths.
328 (string-append mkspecs "/features/" file))
329 '("device_config.prf" "moc.prf" "qt_build_config.prf"
330 "qt_config.prf" "winrt/package_manifest.prf"))
331 (("\\$\\$\\[QT_HOST_DATA/get\\]") archdata)
332 (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata))
334 (add-after 'unpack 'patch-paths
335 ;; Use the absolute paths for dynamically loaded libs, otherwise
336 ;; the lib will be searched in LD_LIBRARY_PATH which typically is
338 (lambda* (#:key inputs #:allow-other-keys)
340 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
341 "cross-libc" "libc"))))
342 (substitute* '("qtbase/src/network/kernel/qdnslookup_unix.cpp"
343 "qtbase/src/network/kernel/qhostinfo_unix.cpp")
344 (("^\\s*(lib.setFileName\\(QLatin1String\\(\")(resolv\"\\)\\);)" _ a b)
345 (string-append a glibc "/lib/lib" b))))
346 ;; X11/locale (compose path)
347 (substitute* "qtbase/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp"
348 ;; Don't search in /usr/…/X11/locale, …
349 (("^\\s*m_possibleLocations.append\\(QStringLiteral\\(\"/usr/.*/X11/locale\"\\)\\);" line)
350 (string-append "// " line))
351 ;; … but use libx11's path
352 (("^\\s*(m_possibleLocations.append\\(QStringLiteral\\()X11_PREFIX \"(/.*/X11/locale\"\\)\\);)" _ a b)
353 (string-append a "\"" (assoc-ref inputs "libx11") b)))
355 (substitute* "qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp"
356 (("^\\s*(QLibrary lib\\(QLatin1String\\(\")(GL\"\\)\\);)" _ a b)
357 (string-append a (assoc-ref inputs "mesa") "/lib/lib" b)))
359 (substitute* "qtbase/src/plugins/platforms/xcb/qxcbcursor.cpp"
360 (("^\\s*(QLibrary xcursorLib\\(QLatin1String\\(\")(Xcursor\"\\), 1\\);)" _ a b)
361 (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b))
362 (("^\\s*(xcursorLib.setFileName\\(QLatin1String\\(\")(Xcursor\"\\)\\);)" _ a b)
363 (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b)))
366 (list (search-path-specification
367 (variable "QMAKEPATH")
368 (files '("lib/qt5")))
369 (search-path-specification
370 (variable "QML2_IMPORT_PATH")
371 (files '("lib/qt5/qml")))
372 (search-path-specification
373 (variable "QT_PLUGIN_PATH")
374 (files '("lib/qt5/plugins")))
375 (search-path-specification
376 (variable "XDG_DATA_DIRS")
378 (search-path-specification
379 (variable "XDG_CONFIG_DIRS")
380 (files '("etc/xdg")))))
381 (home-page "https://www.qt.io/")
382 (synopsis "Cross-platform GUI library")
383 (description "Qt is a cross-platform application and UI framework for
384 developers using C++ or QML, a CSS & JavaScript like language.")
385 (license (list license:lgpl2.1 license:lgpl3))
387 ;; Qt 4: 'QBasicAtomicPointer' leads to build failures on MIPS;
388 ;; see <http://hydra.gnu.org/build/112828>.
389 ;; Qt 5: assembler error; see <http://hydra.gnu.org/build/112526>.
390 (supported-systems (delete "mips64el-linux" %supported-systems))))
393 (package (inherit qt)
397 (uri (string-append "http://download.qt-project.org/official_releases/qt/"
398 (string-copy version 0 (string-rindex version #\.))
400 "/qt-everywhere-opensource-src-"
404 "183fca7n7439nlhxyg1z7aky0izgbyll3iwakw4gwivy16aj5272"))
405 (patches (search-patches "qt4-ldflags.patch"))
406 (modules '((guix build utils)))
408 ;; Remove webkit module, which is not built.
409 '(begin (delete-file-recursively "src/3rdparty/webkit")
412 `(,@(fold alist-delete
414 '("harfbuzz" "libjpeg"))
415 ("libjpeg" ,libjpeg-8)
418 `(,@(fold alist-delete
419 (package-native-inputs qt)
420 '("vulkan-headers"))))
422 ;; Note: there are 37 MiB of examples and a '-exampledir' configure flags,
423 ;; but we can't make them a separate output because "out" and "examples"
424 ;; would refer to each other.
425 (outputs '("out" ;112MiB core + 37MiB examples
426 "doc")) ;280MiB of HTML + code
429 (modify-phases %standard-phases
432 (lambda* (#:key outputs #:allow-other-keys)
433 (let ((out (assoc-ref outputs "out"))
434 (doc (assoc-ref outputs "doc")))
435 (substitute* '("configure")
436 (("/bin/pwd") (which "pwd")))
437 (substitute* "src/corelib/global/global.pri"
438 (("/bin/ls") (which "ls")))
444 "-nomake" "examples demos"
445 ;; Note: Don't pass '-docdir' since 'qmake' and
446 ;; libQtCore would record its value, thereby defeating
447 ;; the whole point of having a separate output.
448 "-datadir" (string-append out "/share/qt-" ,version
450 "-importdir" (string-append out "/lib/qt-4"
452 "-plugindir" (string-append out "/lib/qt-4"
454 "-translationdir" (string-append out "/share/qt-" ,version
456 "-demosdir" (string-append out "/share/qt-" ,version
458 "-examplesdir" (string-append out "/share/qt-" ,version
462 ;; explicitly link with dbus instead of dlopening it
464 ;; Skip the webkit module; it fails to build on armhf
465 ;; and, apart from that, may pose security risks.
467 ;; don't use the precompiled headers
469 ;; drop special machine instructions not supported
470 ;; on all instances of the target
471 ,@(if (string-prefix? "x86_64"
472 (or (%current-target-system)
486 (lambda* (#:key outputs #:allow-other-keys)
487 ;; Because of qt4-documentation-path.patch, documentation ends up
488 ;; being installed in OUT. Move it to the right place.
489 (let* ((out (assoc-ref outputs "out"))
490 (doc (assoc-ref outputs "doc"))
491 (olddoc (string-append out "/doc"))
492 (docdir (string-append doc "/share/doc/qt-" ,version)))
493 (mkdir-p (dirname docdir))
495 ;; Note: We can't use 'rename-file' here because OUT and DOC are
496 ;; different "devices" due to bind-mounts.
497 (copy-recursively olddoc docdir)
498 (delete-file-recursively olddoc)
501 (define-public qtbase
507 (uri (string-append "https://download.qt.io/official_releases/qt/"
508 (version-major+minor version) "/" version
509 "/submodules/" name "-everywhere-src-"
513 "071yc9iz14qs4s8yvrwllyfdzp5yjxsdpvbjxdrf0g5q69vqigy6"))
514 ;; Use TZDIR to avoid depending on package "tzdata".
515 (patches (search-patches "qtbase-use-TZDIR.patch"))
516 (modules '((guix build utils)))
518 ;; corelib uses bundled harfbuzz, md4, md5, sha3
520 (with-directory-excursion "src/3rdparty"
521 (for-each delete-file-recursively
522 (list "double-conversion" "freetype" "harfbuzz-ng"
523 "libpng" "libjpeg" "pcre2" "sqlite" "xcb"
526 (build-system gnu-build-system)
529 ("which" ,(@ (gnu packages base) which))))
531 `(("alsa-lib" ,alsa-lib)
534 ("double-conversion" ,double-conversion)
537 ("fontconfig" ,fontconfig)
538 ("freetype" ,freetype)
540 ("harfbuzz" ,harfbuzz)
542 ("libinput" ,libinput-minimal)
547 ("libxcomposite" ,libxcomposite)
548 ("libxcursor" ,libxcursor)
549 ("libxfixes" ,libxfixes)
551 ("libxinerama" ,libxinerama)
552 ("libxkbcommon" ,libxkbcommon)
554 ("libxrandr" ,libxrandr)
555 ("libxrender" ,libxrender)
563 ("postgresql" ,postgresql)
564 ("pulseaudio" ,pulseaudio)
565 ("sqlite" ,sqlite-with-column-metadata)
566 ("unixodbc" ,unixodbc)
567 ("xcb-util" ,xcb-util)
568 ("xcb-util-image" ,xcb-util-image)
569 ("xcb-util-keysyms" ,xcb-util-keysyms)
570 ("xcb-util-renderutil" ,xcb-util-renderutil)
571 ("xcb-util-wm" ,xcb-util-wm)
578 ("pkg-config" ,pkg-config)
580 ("vulkan-headers" ,vulkan-headers)
584 (modify-phases %standard-phases
585 (add-after 'configure 'patch-bin-sh
587 (substitute* '("config.status"
589 "mkspecs/features/qt_functions.prf"
590 "qmake/library/qmakebuiltins.cpp")
591 (("/bin/sh") (which "sh")))
594 (lambda* (#:key outputs #:allow-other-keys)
595 (let ((out (assoc-ref outputs "out")))
596 (substitute* "configure"
597 (("/bin/pwd") (which "pwd")))
598 (substitute* "src/corelib/global/global.pri"
599 (("/bin/ls") (which "ls")))
600 ;; The configuration files for other Qt5 packages are searched
601 ;; through a call to "find_package" in Qt5Config.cmake, which
602 ;; disables the use of CMAKE_PREFIX_PATH via the parameter
603 ;; "NO_DEFAULT_PATH". Re-enable it so that the different
604 ;; components can be installed in different places.
605 (substitute* (find-files "." ".*\\.cmake")
606 (("NO_DEFAULT_PATH") ""))
607 ;; do not pass "--enable-fast-install", which makes the
608 ;; configure process fail
613 "-docdir" (string-append out "/share/doc/qt5")
614 "-headerdir" (string-append out "/include/qt5")
615 "-archdatadir" (string-append out "/lib/qt5")
616 "-datadir" (string-append out "/share/qt5")
617 "-examplesdir" (string-append
618 out "/share/doc/qt5/examples")
622 ;; These features require higher versions of Linux than the
623 ;; minimum version of the glibc. See
624 ;; src/corelib/global/minimum-linux_p.h. By disabling these
625 ;; features Qt5 applications can be used on the oldest
626 ;; kernels that the glibc supports, including the RHEL6
627 ;; (2.6.32) and RHEL7 (3.10) kernels.
628 "-no-feature-getentropy" ; requires Linux 3.17
630 ;; Do not build examples; if desired, these could go
631 ;; into a separate output, but for the time being, we
632 ;; prefer to save the space and build time.
633 "-no-compile-examples"
634 ;; Most "-system-..." are automatic, but some use
635 ;; the bundled copy by default.
639 ;; explicitly link with openssl instead of dlopening it
641 ;; explicitly link with dbus instead of dlopening it
643 ;; don't use the precompiled headers
645 ;; drop special machine instructions that do not have
647 ,@(if (string-prefix? "x86_64"
648 (or (%current-target-system)
654 (add-after 'install 'patch-mkspecs
655 (lambda* (#:key outputs #:allow-other-keys)
656 (let* ((out (assoc-ref outputs "out"))
657 (archdata (string-append out "/lib/qt5"))
658 (mkspecs (string-append archdata "/mkspecs"))
659 (qt_config.prf (string-append
660 mkspecs "/features/qt_config.prf")))
661 ;; For each Qt module, let `qmake' uses search paths in the
662 ;; module directory instead of all in QT_INSTALL_PREFIX.
663 (substitute* qt_config.prf
664 (("\\$\\$\\[QT_INSTALL_HEADERS\\]")
665 "$$clean_path($$replace(dir, mkspecs/modules, ../../include/qt5))")
666 (("\\$\\$\\[QT_INSTALL_LIBS\\]")
667 "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))")
668 (("\\$\\$\\[QT_HOST_LIBS\\]")
669 "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))")
670 (("\\$\\$\\[QT_INSTALL_BINS\\]")
671 "$$clean_path($$replace(dir, mkspecs/modules, ../../bin))"))
673 ;; Searches Qt tools in the current PATH instead of QT_HOST_BINS.
674 (substitute* (string-append mkspecs "/features/qt_functions.prf")
675 (("cmd = \\$\\$\\[QT_HOST_BINS\\]/\\$\\$2")
676 "cmd = $$system(which $${2}.pl 2>/dev/null || which $${2})"))
678 ;; Resolve qmake spec files within qtbase by absolute paths.
681 (string-append mkspecs "/features/" file))
682 '("device_config.prf" "moc.prf" "qt_build_config.prf"
683 "qt_config.prf" "winrt/package_manifest.prf"))
684 (("\\$\\$\\[QT_HOST_DATA/get\\]") archdata)
685 (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata))
687 (add-after 'unpack 'patch-paths
688 ;; Use the absolute paths for dynamically loaded libs, otherwise
689 ;; the lib will be searched in LD_LIBRARY_PATH which typically is
691 (lambda* (#:key inputs #:allow-other-keys)
693 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
694 "cross-libc" "libc"))))
695 (substitute* '("src/network/kernel/qdnslookup_unix.cpp"
696 "src/network/kernel/qhostinfo_unix.cpp")
697 (("^\\s*(lib.setFileName\\(QLatin1String\\(\")(resolv\"\\)\\);)" _ a b)
698 (string-append a glibc "/lib/lib" b))))
699 ;; X11/locale (compose path)
700 (substitute* "src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp"
701 ;; Don't search in /usr/…/X11/locale, …
702 (("^\\s*m_possibleLocations.append\\(QStringLiteral\\(\"/usr/.*/X11/locale\"\\)\\);" line)
703 (string-append "// " line))
704 ;; … but use libx11's path
705 (("^\\s*(m_possibleLocations.append\\(QStringLiteral\\()X11_PREFIX \"(/.*/X11/locale\"\\)\\);)" _ a b)
706 (string-append a "\"" (assoc-ref inputs "libx11") b)))
708 (substitute* "src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp"
709 (("^\\s*(QLibrary lib\\(QLatin1String\\(\")(GL\"\\)\\);)" _ a b)
710 (string-append a (assoc-ref inputs "mesa") "/lib/lib" b)))
712 (substitute* "src/plugins/platforms/xcb/qxcbcursor.cpp"
713 (("^\\s*(QLibrary xcursorLib\\(QLatin1String\\(\")(Xcursor\"\\), 1\\);)" _ a b)
714 (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b))
715 (("^\\s*(xcursorLib.setFileName\\(QLatin1String\\(\")(Xcursor\"\\)\\);)" _ a b)
716 (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b)))
719 (list (search-path-specification
720 (variable "QMAKEPATH")
721 (files '("lib/qt5")))
722 (search-path-specification
723 (variable "QML2_IMPORT_PATH")
724 (files '("lib/qt5/qml")))
725 (search-path-specification
726 (variable "QT_PLUGIN_PATH")
727 (files '("lib/qt5/plugins")))
728 (search-path-specification
729 (variable "XDG_DATA_DIRS")
731 (search-path-specification
732 (variable "XDG_CONFIG_DIRS")
733 (files '("etc/xdg")))))
734 (home-page "https://www.qt.io/")
735 (synopsis "Cross-platform GUI library")
736 (description "Qt is a cross-platform application and UI framework for
737 developers using C++ or QML, a CSS & JavaScript like language.")
738 (license (list license:lgpl2.1 license:lgpl3))))
741 (package (inherit qtbase)
746 (uri (string-append "https://download.qt.io/official_releases/qt/"
747 (version-major+minor version) "/" version
748 "/submodules/" name "-everywhere-src-"
752 "14a4rprbj9f9rhixbk7143xdz34d7d39xh9v2sc1w43q9sf2rsi1"))))
753 (propagated-inputs `())
754 (native-inputs `(("perl" ,perl)))
761 (modify-phases %standard-phases
762 (add-before 'configure 'configure-qmake
763 (lambda* (#:key inputs outputs #:allow-other-keys)
764 (let* ((out (assoc-ref outputs "out"))
765 (qtbase (assoc-ref inputs "qtbase"))
766 (tmpdir (string-append (getenv "TMPDIR")))
767 (qmake (string-append tmpdir "/qmake"))
768 (qt.conf (string-append tmpdir "/qt.conf")))
769 ;; Use qmake with a customized qt.conf to override install
771 (symlink (which "qmake") qmake)
772 (setenv "PATH" (string-append tmpdir ":" (getenv "PATH")))
773 (with-output-to-file qt.conf
779 Documentation=share/doc/qt5
782 LibraryExecutables=lib/qt5/libexec
785 Plugins=lib/qt5/plugins
786 Imports=lib/qt5/imports
787 Qml2Imports=lib/qt5/qml
788 Translations=share/qt5/translations
790 Examples=share/doc/qt5/examples
796 [EffectiveSourcePaths]
802 (lambda* (#:key inputs outputs #:allow-other-keys)
803 ;; Valid QT_BUILD_PARTS variables are:
804 ;; libs tools tests examples demos docs translations
805 (invoke "qmake" "QT_BUILD_PARTS = libs tools tests")))
806 (add-before 'check 'set-display
808 ;; make Qt render "offscreen", required for tests
809 (setenv "QT_QPA_PLATFORM" "offscreen")
811 (synopsis "Qt module for displaying SVGs")
812 (description "The QtSvg module provides classes for displaying the
813 contents of SVG files.")))
815 (define-public qtimageformats
816 (package (inherit qtsvg)
817 (name "qtimageformats")
821 (uri (string-append "https://download.qt.io/official_releases/qt/"
822 (version-major+minor version) "/" version
823 "/submodules/" name "-everywhere-src-"
827 "0zq8igsjyyhxsjr43vpaasrqjw3x0g6rwqf8kaz7y9vs7ny63ch4"))
828 (modules '((guix build utils)))
831 (delete-file-recursively "src/3rdparty")
842 (synopsis "Additional Image Format plugins for Qt")
843 (description "The QtImageFormats module contains plugins for adding
844 support for MNG, TGA, TIFF and WBMP image formats.")))
846 (define-public qtx11extras
847 (package (inherit qtsvg)
852 (uri (string-append "https://download.qt.io/official_releases/qt/"
853 (version-major+minor version) "/" version
854 "/submodules/" name "-everywhere-src-"
858 "11fd2mc20qmnyv1vqhaqad2q6m0i4lmkr432rmqvpkgphpkfp7pr"))))
860 (substitute-keyword-arguments (package-arguments qtsvg)
861 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
862 (native-inputs `(("perl" ,perl)))
866 (synopsis "Qt Extras for X11")
867 (description "The QtX11Extras module includes the library to access X11
868 from within Qt 5.")))
870 (define-public qtxmlpatterns
871 (package (inherit qtsvg)
872 (name "qtxmlpatterns")
876 (uri (string-append "https://download.qt.io/official_releases/qt/"
877 (version-major+minor version) "/" version
878 "/submodules/" name "-everywhere-src-"
882 "1vhfvgi39miqsx3iq7c9sii2sykq0yfng69b70i0smr20zihpl4b"))))
884 (substitute-keyword-arguments (package-arguments qtsvg)
886 `(modify-phases ,phases
887 (add-after 'unpack 'disable-network-tests
888 (lambda _ (substitute* "tests/auto/auto.pro"
889 (("qxmlquery") "# qxmlquery")
890 (("xmlpatterns ") "# xmlpatterns"))
892 (native-inputs `(("perl" ,perl)))
893 (inputs `(("qtbase" ,qtbase)))
894 (synopsis "Qt XML patterns module")
895 (description "The QtXmlPatterns module is a XQuery and XPath engine for
896 XML and custom data models. It contains programs such as xmlpatterns and
897 xmlpatternsvalidator.")))
899 (define-public qtdeclarative
900 (package (inherit qtsvg)
901 (name "qtdeclarative")
905 (uri (string-append "https://download.qt.io/official_releases/qt/"
906 (version-major+minor version) "/" version
907 "/submodules/" name "-everywhere-src-"
911 "1rhsf9bma2zwwpixk2fsg31x7c1pmsk144npypgc9w86swhkc9lf"))))
913 (substitute-keyword-arguments (package-arguments qtsvg)
914 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
917 ("pkg-config" ,pkg-config)
920 ("qtxmlpatterns" ,qtxmlpatterns)))
924 (synopsis "Qt QML module (Quick 2)")
925 (description "The Qt QML module provides a framework for developing
926 applications and libraries with the QML language. It defines and implements the
927 language and engine infrastructure, and provides an API to enable application
928 developers to extend the QML language with custom types and integrate QML code
929 with JavaScript and C++.")))
931 (define-public qtconnectivity
932 (package (inherit qtsvg)
933 (name "qtconnectivity")
937 (uri (string-append "https://download.qt.io/official_releases/qt/"
938 (version-major+minor version) "/" version
939 "/submodules/" name "-everywhere-src-"
943 "0amks3qad31i7cha85kvcaxvlmmgkc3gm4jdkw2p02ixxfygr30l"))))
946 ("pkg-config" ,pkg-config)
947 ("qtdeclarative" ,qtdeclarative)))
951 (synopsis "Qt Connectivity module")
952 (description "The Qt Connectivity modules provides modules for interacting
953 with Bluetooth and NFC.")))
955 (define-public qtwebsockets
956 (package (inherit qtsvg)
957 (name "qtwebsockets")
961 (uri (string-append "https://download.qt.io/official_releases/qt/"
962 (version-major+minor version) "/" version
963 "/submodules/" name "-everywhere-src-"
967 "1ffmapfy68xwwbxbg19ng6b5h8v42cf78s21j7rgq49gm70r0402"))))
969 (substitute-keyword-arguments (package-arguments qtsvg)
970 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
973 ("qtdeclarative" ,qtdeclarative)))
974 (inputs `(("qtbase" ,qtbase)))
975 (synopsis "Qt Web Sockets module")
976 (description "WebSocket is a web-based protocol designed to enable two-way
977 communication between a client application and a remote host. The Qt
978 WebSockets module provides C++ and QML interfaces that enable Qt applications
979 to act as a server that can process WebSocket requests, or a client that can
980 consume data received from the server, or both.")))
982 (define-public qtsensors
983 (package (inherit qtsvg)
988 (uri (string-append "https://download.qt.io/official_releases/qt/"
989 (version-major+minor version) "/" version
990 "/submodules/" name "-everywhere-src-"
994 "0n88c8xi9pbyh7q1pcqv4yjv6nx62abflj8qgfr4qzb0sp8m6mx7"))))
996 (substitute-keyword-arguments (package-arguments qtsvg)
997 ((#:parallel-tests? _ #f) #f) ; can lead to race condition
999 `(modify-phases ,phases
1000 (add-after 'unpack 'fix-tests
1002 (substitute* "tests/auto/qsensorgestures_gestures/tst_sensorgestures_gestures.cpp"
1003 (("2000") "5000") ;lengthen test timeout
1004 (("QTest::newRow(\"twist\") << \"twist\"") "")) ;failing test
1008 ("qtdeclarative" ,qtdeclarative)))
1009 (inputs `(("qtbase" ,qtbase)))
1010 (synopsis "Qt Sensors module")
1011 (description "The Qt Sensors API provides access to sensor hardware via QML
1012 and C++ interfaces. The Qt Sensors API also provides a motion gesture
1013 recognition API for devices.")))
1015 (define-public qtmultimedia
1016 (package (inherit qtsvg)
1017 (name "qtmultimedia")
1021 (uri (string-append "https://download.qt.io/official_releases/qt/"
1022 (version-major+minor version) "/" version
1023 "/submodules/" name "-everywhere-src-"
1027 "0h9wx86zj20n4xc3qnml0i360x2dc1yd2z2af1flj8fwyzppi03j"))
1028 (modules '((guix build utils)))
1031 (delete-file-recursively
1032 "examples/multimedia/spectrum/3rdparty")
1033 ;; We also prevent the spectrum example from being built.
1034 (substitute* "examples/multimedia/multimedia.pro"
1038 (substitute-keyword-arguments (package-arguments qtsvg)
1040 `(modify-phases ,phases
1042 (lambda* (#:key outputs #:allow-other-keys)
1043 (let ((out (assoc-ref outputs "out")))
1044 (invoke "qmake" "QT_BUILD_PARTS = libs tools tests"
1045 (string-append "QMAKE_LFLAGS_RPATH=-Wl,-rpath," out "/lib -Wl,-rpath,")
1046 (string-append "PREFIX=" out)))))))
1047 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1050 ("pkg-config" ,pkg-config)
1051 ("python" ,python-2)
1052 ("qtdeclarative" ,qtdeclarative)))
1054 `(("alsa-lib" ,alsa-lib)
1056 ("pulseaudio" ,pulseaudio)
1058 ;; Gstreamer is needed for the mediaplayer plugin
1059 ("gstreamer" ,gstreamer)
1060 ("gst-plugins-base" ,gst-plugins-base)))
1061 (synopsis "Qt Multimedia module")
1062 (description "The Qt Multimedia module provides set of APIs to play and
1063 record media, and manage a collection of media content. It also contains a
1064 set of plugins for interacting with pulseaudio and GStreamer.")))
1066 (define-public qtwayland
1067 (package (inherit qtsvg)
1072 (uri (string-append "https://download.qt.io/official_releases/qt/"
1073 (version-major+minor version) "/" version
1074 "/submodules/" name "-everywhere-src-"
1078 "1chz4wchgkzd45h143i5hkqg0whcgdbj37gkg7j4kj31whllzjb2"))
1079 (modules '((guix build utils)))
1081 ;; The examples try to build and cause the build to fail
1083 (delete-file-recursively "examples")
1086 (substitute-keyword-arguments (package-arguments qtsvg)
1088 `(modify-phases ,phases
1089 (add-before 'check 'set-ld-library-path
1090 ;; <https://lists.gnu.org/archive/html/guix-devel/2017-09/msg00019.html>
1092 ;; Make the uninstalled libQt5WaylandClient.so.5 available to the
1093 ;; wayland platform plugin.
1095 (setenv "LD_LIBRARY_PATH" (string-append (getcwd) "/lib"))
1100 ("pkg-config" ,pkg-config)
1101 ("qtdeclarative" ,qtdeclarative)))
1103 `(("fontconfig" ,fontconfig)
1104 ("freetype" ,freetype)
1106 ("libxcomposite" ,libxcomposite)
1107 ("libxext" ,libxext)
1108 ("libxkbcommon" ,libxkbcommon)
1109 ("libxrender" ,libxrender)
1113 ("wayland" ,wayland)))
1114 (synopsis "Qt Wayland module")
1115 (description "The Qt Wayland module provides the QtWayland client and
1116 compositor libraries.")))
1118 (define-public qtserialport
1119 (package (inherit qtsvg)
1120 (name "qtserialport")
1124 (uri (string-append "https://download.qt.io/official_releases/qt/"
1125 (version-major+minor version) "/" version
1126 "/submodules/" name "-everywhere-src-"
1130 "1nkbfsxzgicwns3k11hhzjxy2hgrigj8xcw2by0jc1j71mnmxi4n"))))
1131 (native-inputs `(("perl" ,perl)))
1133 `(("qtbase" ,qtbase)
1136 (substitute-keyword-arguments (package-arguments qtsvg)
1138 `(modify-phases ,phases
1139 (add-after 'unpack 'patch-dlopen-paths
1140 (lambda* (#:key inputs #:allow-other-keys)
1141 (substitute* "src/serialport/qtudev_p.h"
1142 ;; Use the absolute paths for dynamically loaded libs,
1143 ;; otherwise the lib will be searched in LD_LIBRARY_PATH which
1144 ;; typically is not set in guix.
1145 (("^\\s*(udevLibrary->setFileNameAndVersion\\(QStringLiteral\\(\")(udev\"\\),\\s*[0-9]+\\);)" _ a b)
1146 (string-append a (assoc-ref inputs "eudev") "/lib/lib" b)))
1148 (synopsis "Qt Serial Port module")
1149 (description "The Qt Serial Port module provides the library for
1150 interacting with serial ports from within Qt.")))
1152 (define-public qtserialbus
1153 (package (inherit qtsvg)
1154 (name "qtserialbus")
1158 (uri (string-append "https://download.qt.io/official_releases/qt/"
1159 (version-major+minor version) "/" version
1160 "/submodules/" name "-everywhere-src-"
1164 "0vf12jk1ma0v0dlpliw1x9i04iaik1kjkiaby7gaxm2abprxwr2n"))))
1166 `(("qtbase" ,qtbase)
1167 ("qtserialport" ,qtserialport)))
1168 (synopsis "Qt Serial Bus module")
1169 (description "The Qt Serial Bus API provides classes and functions to
1170 access the various industrial serial buses and protocols, such as CAN, ModBus,
1173 (define-public qtwebchannel
1174 (package (inherit qtsvg)
1175 (name "qtwebchannel")
1179 (uri (string-append "https://download.qt.io/official_releases/qt/"
1180 (version-major+minor version) "/" version
1181 "/submodules/" name "-everywhere-src-"
1185 "1wrdawlqvcw84h8q52mvbjhp1vkd6fhz6c8ijlg9rw0s3fj4y99w"))))
1188 ("qtdeclarative" ,qtdeclarative)
1189 ("qtwebsockets" ,qtwebsockets)))
1190 (inputs `(("qtbase" ,qtbase)))
1191 (synopsis "Web communication library for Qt")
1192 (description "The Qt WebChannel module enables peer-to-peer communication
1193 between the host (QML/C++ application) and the client (HTML/JavaScript
1194 application). The transport mechanism is supported out of the box by the two
1195 popular web engines, Qt WebKit 2 and Qt WebEngine.")))
1197 (define-public qtwebglplugin
1198 (package (inherit qtsvg)
1199 (name "qtwebglplugin")
1203 (uri (string-append "https://download.qt.io/official_releases/qt/"
1204 (version-major+minor version) "/" version
1205 "/submodules/" name "-everywhere-src-"
1209 "0wqz8lycmi7pffzy0pz5960w109lbk4mkbw0l1lh64avl6clq7b9"))))
1211 (substitute-keyword-arguments (package-arguments qtsvg)
1213 `(modify-phases ,phases
1214 (add-after 'unpack 'disable-network-tests
1215 (lambda _ (substitute* "tests/plugins/platforms/platforms.pro"
1216 (("webgl") "# webgl"))
1222 ("qtdeclarative" ,qtdeclarative)
1223 ("qtwebsockets" ,qtwebsockets)))
1224 (synopsis "QPA plugin for running an application via a browser using
1225 streamed WebGL commands")
1226 (description "Qt back end that uses WebGL for rendering. It allows Qt
1227 applications (with some limitations) to run in a web browser that supports
1228 WebGL. WebGL is a JavaScript API for rendering 2D and 3D graphics within any
1229 compatible web browser without the use of plug-ins. The API is similar to
1230 OpenGL ES 2.0 and can be used in HTML5 canvas elements")))
1232 (define-public qtwebview
1233 (package (inherit qtsvg)
1238 (uri (string-append "https://download.qt.io/official_releases/qt/"
1239 (version-major+minor version) "/" version
1240 "/submodules/" name "-everywhere-src-"
1244 "1njmn1n03dp4md8cz58cq2z6bsxd8nwlw0238zmavh7px3jzc9kh"))))
1248 `(("qtbase" ,qtbase)
1249 ("qtdeclarative" ,qtdeclarative)))
1250 (synopsis "Display web content in a QML application")
1251 (description "Qt WebView provides a way to display web content in a QML
1252 application without necessarily including a full web browser stack by using
1253 native APIs where it makes sense.")))
1255 (define-public qtlocation
1256 (package (inherit qtsvg)
1261 (uri (string-append "https://download.qt.io/official_releases/qt/"
1262 (version-major+minor version) "/" version
1263 "/submodules/" name "-everywhere-src-"
1267 "1sq0f41jwmsimv9a1wl2nk5nifjppm5j92rr4n4s7qwnnjjrir2q"))))
1269 (substitute-keyword-arguments (package-arguments qtsvg)
1270 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1273 ("qtdeclarative" ,qtdeclarative)
1274 ("qtquickcontrols" ,qtquickcontrols)
1275 ("qtserialport" ,qtserialport)))
1278 ("openssl" ,openssl)
1281 (synopsis "Qt Location and Positioning modules")
1282 (description "The Qt Location module provides an interface for location,
1283 positioning and geolocation plugins.")))
1285 (define-public qttools
1286 (package (inherit qtsvg)
1291 (uri (string-append "https://download.qt.io/official_releases/qt/"
1292 (version-major+minor version) "/" version
1293 "/submodules/" name "-everywhere-src-"
1297 "13lzdxxi02yhvx4mflhisl6aqv2fiss5m804cqccd1wvp8dyh1f2"))))
1299 (substitute-keyword-arguments (package-arguments qtsvg)
1300 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1303 ("qtdeclarative" ,qtdeclarative)
1304 ("vulkan-headers" ,vulkan-headers)))
1307 ("qtbase" ,qtbase)))
1308 (synopsis "Qt Tools and Designer modules")
1309 (description "The Qt Tools module provides a set of applications to browse
1310 the documentation, translate applications, generate help files and other stuff
1311 that helps in Qt development.")))
1313 (define-public qtscript
1314 (package (inherit qtsvg)
1319 (uri (string-append "https://download.qt.io/official_releases/qt/"
1320 (version-major+minor version) "/" version
1321 "/submodules/" name "-everywhere-src-"
1325 "027cvggbcvwyz76cn1bl1zvqg0nq7iica1b7yx7xyy0hb36g715v"))
1326 (patches (search-patches "qtscript-disable-tests.patch"))))
1329 ("qttools" ,qttools)))
1331 `(("qtbase" ,qtbase)))
1332 (synopsis "Qt Script module")
1333 (description "Qt provides support for application scripting with ECMAScript.
1334 The following guides and references cover aspects of programming with
1335 ECMAScript and Qt.")))
1337 (define-public qtquickcontrols
1338 (package (inherit qtsvg)
1339 (name "qtquickcontrols")
1343 (uri (string-append "https://download.qt.io/official_releases/qt/"
1344 (version-major+minor version) "/" version
1345 "/submodules/" name "-everywhere-src-"
1349 "0dvmy31qbl76yy0j5y8m7mvnmqyg2c01fmlkn0snvc5h5ah5skjf"))))
1351 (substitute-keyword-arguments (package-arguments qtsvg)
1352 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1354 `(("qtbase" ,qtbase)
1355 ("qtdeclarative" ,qtdeclarative)))
1356 (synopsis "Qt Quick Controls and other Quick modules")
1357 (description "The QtScript module provides classes for making Qt
1358 applications scriptable. This module provides a set of extra components that
1359 can be used to build complete interfaces in Qt Quick.")))
1361 (define-public qtquickcontrols2
1362 (package (inherit qtsvg)
1363 (name "qtquickcontrols2")
1367 (uri (string-append "https://download.qt.io/official_releases/qt/"
1368 (version-major+minor version) "/" version
1369 "/submodules/" name "-everywhere-src-"
1373 "11nhpb0xckv5jjkqj5szr94c2rvyjwr89ch58hh64nsqaav30mpl"))))
1375 (substitute-keyword-arguments (package-arguments qtsvg)
1376 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1378 `(("qtbase" ,qtbase)
1379 ("qtdeclarative" ,qtdeclarative)))
1380 (synopsis "Qt Quick Controls 2 and other Quick 2 modules")
1381 (description "The Qt Quick Controls 2 module contains the Qt Labs Platform
1382 module that provides platform integration: native dialogs, menus and menu bars,
1383 and tray icons. It falls back to Qt Widgets when a native implementation is
1386 (define-public qtgraphicaleffects
1387 (package (inherit qtsvg)
1388 (name "qtgraphicaleffects")
1392 (uri (string-append "https://download.qt.io/official_releases/qt/"
1393 (version-major+minor version) "/" version
1394 "/submodules/" name "-everywhere-src-"
1398 "1qjpdzkamf27cg5n1wsf0zk939lcgppgydfjzap9s4fxzj1nkn0l"))))
1400 (substitute-keyword-arguments (package-arguments qtsvg)
1401 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1403 `(("qtbase" ,qtbase)
1404 ("qtdeclarative" ,qtdeclarative)))
1405 (synopsis "Qt Graphical Effects module")
1406 (description "The Qt Graphical Effects module provides a set of QML types
1407 for adding visually impressive and configurable effects to user interfaces.
1408 Effects are visual items that can be added to Qt Quick user interface as UI
1409 components. The API consists of over 20 effects provided as separate QML
1410 types. The effects cover functional areas such as blending, masking, blurring,
1411 coloring, and many more.")))
1413 (define-public qtdeclarative-render2d
1414 ;; As of Qt-5.8.0 this module has been merged into qtdeclarative
1415 (package (inherit qtsvg)
1416 (name "qtdeclarative-render2d")
1420 (uri (string-append "https://download.qt.io/official_releases/qt/"
1421 (version-major+minor version) "/" version
1422 "/submodules/" name "-everywhere-src-"
1426 "0zwch9vn17f3bpy300jcfxx6cx9qymk5j7khx0x9k1xqid4166c3"))
1427 (modules '((guix build utils)))
1430 (delete-file-recursively "tools/opengldummy/3rdparty")
1434 `(("qtbase" ,qtbase)
1435 ("qtdeclarative" ,qtdeclarative)))
1436 (synopsis "Qt Declarative Render module")
1437 (description "The Qt Declarative Render 2D module provides a Raster
1438 backend for QtQuick scene graph.")
1439 (properties `((superseded . ,qtdeclarative)))))
1441 (define-public qtgamepad
1442 (package (inherit qtsvg)
1447 (uri (string-append "https://download.qt.io/official_releases/qt/"
1448 (version-major+minor version) "/" version
1449 "/submodules/" name "-everywhere-src-"
1453 "1k222cx18zq48sfna91hmy427qzk2n2xz3dlyz59iyz72k6915g9"))))
1456 ("pkg-config" ,pkg-config)))
1458 `(("fontconfig" ,fontconfig)
1459 ("freetype" ,freetype)
1460 ("libxrender" ,libxrender)
1463 ("qtdeclarative" ,qtdeclarative)))
1464 (synopsis "Qt Gamepad module")
1465 (description "The Qt Gamepad module is an add-on library that enables Qt
1466 applications to support the use of gamepad hardware and in some cases remote
1467 control equipment. The module provides both QML and C++ interfaces. The
1468 primary target audience are embedded devices with fullscreen user interfaces,
1469 and mobile applications targeting TV-like form factors.")))
1471 (define-public qtscxml
1472 (package (inherit qtsvg)
1477 (uri (string-append "https://download.qt.io/official_releases/qt/"
1478 (version-major+minor version) "/" version
1479 "/submodules/" name "-everywhere-src-"
1483 "1mv8mz36v34dckrzy5r41mq3sqznbalrhndk3avz2154xmkjf5qk"))
1484 (modules '((guix build utils)))
1487 (delete-file-recursively "tests/3rdparty")
1488 ;; the scion test refers to the bundled 3rd party test code.
1489 (substitute* "tests/auto/auto.pro"
1493 `(("qtbase" ,qtbase)
1494 ("qtdeclarative" ,qtdeclarative)))
1495 (synopsis "Qt SCXML module")
1496 (description "The Qt SCXML module provides functionality to create state
1497 machines from SCXML files. This includes both dynamically creating state
1498 machines (loading the SCXML file and instantiating states and transitions) and
1499 generating a C++ file that has a class implementing the state machine. It
1500 also contains functionality to support data models and executable content.")))
1502 (define-public qtpurchasing
1503 (package (inherit qtsvg)
1504 (name "qtpurchasing")
1508 (uri (string-append "https://download.qt.io/official_releases/qt/"
1509 (version-major+minor version) "/" version
1510 "/submodules/" name "-everywhere-src-"
1514 "1fd0gxdj5mrh81iwimq1243i3n47sqv9ik8nslahfh0q3dsx7k8n"))))
1516 `(("qtbase" ,qtbase)
1517 ("qtdeclarative" ,qtdeclarative)))
1518 (synopsis "Qt Purchasing module")
1519 (description "The Qt Purchasing module provides and in-app API for
1520 purchasing goods and services.")))
1522 (define-public qtcanvas3d
1523 (package (inherit qtsvg)
1528 (uri (string-append "https://download.qt.io/official_releases/qt/"
1529 (version-major+minor version) "/" version
1530 "/submodules/" name "-everywhere-src-"
1534 "0f110z7cmkzns9k00aa5zhzq2fpybfxkd7gdlwzcbhc8hn20986m"))
1535 (modules '((guix build utils)))
1538 (delete-file-recursively "examples/canvas3d/3rdparty")
1541 (substitute-keyword-arguments (package-arguments qtsvg)
1542 ;; Building the tests depends on the bundled 3rd party javascript files,
1543 ;; and the test phase fails to import QtCanvas3D, causing the phase to
1544 ;; fail, so we skip building them for now.
1546 `(modify-phases ,phases
1548 (lambda* (#:key outputs #:allow-other-keys)
1549 (let ((out (assoc-ref outputs "out")))
1550 (invoke "qmake" "QT_BUILD_PARTS = libs tools"
1551 (string-append "PREFIX=" out)))))))
1552 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1555 `(("qtbase" ,qtbase)
1556 ("qtdeclarative" ,qtdeclarative)))
1557 (synopsis "Qt Canvas 3D module")
1558 (description "The Qt Canvas 3D module provides a way to make WebGL-like 3D
1559 drawing calls from Qt Quick JavaScript.")))
1561 (define-public qtcharts
1562 (package (inherit qtsvg)
1567 (uri (string-append "https://download.qt.io/official_releases/qt/"
1568 (version-major+minor version) "/" version
1569 "/submodules/" name "-everywhere-src-"
1573 "1p4m1nkbbxlkwmbmasx5r83skzssmlcgfzyvj30x2dyrqkmz7627"))))
1575 (substitute-keyword-arguments (package-arguments qtsvg)
1576 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1578 `(("qtbase" ,qtbase)
1579 ("qtdeclarative" ,qtdeclarative)))
1580 (synopsis "Qt Charts module")
1581 (description "The Qt Charts module provides a set of easy to use chart
1582 components. It uses the Qt Graphics View Framework, therefore charts can be
1583 easily integrated to modern user interfaces. Qt Charts can be used as QWidgets,
1584 QGraphicsWidget, or QML types. Users can easily create impressive graphs by
1585 selecting one of the charts themes.")
1586 (license license:gpl3)))
1588 (define-public qtdatavis3d
1589 (package (inherit qtsvg)
1590 (name "qtdatavis3d")
1594 (uri (string-append "https://download.qt.io/official_releases/qt/"
1595 (version-major+minor version) "/" version
1596 "/submodules/" name "-everywhere-src-"
1600 "1kqwr3avcvcyy4i28vjgxk1bsjj9011zr668hsk1zrjxnnwjwdl3"))))
1602 (substitute-keyword-arguments (package-arguments qtsvg)
1603 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1605 `(("qtbase" ,qtbase)
1606 ("qtdeclarative" ,qtdeclarative)))
1607 (synopsis "Qt Data Visualization module")
1608 (description "The Qt Data Visualization module provides a way to visualize
1609 data in 3D as bar, scatter, and surface graphs. It is especially useful for
1610 visualizing depth maps and large quantities of rapidly changing data, such as
1611 data received from multiple sensors. The look and feel of graphs can be
1612 customized by using themes or by adding custom items and labels to them.")
1613 (license license:gpl3)))
1615 (define-public qtnetworkauth
1616 (package (inherit qtsvg)
1617 (name "qtnetworkauth")
1621 (uri (string-append "https://download.qt.io/official_releases/qt/"
1622 (version-major+minor version) "/" version
1623 "/submodules/" name "-everywhere-src-"
1627 "0dd35698wzg89975vi2ijl2lym495fjizsl03mjixsjnvb1x0q50"))))
1629 (substitute-keyword-arguments (package-arguments qtsvg)
1631 `(modify-phases ,phases
1632 (add-after 'unpack 'remove-failing-test
1634 ;; These tests can't find their test data.
1635 (substitute* "tests/auto/auto.pro"
1636 (("oauth1 ") "# oauth1 "))
1639 `(("qtbase" ,qtbase)))
1640 (synopsis "Qt Network Authorization module")
1641 (description "The Qt Network Authorization module provides an
1642 implementation of OAuth and OAuth2 authenticathon methods for Qt.")))
1644 (define-public qtremoteobjects
1645 (package (inherit qtsvg)
1646 (name "qtremoteobjects")
1650 (uri (string-append "https://download.qt.io/official_releases/qt/"
1651 (version-major+minor version) "/" version
1652 "/submodules/" name "-everywhere-src-"
1656 "1d3jzsxfyjhgb6wj9iv1388bv7j6pi08346nmkm1c1a4iykhc0zp"))))
1658 (substitute-keyword-arguments (package-arguments qtsvg)
1660 `(modify-phases ,phases
1661 (add-after 'unpack 'remove-failing-test
1663 ;; This test can't find its imports.
1664 (substitute* "tests/auto/qml/qml.pro"
1665 (("integration") "# integration")
1666 (("usertypes") "# usertypes"))
1669 `(("qtbase" ,qtbase)
1670 ("qtdeclarative" ,qtdeclarative)))
1671 (synopsis "Qt Remote Objects module")
1672 (description "The Qt Remote Objects module is an @dfn{inter-process
1673 communication} (IPC) module developed for Qt. The idea is to extend existing
1674 Qt's functionalities to enable an easy exchange of information between
1675 processes or computers.")))
1677 (define-public qtspeech
1678 (package (inherit qtsvg)
1683 (uri (string-append "https://download.qt.io/official_releases/qt/"
1684 (version-major+minor version) "/" version
1685 "/submodules/" name "-everywhere-src-"
1689 "158p7zqd0vg55gf88jzc3d4f7649ihh80k0m1q46m2yp6fpdjbxr"))))
1691 (substitute-keyword-arguments (package-arguments qtsvg)
1692 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1694 `(("qtbase" ,qtbase)))
1697 ("qtdeclarative" ,qtdeclarative)
1698 ("qtmultimedia" ,qtmultimedia)
1699 ("qtxmlpatterns" ,qtxmlpatterns)))
1700 (synopsis "Qt Speech module")
1701 (description "The Qt Speech module enables a Qt application to support
1702 accessibility features such as text-to-speech, which is useful for end-users
1703 who are visually challenged or cannot access the application for whatever
1704 reason. The most common use case where text-to-speech comes in handy is when
1705 the end-user is driving and cannot attend the incoming messages on the phone.
1706 In such a scenario, the messaging application can read out the incoming
1709 (define-public python-sip
1717 (string-append "mirror://sourceforge/pyqt/sip/"
1718 "sip-" version "/sip-" version ".tar.gz"))
1721 "0pniq03jk1n5bs90yjihw3s3rsmjd8m89y9zbnymzgwrcl2sflz3"))))
1722 (build-system gnu-build-system)
1724 `(("python" ,python-wrapper)))
1726 `(#:tests? #f ; no check target
1727 #:modules ((srfi srfi-1)
1728 ,@%gnu-build-system-modules)
1730 (modify-phases %standard-phases
1732 (lambda* (#:key inputs outputs #:allow-other-keys)
1733 (let* ((out (assoc-ref outputs "out"))
1734 (bin (string-append out "/bin"))
1735 (include (string-append out "/include"))
1736 (python (assoc-ref inputs "python"))
1738 (last (string-split python #\-)))
1741 (take (string-split python-version #\.) 2)
1743 (lib (string-append out "/lib/python"
1746 (invoke "python" "configure.py"
1749 "--incdir" include)))))))
1750 (home-page "https://www.riverbankcomputing.com/software/sip/intro")
1751 (synopsis "Python binding creator for C and C++ libraries")
1753 "SIP is a tool to create Python bindings for C and C++ libraries. It
1754 was originally developed to create PyQt, the Python bindings for the Qt
1755 toolkit, but can be used to create bindings for any C or C++ library.
1757 SIP comprises a code generator and a Python module. The code generator
1758 processes a set of specification files and generates C or C++ code, which
1759 is then compiled to create the bindings extension module. The SIP Python
1760 module provides support functions to the automatically generated code.")
1761 ;; There is a choice between a python like license, gpl2 and gpl3.
1762 ;; For compatibility with pyqt, we need gpl3.
1763 (license license:gpl3)))
1765 (define-public python2-sip
1766 (package (inherit python-sip)
1767 (name "python2-sip")
1769 `(("python" ,python-2)))))
1771 (define-public python-pyqt
1773 (name "python-pyqt")
1779 (string-append "mirror://sourceforge/pyqt/PyQt5/"
1780 "PyQt-" version "/PyQt5_gpl-"
1784 "0wqh4srqkcc03rvkwrcshaa028psrq58xkys6npnyhqxc0apvdf9"))
1785 (patches (search-patches "pyqt-configure.patch"
1786 "pyqt-public-sip.patch"))))
1787 (build-system gnu-build-system)
1789 `(("qtbase" ,qtbase))) ; for qmake
1791 `(("python-sip" ,python-sip)))
1793 `(("python" ,python-wrapper)
1795 ("qtconnectivity" ,qtconnectivity)
1796 ("qtdeclarative" ,qtdeclarative)
1797 ("qtlocation" ,qtlocation)
1798 ("qtmultimedia" ,qtmultimedia)
1799 ("qtsensors" ,qtsensors)
1800 ("qtserialport" ,qtserialport)
1802 ("qttools" ,qttools)
1803 ("qtwebchannel" ,qtwebchannel)
1804 ("qtwebkit" ,qtwebkit)
1805 ("qtwebsockets" ,qtwebsockets)
1806 ("qtx11extras" ,qtx11extras)
1807 ("qtxmlpatterns" ,qtxmlpatterns)))
1809 `(#:modules ((srfi srfi-1)
1810 ,@%gnu-build-system-modules)
1812 (modify-phases %standard-phases
1814 (lambda* (#:key inputs outputs #:allow-other-keys)
1815 (let* ((out (assoc-ref outputs "out"))
1816 (bin (string-append out "/bin"))
1817 (sip (string-append out "/share/sip"))
1818 (plugins (string-append out "/plugins"))
1819 (designer (string-append plugins "/designer"))
1820 (qml (string-append plugins "/PyQt5"))
1821 (python (assoc-ref inputs "python"))
1823 (last (string-split python #\-)))
1826 (take (string-split python-version #\.) 2)
1828 (lib (string-append out "/lib/python"
1831 (stubs (string-append lib "/PyQt5")))
1832 (invoke "python" "configure.py"
1836 "--designer-plugindir" designer
1837 "--qml-plugindir" qml
1838 ; Where to install the PEP 484 Type Hints stub
1839 ; files. Without this the stubs are tried to be
1840 ; installed into the python package's
1841 ; site-package directory, which is read-only.
1843 "--sipdir" sip)))))))
1844 (home-page "https://www.riverbankcomputing.com/software/pyqt/intro")
1845 (synopsis "Python bindings for Qt")
1847 "PyQt is a set of Python v2 and v3 bindings for the Qt application
1848 framework. The bindings are implemented as a set of Python modules and
1849 contain over 620 classes.")
1850 (license license:gpl3)))
1852 ;; XXX: This is useful because qtwebkit does not build reliably at this time.
1853 ;; Ultimately, it would be nicer to have a more modular set of python-pyqt-*
1854 ;; packages that could be used together.
1855 (define-public python-pyqt-without-qtwebkit
1856 (package (inherit python-pyqt)
1857 (name "python-pyqt-without-qtwebkit")
1859 (alist-delete "qtwebkit" (package-inputs python-pyqt)))))
1861 (define-public python2-pyqt
1862 (package (inherit python-pyqt)
1863 (name "python2-pyqt")
1865 `(("python-sip" ,python2-sip)
1866 ("qtbase" ,qtbase)))
1868 `(("python" ,python-2)
1869 ("python2-enum34" ,python2-enum34)
1870 ,@(alist-delete "python" (package-inputs python-pyqt))))))
1872 (define-public python2-pyqt-4
1873 (package (inherit python-pyqt)
1874 (name "python2-pyqt")
1880 (string-append "mirror://sourceforge/pyqt/PyQt4/"
1881 "PyQt-" version "/PyQt4_gpl_x11-"
1885 "1nw8r88a5g2d550yvklawlvns8gd5slw53yy688kxnsa65aln79w"))))
1887 `(("python-sip" ,python2-sip)
1889 (inputs `(("python" ,python-2)))
1891 `(#:tests? #f ; no check target
1892 #:modules ((srfi srfi-1)
1893 ,@%gnu-build-system-modules)
1895 (modify-phases %standard-phases
1897 (lambda* (#:key inputs outputs #:allow-other-keys)
1898 (let* ((out (assoc-ref outputs "out"))
1899 (bin (string-append out "/bin"))
1900 (sip (string-append out "/share/sip"))
1901 (python (assoc-ref inputs "python"))
1903 (last (string-split python #\-)))
1906 (take (string-split python-version #\.) 2)
1908 (lib (string-append out "/lib/python"
1911 (invoke "python" "configure.py"
1915 "--sipdir" sip)))))))
1916 (license (list license:gpl2 license:gpl3)))) ; choice of either license
1918 (define-public qscintilla
1924 (uri (string-append "mirror://sourceforge/pyqt/QScintilla2/"
1925 "QScintilla-" version "/QScintilla_gpl-"
1929 "1swjr786w04r514pry9pn32ivza4il1cg35s60qy39cwc175pka6"))))
1930 (build-system gnu-build-system)
1933 (modify-phases %standard-phases
1935 (lambda* (#:key outputs #:allow-other-keys)
1936 (let ((out (assoc-ref outputs "out")))
1938 (substitute* "qscintilla.pro"
1939 (("\\$\\$\\[QT_INSTALL_LIBS\\]")
1940 (string-append out "/lib"))
1941 (("\\$\\$\\[QT_INSTALL_HEADERS\\]")
1942 (string-append out "/include"))
1943 (("\\$\\$\\[QT_INSTALL_TRANSLATIONS\\]")
1944 (string-append out "/translations"))
1945 (("\\$\\$\\[QT_INSTALL_DATA\\]")
1946 (string-append out "/lib/qt$${QT_MAJOR_VERSION}"))
1947 (("\\$\\$\\[QT_HOST_DATA\\]")
1948 (string-append out "/lib/qt$${QT_MAJOR_VERSION}")))
1949 (invoke "qmake")))))))
1950 (native-inputs `(("qtbase" ,qtbase)))
1951 (home-page "https://www.riverbankcomputing.co.uk/software/qscintilla/intro")
1952 (synopsis "Qt port of the Scintilla C++ editor control")
1953 (description "QScintilla is a port to Qt of Neil Hodgson's Scintilla C++
1954 editor control. QScintilla includes features especially useful when editing
1955 and debugging source code. These include support for syntax styling, error
1956 indicators, code completion and call tips.")
1957 (license license:gpl3+)))
1959 (define-public python-qscintilla
1960 (package (inherit qscintilla)
1961 (name "python-qscintilla")
1964 (list "--pyqt=PyQt5"
1965 (string-append "--pyqt-sipdir="
1966 (assoc-ref %build-inputs "python-pyqt")
1968 (string-append "--qsci-incdir="
1969 (assoc-ref %build-inputs "qscintilla")
1971 (string-append "--qsci-libdir="
1972 (assoc-ref %build-inputs "qscintilla")
1975 (modify-phases %standard-phases
1977 (lambda* (#:key inputs outputs configure-flags #:allow-other-keys)
1978 (let ((out (assoc-ref outputs "out"))
1979 (python (assoc-ref inputs "python")))
1981 (apply invoke "python3" "configure.py"
1983 ;; Install to the right directory
1984 (substitute* '("Makefile"
1986 (("\\$\\(INSTALL_ROOT\\)/gnu/store/[^/]+") out)
1987 (((string-append python "/lib"))
1988 (string-append out "/lib")))
1989 ;; And fix the installed.txt file
1990 (substitute* "installed.txt"
1991 (("/gnu/store/[^/]+") out)))
1994 `(("qscintilla" ,qscintilla)
1996 ("python-pyqt" ,python-pyqt)))
1997 (description "QScintilla is a port to Qt of Neil Hodgson's Scintilla C++
1998 editor control. QScintilla includes features especially useful when editing
1999 and debugging source code. These include support for syntax styling, error
2000 indicators, code completion and call tips.
2002 This package provides the Python bindings.")))
2004 ;; PyQt only looks for modules in its own directory. It ignores environment
2005 ;; variables such as PYTHONPATH, so we need to build a union package to make
2007 (define-public python-pyqt+qscintilla
2008 (package (inherit python-pyqt)
2009 (name "python-pyqt+qscintilla")
2011 (build-system trivial-build-system)
2013 '(#:modules ((guix build union))
2015 (use-modules (ice-9 match)
2017 (match %build-inputs
2018 (((names . directories) ...)
2019 (union-build (assoc-ref %outputs "out")
2023 `(("python-pyqt" ,python-pyqt)
2024 ("python-qscintilla" ,python-qscintilla)))
2025 (synopsis "Union of PyQt and the Qscintilla extension")
2027 "This package contains the union of PyQt and the Qscintilla extension.")))
2029 (define-public qtkeychain
2037 (url "https://github.com/frankosterfeld/qtkeychain/")
2038 (commit (string-append "v" version))))
2039 (file-name (git-file-name name version))
2042 "0h4wgngn2yl35hapbjs24amkjfbzsvnna4ixfhn87snjnq5lmjbc"))))
2043 (build-system cmake-build-system)
2045 `(("pkg-config" ,pkg-config)
2046 ("qttools" ,qttools)))
2048 `(("qtbase" ,qtbase)))
2050 `(#:tests? #f ; No tests included
2052 (modify-phases %standard-phases
2053 (add-before 'configure 'set-qt-trans-dir
2055 (substitute* "CMakeLists.txt"
2056 (("\\$\\{qt_translations_dir\\}")
2057 "${CMAKE_INSTALL_PREFIX}/share/qt5/translations"))
2059 (home-page "https://github.com/frankosterfeld/qtkeychain")
2060 (synopsis "Qt API to store passwords")
2062 "QtKeychain is a Qt library to store passwords and other secret data
2063 securely. It will not store any data unencrypted unless explicitly requested.")
2064 (license license:bsd-3)))
2074 (string-append "mirror://sourceforge/qwt/qwt/"
2075 version "/qwt-" version ".tar.bz2"))
2077 (base32 "0cwp63s03dw351xavb3pzbjlqvx7kj88wv7v4a2b18m9f97d7v7k"))))
2078 (build-system gnu-build-system)
2080 `(("qtbase" ,qtbase)
2082 ("qttools" ,qttools)))
2085 (modify-phases %standard-phases
2087 (lambda* (#:key outputs #:allow-other-keys)
2088 (let* ((out (assoc-ref outputs "out"))
2089 (docdir (string-append out "/share/doc/qwt"))
2090 (incdir (string-append out "/include/qwt"))
2091 (pluginsdir (string-append out "/lib/qt5/plugins/designer"))
2092 (featuresdir (string-append out "/lib/qt5/mkspecs/features")))
2093 (substitute* '("qwtconfig.pri")
2094 (("^(\\s*QWT_INSTALL_PREFIX)\\s*=.*" _ x)
2095 (format #f "~a = ~a\n" x out))
2096 (("^(QWT_INSTALL_DOCS)\\s*=.*" _ x)
2097 (format #f "~a = ~a\n" x docdir))
2098 (("^(QWT_INSTALL_HEADERS)\\s*=.*" _ x)
2099 (format #f "~a = ~a\n" x incdir))
2100 (("^(QWT_INSTALL_PLUGINS)\\s*=.*" _ x)
2101 (format #f "~a = ~a\n" x pluginsdir))
2102 (("^(QWT_INSTALL_FEATURES)\\s*=.*" _ x)
2103 (format #f "~a = ~a\n" x featuresdir)))
2104 (substitute* '("doc/doc.pro")
2105 ;; We'll install them in the 'install-man-pages' phase.
2106 (("^unix:doc\\.files.*") ""))
2108 (add-after 'install 'install-man-pages
2109 (lambda* (#:key outputs #:allow-other-keys)
2110 (let* ((out (assoc-ref outputs "out"))
2111 (man (string-append out "/share/man")))
2112 ;; Remove some incomplete manual pages.
2113 (for-each delete-file (find-files "doc/man/man3" "^_tmp.*"))
2115 (copy-recursively "doc/man" man)
2117 (home-page "http://qwt.sourceforge.net")
2118 (synopsis "Qt widgets for plots, scales, dials and other technical software
2121 "The Qwt library contains widgets and components which are primarily useful
2122 for technical and scientific purposes. It includes a 2-D plotting widget,
2123 different kinds of sliders, and much more.")
2126 ;; The Qwt license is LGPL2.1 with some exceptions.
2127 (license:non-copyleft "http://qwt.sourceforge.net/qwtlicense.html")
2128 ;; textengines/mathml/qwt_mml_document.{cpp,h} is dual LGPL2.1/GPL3 (either).
2129 license:lgpl2.1 license:gpl3))))
2131 (define-public qtwebkit
2134 (version "5.212.0-alpha2")
2138 (uri (string-append "https://github.com/annulen/webkit/releases/download/"
2139 name "-" version "/" name "-" version ".tar.xz"))
2142 "12lg7w00d8wsj672s1y5z5gm0xdcgs16nas0b5bgq4byavg03ygq"))
2143 (patches (search-patches "qtwebkit-pbutils-include.patch"))))
2144 (build-system cmake-build-system)
2147 ("python" ,python-2.7)
2152 ("pkg-config" ,pkg-config)))
2156 ("gst-plugins-base" ,gst-plugins-base)
2157 ("libjpeg" ,libjpeg)
2159 ("libwebp" ,libwebp)
2161 ("fontconfig" ,fontconfig)
2162 ("libxrender" ,libxrender)
2164 ("qtdeclarative" ,qtdeclarative)
2165 ("qtlocation" ,qtlocation)
2166 ("qtmultimedia" ,qtmultimedia)
2167 ("qtsensors" ,qtsensors)
2168 ("qtwebchannel" ,qtwebchannel)
2169 ("libxml2" ,libxml2)
2170 ("libxslt" ,libxslt)
2172 ("libxcomposite" ,libxcomposite)))
2174 `(#:tests? #f ; no apparent tests; it might be necessary to set
2175 ; ENABLE_API_TESTS, see CMakeLists.txt
2176 #:configure-flags (list ;"-DENABLE_API_TESTS=TRUE"
2178 "-DUSE_LIBHYPHEN=OFF"
2179 "-DUSE_SYSTEM_MALLOC=ON"
2180 ;; XXX: relative dir installs to build dir?
2181 (string-append "-DECM_MKSPECS_INSTALL_DIR="
2182 %output "/lib/qt5/mkspecs/modules")
2183 ;; Sacrifice a little speed in order to link
2184 ;; libraries and test executables in a
2185 ;; reasonable amount of memory.
2186 "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--no-keep-memory"
2187 "-DCMAKE_EXE_LINKER_FLAGS=-Wl,--no-keep-memory")))
2188 (home-page "https://www.webkit.org")
2189 (synopsis "Web browser engine and classes to render and interact with web
2191 (description "QtWebKit provides a Web browser engine that makes it easy to
2192 embed content from the World Wide Web into your Qt application. At the same
2193 time Web content can be enhanced with native controls.")
2194 (license license:lgpl2.1+)))
2196 (define-public dotherside
2203 (uri (string-append "https://github.com/filcuc/DOtherSide/"
2204 "archive/v" version ".tar.gz"))
2205 (file-name (string-append name "-" version ".tar.gz"))
2208 "0azq7qlsrfdwbd6qsi7d3c1knn42qw0r47g43xf7clwbinapswpz"))))
2209 (build-system cmake-build-system)
2211 `(("qttools" ,qttools)))
2213 `(("qtbase" ,qtbase)
2214 ("qtdeclarative" ,qtdeclarative)))
2215 (home-page "https://filcuc.github.io/DOtherSide/index.html")
2216 (synopsis "C language library for creating bindings for the Qt QML language")
2218 "DOtherSide is a C language library for creating bindings for the
2219 QT QML language. The following features are implementable from
2222 @item Creating custom QObject
2223 @item Creating custom QAbstractListModels
2224 @item Creating custom properties, signals and slots
2225 @item Creating from QML QObject defined in the binded language
2226 @item Creating from Singleton QML QObject defined in the binded language
2228 (license license:lgpl3))) ;version 3 only (+ exception)