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 "10faac59jvz6dxxljdkaknlxazpnaxgvqdcszabfbbkc1f24n466"))
128 (patches (search-patches "qt-5-renameat2.patch"))
129 (modules '((guix build utils)))
132 ;; Remove qtwebengine, which relies on a bundled copy of
133 ;; chromium. Not only does it fail compilation in qt 5.5:
134 ;; 3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc:362:10:
135 ;; error: cannot convert ‘bool’ to ‘boolean’ in return
136 ;; it might also pose security problems.
137 ;; Alternatively, we could use the "-skip qtwebengine"
138 ;; configuration option.
139 (delete-file-recursively "qtwebengine")
140 ;; The following snippets are copied from their mondular-qt counterparts.
143 (delete-file-recursively (string-append "qtbase/src/3rdparty/" dir)))
144 (list "double-conversion" "freetype" "harfbuzz-ng"
145 "libpng" "libjpeg" "pcre2" "sqlite" "xcb"
149 (delete-file-recursively dir))
150 (list "qtimageformats/src/3rdparty"
151 "qtmultimedia/examples/multimedia/spectrum/3rdparty"
153 "qtscxml/tests/3rdparty"
154 "qtcanvas3d/examples/canvas3d/3rdparty"))
155 ;; Tests depend on this example, which depends on the 3rd party code.
156 (substitute* "qtmultimedia/examples/multimedia/multimedia.pro"
158 (substitute* "qtxmlpatterns/tests/auto/auto.pro"
159 (("qxmlquery") "# qxmlquery")
160 (("xmlpatterns ") "# xmlpatterns"))
161 (substitute* "qtwebglplugin/tests/plugins/platforms/platforms.pro"
162 (("webgl") "# webgl"))
163 (substitute* "qtscxml/tests/auto/auto.pro"
165 (substitute* "qtnetworkauth/tests/auto/auto.pro"
166 (("oauth1 ") "# oauth1 "))
167 (substitute* "qtremoteobjects/tests/auto/qml/qml.pro"
168 (("integration") "# integration")
169 (("usertypes") "# usertypes"))
171 (build-system gnu-build-system)
175 `(("alsa-lib" ,alsa-lib)
179 ("double-conversion" ,double-conversion)
181 ("fontconfig" ,fontconfig)
182 ("freetype" ,freetype)
184 ("gstreamer" ,gstreamer)
185 ("gst-plugins-base" ,gst-plugins-base)
186 ("harfbuzz" ,harfbuzz)
189 ("libinput" ,libinput-minimal)
197 ("libxcomposite" ,libxcomposite)
198 ("libxcursor" ,libxcursor)
200 ("libxfixes" ,libxfixes)
202 ("libxinerama" ,libxinerama)
203 ("libxkbcommon" ,libxkbcommon)
205 ("libxrandr" ,libxrandr)
206 ("libxrender" ,libxrender)
213 ("postgresql" ,postgresql)
214 ("pulseaudio" ,pulseaudio)
216 ("sqlite" ,sqlite-with-column-metadata)
218 ("unixodbc" ,unixodbc)
220 ("xcb-util" ,xcb-util)
221 ("xcb-util-image" ,xcb-util-image)
222 ("xcb-util-keysyms" ,xcb-util-keysyms)
223 ("xcb-util-renderutil" ,xcb-util-renderutil)
224 ("xcb-util-wm" ,xcb-util-wm)
231 ("pkg-config" ,pkg-config)
234 ("vulkan-headers" ,vulkan-headers)
235 ("which" ,(@ (gnu packages base) which))))
237 `(#:parallel-build? #f ; Triggers race condition in qtbase module on Hydra.
239 (modify-phases %standard-phases
240 (add-after 'configure 'patch-bin-sh
242 (substitute* '("qtbase/configure"
243 "qtbase/mkspecs/features/qt_functions.prf"
244 "qtbase/qmake/library/qmakebuiltins.cpp")
245 (("/bin/sh") (which "sh")))
248 (lambda* (#:key outputs #:allow-other-keys)
249 (let ((out (assoc-ref outputs "out"))
250 (examples (assoc-ref outputs "examples")))
251 (substitute* '("configure" "qtbase/configure")
252 (("/bin/pwd") (which "pwd")))
253 (substitute* "qtbase/src/corelib/global/global.pri"
254 (("/bin/ls") (which "ls")))
255 ;; do not pass "--enable-fast-install", which makes the
256 ;; configure process fail
261 "-docdir" (string-append out "/share/doc/qt5")
262 "-headerdir" (string-append out "/include/qt5")
263 "-archdatadir" (string-append out "/lib/qt5")
264 "-datadir" (string-append out "/share/qt5")
265 "-examplesdir" (string-append
266 examples "/share/doc/qt5/examples") ; 151MiB
270 ;; These features require higher versions of Linux than the
271 ;; minimum version of the glibc. See
272 ;; src/corelib/global/minimum-linux_p.h. By disabling these
273 ;; features Qt5 applications can be used on the oldest
274 ;; kernels that the glibc supports, including the RHEL6
275 ;; (2.6.32) and RHEL7 (3.10) kernels.
276 "-no-feature-getentropy" ; requires Linux 3.17
277 "-no-feature-renameat2" ; requires Linux 3.16
279 ;; Do not build examples; for the time being, we
280 ;; prefer to save the space and build time.
281 "-no-compile-examples"
282 ;; Most "-system-..." are automatic, but some use
283 ;; the bundled copy by default.
287 ;; explicitly link with openssl instead of dlopening it
289 ;; explicitly link with dbus instead of dlopening it
291 ;; don't use the precompiled headers
293 ;; drop special machine instructions not supported
294 ;; on all instances of the target
295 ,@(if (string-prefix? "x86_64"
296 (or (%current-target-system)
302 (add-after 'install 'patch-mkspecs
303 (lambda* (#:key outputs #:allow-other-keys)
304 (let* ((out (assoc-ref outputs "out"))
305 (archdata (string-append out "/lib/qt5"))
306 (mkspecs (string-append archdata "/mkspecs"))
307 (qt_config.prf (string-append
308 mkspecs "/features/qt_config.prf")))
309 ;; For each Qt module, let `qmake' uses search paths in the
310 ;; module directory instead of all in QT_INSTALL_PREFIX.
311 (substitute* qt_config.prf
312 (("\\$\\$\\[QT_INSTALL_HEADERS\\]")
313 "$$clean_path($$replace(dir, mkspecs/modules, ../../include/qt5))")
314 (("\\$\\$\\[QT_INSTALL_LIBS\\]")
315 "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))")
316 (("\\$\\$\\[QT_HOST_LIBS\\]")
317 "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))")
318 (("\\$\\$\\[QT_INSTALL_BINS\\]")
319 "$$clean_path($$replace(dir, mkspecs/modules, ../../bin))"))
321 ;; Searches Qt tools in the current PATH instead of QT_HOST_BINS.
322 (substitute* (string-append mkspecs "/features/qt_functions.prf")
323 (("cmd = \\$\\$\\[QT_HOST_BINS\\]/\\$\\$2")
324 "cmd = $$system(which $${2}.pl 2>/dev/null || which $${2})"))
326 ;; Resolve qmake spec files within qtbase by absolute paths.
329 (string-append mkspecs "/features/" file))
330 '("device_config.prf" "moc.prf" "qt_build_config.prf"
331 "qt_config.prf" "winrt/package_manifest.prf"))
332 (("\\$\\$\\[QT_HOST_DATA/get\\]") archdata)
333 (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata))
335 (add-after 'unpack 'patch-paths
336 ;; Use the absolute paths for dynamically loaded libs, otherwise
337 ;; the lib will be searched in LD_LIBRARY_PATH which typically is
339 (lambda* (#:key inputs #:allow-other-keys)
341 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
342 "cross-libc" "libc"))))
343 (substitute* '("qtbase/src/network/kernel/qdnslookup_unix.cpp"
344 "qtbase/src/network/kernel/qhostinfo_unix.cpp")
345 (("^\\s*(lib.setFileName\\(QLatin1String\\(\")(resolv\"\\)\\);)" _ a b)
346 (string-append a glibc "/lib/lib" b))))
347 ;; X11/locale (compose path)
348 (substitute* "qtbase/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp"
349 ;; Don't search in /usr/…/X11/locale, …
350 (("^\\s*m_possibleLocations.append\\(QStringLiteral\\(\"/usr/.*/X11/locale\"\\)\\);" line)
351 (string-append "// " line))
352 ;; … but use libx11's path
353 (("^\\s*(m_possibleLocations.append\\(QStringLiteral\\()X11_PREFIX \"(/.*/X11/locale\"\\)\\);)" _ a b)
354 (string-append a "\"" (assoc-ref inputs "libx11") b)))
356 (substitute* "qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp"
357 (("^\\s*(QLibrary lib\\(QLatin1String\\(\")(GL\"\\)\\);)" _ a b)
358 (string-append a (assoc-ref inputs "mesa") "/lib/lib" b)))
360 (substitute* "qtbase/src/plugins/platforms/xcb/qxcbcursor.cpp"
361 (("^\\s*(QLibrary xcursorLib\\(QLatin1String\\(\")(Xcursor\"\\), 1\\);)" _ a b)
362 (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b))
363 (("^\\s*(xcursorLib.setFileName\\(QLatin1String\\(\")(Xcursor\"\\)\\);)" _ a b)
364 (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b)))
367 (list (search-path-specification
368 (variable "QMAKEPATH")
369 (files '("lib/qt5")))
370 (search-path-specification
371 (variable "QML2_IMPORT_PATH")
372 (files '("lib/qt5/qml")))
373 (search-path-specification
374 (variable "QT_PLUGIN_PATH")
375 (files '("lib/qt5/plugins")))
376 (search-path-specification
377 (variable "XDG_DATA_DIRS")
379 (search-path-specification
380 (variable "XDG_CONFIG_DIRS")
381 (files '("etc/xdg")))))
382 (home-page "https://www.qt.io/")
383 (synopsis "Cross-platform GUI library")
384 (description "Qt is a cross-platform application and UI framework for
385 developers using C++ or QML, a CSS & JavaScript like language.")
386 (license (list license:lgpl2.1 license:lgpl3))
388 ;; Qt 4: 'QBasicAtomicPointer' leads to build failures on MIPS;
389 ;; see <http://hydra.gnu.org/build/112828>.
390 ;; Qt 5: assembler error; see <http://hydra.gnu.org/build/112526>.
391 (supported-systems (delete "mips64el-linux" %supported-systems))))
394 (package (inherit qt)
398 (uri (string-append "http://download.qt-project.org/official_releases/qt/"
399 (string-copy version 0 (string-rindex version #\.))
401 "/qt-everywhere-opensource-src-"
405 "183fca7n7439nlhxyg1z7aky0izgbyll3iwakw4gwivy16aj5272"))
406 (patches (search-patches "qt4-ldflags.patch"))
407 (modules '((guix build utils)))
409 ;; Remove webkit module, which is not built.
410 '(begin (delete-file-recursively "src/3rdparty/webkit")
413 `(,@(fold alist-delete
415 '("harfbuzz" "libjpeg"))
416 ("libjpeg" ,libjpeg-8)
419 `(,@(fold alist-delete
420 (package-native-inputs qt)
421 '("vulkan-headers"))))
423 ;; Note: there are 37 MiB of examples and a '-exampledir' configure flags,
424 ;; but we can't make them a separate output because "out" and "examples"
425 ;; would refer to each other.
426 (outputs '("out" ;112MiB core + 37MiB examples
427 "doc")) ;280MiB of HTML + code
430 (modify-phases %standard-phases
433 (lambda* (#:key outputs #:allow-other-keys)
434 (let ((out (assoc-ref outputs "out"))
435 (doc (assoc-ref outputs "doc")))
436 (substitute* '("configure")
437 (("/bin/pwd") (which "pwd")))
438 (substitute* "src/corelib/global/global.pri"
439 (("/bin/ls") (which "ls")))
445 "-nomake" "examples demos"
446 ;; Note: Don't pass '-docdir' since 'qmake' and
447 ;; libQtCore would record its value, thereby defeating
448 ;; the whole point of having a separate output.
449 "-datadir" (string-append out "/share/qt-" ,version
451 "-importdir" (string-append out "/lib/qt-4"
453 "-plugindir" (string-append out "/lib/qt-4"
455 "-translationdir" (string-append out "/share/qt-" ,version
457 "-demosdir" (string-append out "/share/qt-" ,version
459 "-examplesdir" (string-append out "/share/qt-" ,version
463 ;; explicitly link with dbus instead of dlopening it
465 ;; Skip the webkit module; it fails to build on armhf
466 ;; and, apart from that, may pose security risks.
468 ;; don't use the precompiled headers
470 ;; drop special machine instructions not supported
471 ;; on all instances of the target
472 ,@(if (string-prefix? "x86_64"
473 (or (%current-target-system)
487 (lambda* (#:key outputs #:allow-other-keys)
488 ;; Because of qt4-documentation-path.patch, documentation ends up
489 ;; being installed in OUT. Move it to the right place.
490 (let* ((out (assoc-ref outputs "out"))
491 (doc (assoc-ref outputs "doc"))
492 (olddoc (string-append out "/doc"))
493 (docdir (string-append doc "/share/doc/qt-" ,version)))
494 (mkdir-p (dirname docdir))
496 ;; Note: We can't use 'rename-file' here because OUT and DOC are
497 ;; different "devices" due to bind-mounts.
498 (copy-recursively olddoc docdir)
499 (delete-file-recursively olddoc)
502 (define-public qtbase
508 (uri (string-append "https://download.qt.io/official_releases/qt/"
509 (version-major+minor version) "/" version
510 "/submodules/" name "-everywhere-src-"
514 "01q1rn5rp9biq3z38953z2hgm4nirvp2jfv8wg7isnld8v1yg0b3"))
515 ;; Use TZDIR to avoid depending on package "tzdata".
516 (patches (search-patches "qtbase-use-TZDIR.patch"))
517 (modules '((guix build utils)))
519 ;; corelib uses bundled harfbuzz, md4, md5, sha3
523 (delete-file-recursively (string-append "src/3rdparty/" dir)))
524 (list "double-conversion" "freetype" "harfbuzz-ng"
525 "libpng" "libjpeg" "pcre2" "sqlite" "xcb"
528 (build-system gnu-build-system)
531 ("which" ,(@ (gnu packages base) which))))
533 `(("alsa-lib" ,alsa-lib)
536 ("double-conversion" ,double-conversion)
539 ("fontconfig" ,fontconfig)
540 ("freetype" ,freetype)
542 ("harfbuzz" ,harfbuzz)
544 ("libinput" ,libinput-minimal)
549 ("libxcomposite" ,libxcomposite)
550 ("libxcursor" ,libxcursor)
551 ("libxfixes" ,libxfixes)
553 ("libxinerama" ,libxinerama)
554 ("libxkbcommon" ,libxkbcommon)
556 ("libxrandr" ,libxrandr)
557 ("libxrender" ,libxrender)
565 ("postgresql" ,postgresql)
566 ("pulseaudio" ,pulseaudio)
567 ("sqlite" ,sqlite-with-column-metadata)
568 ("unixodbc" ,unixodbc)
569 ("xcb-util" ,xcb-util)
570 ("xcb-util-image" ,xcb-util-image)
571 ("xcb-util-keysyms" ,xcb-util-keysyms)
572 ("xcb-util-renderutil" ,xcb-util-renderutil)
573 ("xcb-util-wm" ,xcb-util-wm)
580 ("pkg-config" ,pkg-config)
582 ("vulkan-headers" ,vulkan-headers)
586 (modify-phases %standard-phases
587 (add-after 'configure 'patch-bin-sh
589 (substitute* '("config.status"
591 "mkspecs/features/qt_functions.prf"
592 "qmake/library/qmakebuiltins.cpp")
593 (("/bin/sh") (which "sh")))
596 (lambda* (#:key outputs #:allow-other-keys)
597 (let ((out (assoc-ref outputs "out")))
598 (substitute* "configure"
599 (("/bin/pwd") (which "pwd")))
600 (substitute* "src/corelib/global/global.pri"
601 (("/bin/ls") (which "ls")))
602 ;; The configuration files for other Qt5 packages are searched
603 ;; through a call to "find_package" in Qt5Config.cmake, which
604 ;; disables the use of CMAKE_PREFIX_PATH via the parameter
605 ;; "NO_DEFAULT_PATH". Re-enable it so that the different
606 ;; components can be installed in different places.
607 (substitute* (find-files "." ".*\\.cmake")
608 (("NO_DEFAULT_PATH") ""))
609 ;; do not pass "--enable-fast-install", which makes the
610 ;; configure process fail
615 "-docdir" (string-append out "/share/doc/qt5")
616 "-headerdir" (string-append out "/include/qt5")
617 "-archdatadir" (string-append out "/lib/qt5")
618 "-datadir" (string-append out "/share/qt5")
619 "-examplesdir" (string-append
620 out "/share/doc/qt5/examples")
624 ;; These features require higher versions of Linux than the
625 ;; minimum version of the glibc. See
626 ;; src/corelib/global/minimum-linux_p.h. By disabling these
627 ;; features Qt5 applications can be used on the oldest
628 ;; kernels that the glibc supports, including the RHEL6
629 ;; (2.6.32) and RHEL7 (3.10) kernels.
630 "-no-feature-getentropy" ; requires Linux 3.17
632 ;; Do not build examples; if desired, these could go
633 ;; into a separate output, but for the time being, we
634 ;; prefer to save the space and build time.
635 "-no-compile-examples"
636 ;; Most "-system-..." are automatic, but some use
637 ;; the bundled copy by default.
641 ;; explicitly link with openssl instead of dlopening it
643 ;; explicitly link with dbus instead of dlopening it
645 ;; don't use the precompiled headers
647 ;; drop special machine instructions that do not have
649 ,@(if (string-prefix? "x86_64"
650 (or (%current-target-system)
656 (add-after 'install 'patch-mkspecs
657 (lambda* (#:key outputs #:allow-other-keys)
658 (let* ((out (assoc-ref outputs "out"))
659 (archdata (string-append out "/lib/qt5"))
660 (mkspecs (string-append archdata "/mkspecs"))
661 (qt_config.prf (string-append
662 mkspecs "/features/qt_config.prf")))
663 ;; For each Qt module, let `qmake' uses search paths in the
664 ;; module directory instead of all in QT_INSTALL_PREFIX.
665 (substitute* qt_config.prf
666 (("\\$\\$\\[QT_INSTALL_HEADERS\\]")
667 "$$clean_path($$replace(dir, mkspecs/modules, ../../include/qt5))")
668 (("\\$\\$\\[QT_INSTALL_LIBS\\]")
669 "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))")
670 (("\\$\\$\\[QT_HOST_LIBS\\]")
671 "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))")
672 (("\\$\\$\\[QT_INSTALL_BINS\\]")
673 "$$clean_path($$replace(dir, mkspecs/modules, ../../bin))"))
675 ;; Searches Qt tools in the current PATH instead of QT_HOST_BINS.
676 (substitute* (string-append mkspecs "/features/qt_functions.prf")
677 (("cmd = \\$\\$\\[QT_HOST_BINS\\]/\\$\\$2")
678 "cmd = $$system(which $${2}.pl 2>/dev/null || which $${2})"))
680 ;; Resolve qmake spec files within qtbase by absolute paths.
683 (string-append mkspecs "/features/" file))
684 '("device_config.prf" "moc.prf" "qt_build_config.prf"
685 "qt_config.prf" "winrt/package_manifest.prf"))
686 (("\\$\\$\\[QT_HOST_DATA/get\\]") archdata)
687 (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata))
689 (add-after 'unpack 'patch-paths
690 ;; Use the absolute paths for dynamically loaded libs, otherwise
691 ;; the lib will be searched in LD_LIBRARY_PATH which typically is
693 (lambda* (#:key inputs #:allow-other-keys)
695 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
696 "cross-libc" "libc"))))
697 (substitute* '("src/network/kernel/qdnslookup_unix.cpp"
698 "src/network/kernel/qhostinfo_unix.cpp")
699 (("^\\s*(lib.setFileName\\(QLatin1String\\(\")(resolv\"\\)\\);)" _ a b)
700 (string-append a glibc "/lib/lib" b))))
701 ;; X11/locale (compose path)
702 (substitute* "src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp"
703 ;; Don't search in /usr/…/X11/locale, …
704 (("^\\s*m_possibleLocations.append\\(QStringLiteral\\(\"/usr/.*/X11/locale\"\\)\\);" line)
705 (string-append "// " line))
706 ;; … but use libx11's path
707 (("^\\s*(m_possibleLocations.append\\(QStringLiteral\\()X11_PREFIX \"(/.*/X11/locale\"\\)\\);)" _ a b)
708 (string-append a "\"" (assoc-ref inputs "libx11") b)))
710 (substitute* "src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp"
711 (("^\\s*(QLibrary lib\\(QLatin1String\\(\")(GL\"\\)\\);)" _ a b)
712 (string-append a (assoc-ref inputs "mesa") "/lib/lib" b)))
714 (substitute* "src/plugins/platforms/xcb/qxcbcursor.cpp"
715 (("^\\s*(QLibrary xcursorLib\\(QLatin1String\\(\")(Xcursor\"\\), 1\\);)" _ a b)
716 (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b))
717 (("^\\s*(xcursorLib.setFileName\\(QLatin1String\\(\")(Xcursor\"\\)\\);)" _ a b)
718 (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b)))
721 (list (search-path-specification
722 (variable "QMAKEPATH")
723 (files '("lib/qt5")))
724 (search-path-specification
725 (variable "QML2_IMPORT_PATH")
726 (files '("lib/qt5/qml")))
727 (search-path-specification
728 (variable "QT_PLUGIN_PATH")
729 (files '("lib/qt5/plugins")))
730 (search-path-specification
731 (variable "XDG_DATA_DIRS")
733 (search-path-specification
734 (variable "XDG_CONFIG_DIRS")
735 (files '("etc/xdg")))))
736 (home-page "https://www.qt.io/")
737 (synopsis "Cross-platform GUI library")
738 (description "Qt is a cross-platform application and UI framework for
739 developers using C++ or QML, a CSS & JavaScript like language.")
740 (license (list license:lgpl2.1 license:lgpl3))))
743 (package (inherit qtbase)
748 (uri (string-append "https://download.qt.io/official_releases/qt/"
749 (version-major+minor version) "/" version
750 "/submodules/" name "-everywhere-src-"
754 "0rni3cdcli91v7k8ra9s9phpznvkza8qqvcrv9yyfrmlapwbn5mw"))))
755 (propagated-inputs `())
756 (native-inputs `(("perl" ,perl)))
763 (modify-phases %standard-phases
764 (add-before 'configure 'configure-qmake
765 (lambda* (#:key inputs outputs #:allow-other-keys)
766 (let* ((out (assoc-ref outputs "out"))
767 (qtbase (assoc-ref inputs "qtbase"))
768 (tmpdir (string-append (getenv "TMPDIR")))
769 (qmake (string-append tmpdir "/qmake"))
770 (qt.conf (string-append tmpdir "/qt.conf")))
771 ;; Use qmake with a customized qt.conf to override install
773 (symlink (which "qmake") qmake)
774 (setenv "PATH" (string-append tmpdir ":" (getenv "PATH")))
775 (with-output-to-file qt.conf
781 Documentation=share/doc/qt5
784 LibraryExecutables=lib/qt5/libexec
787 Plugins=lib/qt5/plugins
788 Imports=lib/qt5/imports
789 Qml2Imports=lib/qt5/qml
790 Translations=share/qt5/translations
792 Examples=share/doc/qt5/examples
798 [EffectiveSourcePaths]
804 (lambda* (#:key inputs outputs #:allow-other-keys)
805 ;; Valid QT_BUILD_PARTS variables are:
806 ;; libs tools tests examples demos docs translations
807 (invoke "qmake" "QT_BUILD_PARTS = libs tools tests")))
808 (add-before 'check 'set-display
810 ;; make Qt render "offscreen", required for tests
811 (setenv "QT_QPA_PLATFORM" "offscreen")
813 (synopsis "Qt module for displaying SVGs")
814 (description "The QtSvg module provides classes for displaying the
815 contents of SVG files.")))
817 (define-public qtimageformats
818 (package (inherit qtsvg)
819 (name "qtimageformats")
823 (uri (string-append "https://download.qt.io/official_releases/qt/"
824 (version-major+minor version) "/" version
825 "/submodules/" name "-everywhere-src-"
829 "0s1s33k0wrnf9fi1wlm1kaq9hs1fx89597nhk53vzdfha42x3r97"))
830 (modules '((guix build utils)))
833 (delete-file-recursively "src/3rdparty")
844 (synopsis "Additional Image Format plugins for Qt")
845 (description "The QtImageFormats module contains plugins for adding
846 support for MNG, TGA, TIFF and WBMP image formats.")))
848 (define-public qtx11extras
849 (package (inherit qtsvg)
854 (uri (string-append "https://download.qt.io/official_releases/qt/"
855 (version-major+minor version) "/" version
856 "/submodules/" name "-everywhere-src-"
860 "12cha7pd3cjx7zr0l7rbi1j2pfwmfpdwc7w3dsqbyi1d0mhwl1zl"))))
862 (substitute-keyword-arguments (package-arguments qtsvg)
863 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
864 (native-inputs `(("perl" ,perl)))
868 (synopsis "Qt Extras for X11")
869 (description "The QtX11Extras module includes the library to access X11
870 from within Qt 5.")))
872 (define-public qtxmlpatterns
873 (package (inherit qtsvg)
874 (name "qtxmlpatterns")
878 (uri (string-append "https://download.qt.io/official_releases/qt/"
879 (version-major+minor version) "/" version
880 "/submodules/" name "-everywhere-src-"
884 "0ik7m1a0shjsyzs8n9hfx8m9hy1p3wg505slcs0xznj0pa0gdmaz"))))
886 (substitute-keyword-arguments (package-arguments qtsvg)
888 `(modify-phases ,phases
889 (add-after 'unpack 'disable-network-tests
890 (lambda _ (substitute* "tests/auto/auto.pro"
891 (("qxmlquery") "# qxmlquery")
892 (("xmlpatterns ") "# xmlpatterns"))
894 (native-inputs `(("perl" ,perl)))
895 (inputs `(("qtbase" ,qtbase)))
896 (synopsis "Qt XML patterns module")
897 (description "The QtXmlPatterns module is a XQuery and XPath engine for
898 XML and custom data models. It contains programs such as xmlpatterns and
899 xmlpatternsvalidator.")))
901 (define-public qtdeclarative
902 (package (inherit qtsvg)
903 (name "qtdeclarative")
907 (uri (string-append "https://download.qt.io/official_releases/qt/"
908 (version-major+minor version) "/" version
909 "/submodules/" name "-everywhere-src-"
913 "1kgj6q53rk573yi47j32mn1mfk5ag98zvhv9qgrlb78y0gw8c392"))))
915 (substitute-keyword-arguments (package-arguments qtsvg)
916 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
919 ("pkg-config" ,pkg-config)
922 ("qtxmlpatterns" ,qtxmlpatterns)))
926 (synopsis "Qt QML module (Quick 2)")
927 (description "The Qt QML module provides a framework for developing
928 applications and libraries with the QML language. It defines and implements the
929 language and engine infrastructure, and provides an API to enable application
930 developers to extend the QML language with custom types and integrate QML code
931 with JavaScript and C++.")))
933 (define-public qtconnectivity
934 (package (inherit qtsvg)
935 (name "qtconnectivity")
939 (uri (string-append "https://download.qt.io/official_releases/qt/"
940 (version-major+minor version) "/" version
941 "/submodules/" name "-everywhere-src-"
945 "1ia21llw610wd7licdm81p8zpkrkvkc5yc7y4wplgg6k2jyip42q"))))
948 ("pkg-config" ,pkg-config)
949 ("qtdeclarative" ,qtdeclarative)))
953 (synopsis "Qt Connectivity module")
954 (description "The Qt Connectivity modules provides modules for interacting
955 with Bluetooth and NFC.")))
957 (define-public qtwebsockets
958 (package (inherit qtsvg)
959 (name "qtwebsockets")
963 (uri (string-append "https://download.qt.io/official_releases/qt/"
964 (version-major+minor version) "/" version
965 "/submodules/" name "-everywhere-src-"
969 "13cbr2pffv1hwvm8d8kzask0pyc2j3brgq23vi5i1i70kihrfqdf"))))
971 (substitute-keyword-arguments (package-arguments qtsvg)
972 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
975 ("qtdeclarative" ,qtdeclarative)))
976 (inputs `(("qtbase" ,qtbase)))
977 (synopsis "Qt Web Sockets module")
978 (description "WebSocket is a web-based protocol designed to enable two-way
979 communication between a client application and a remote host. The Qt
980 WebSockets module provides C++ and QML interfaces that enable Qt applications
981 to act as a server that can process WebSocket requests, or a client that can
982 consume data received from the server, or both.")))
984 (define-public qtsensors
985 (package (inherit qtsvg)
990 (uri (string-append "https://download.qt.io/official_releases/qt/"
991 (version-major+minor version) "/" version
992 "/submodules/" name "-everywhere-src-"
996 "1iv3gmk121myqdr64d9lf2m816ypxrb526gn0ssxx8gp4j4c69qf"))))
998 (substitute-keyword-arguments (package-arguments qtsvg)
999 ((#:parallel-tests? _ #f) #f) ; can lead to race condition
1001 `(modify-phases ,phases
1002 (add-after 'unpack 'fix-tests
1004 (substitute* "tests/auto/qsensorgestures_gestures/tst_sensorgestures_gestures.cpp"
1005 (("2000") "5000") ;lengthen test timeout
1006 (("QTest::newRow(\"twist\") << \"twist\"") "")) ;failing test
1010 ("qtdeclarative" ,qtdeclarative)))
1011 (inputs `(("qtbase" ,qtbase)))
1012 (synopsis "Qt Sensors module")
1013 (description "The Qt Sensors API provides access to sensor hardware via QML
1014 and C++ interfaces. The Qt Sensors API also provides a motion gesture
1015 recognition API for devices.")))
1017 (define-public qtmultimedia
1018 (package (inherit qtsvg)
1019 (name "qtmultimedia")
1023 (uri (string-append "https://download.qt.io/official_releases/qt/"
1024 (version-major+minor version) "/" version
1025 "/submodules/" name "-everywhere-src-"
1029 "0vbjrxsdahgbgpc2zcvgg3mpijzd5kknz5clfcw2cq3310yqyq15"))
1030 (modules '((guix build utils)))
1033 (delete-file-recursively
1034 "examples/multimedia/spectrum/3rdparty")
1035 ;; We also prevent the spectrum example from being built.
1036 (substitute* "examples/multimedia/multimedia.pro"
1040 (substitute-keyword-arguments (package-arguments qtsvg)
1042 `(modify-phases ,phases
1044 (lambda* (#:key outputs #:allow-other-keys)
1045 (let ((out (assoc-ref outputs "out")))
1046 (invoke "qmake" "QT_BUILD_PARTS = libs tools tests"
1047 (string-append "QMAKE_LFLAGS_RPATH=-Wl,-rpath," out "/lib -Wl,-rpath,")
1048 (string-append "PREFIX=" out)))))))
1049 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1052 ("pkg-config" ,pkg-config)
1053 ("python" ,python-2)
1054 ("qtdeclarative" ,qtdeclarative)))
1056 `(("alsa-lib" ,alsa-lib)
1058 ("pulseaudio" ,pulseaudio)
1060 ;; Gstreamer is needed for the mediaplayer plugin
1061 ("gstreamer" ,gstreamer)
1062 ("gst-plugins-base" ,gst-plugins-base)))
1063 (synopsis "Qt Multimedia module")
1064 (description "The Qt Multimedia module provides set of APIs to play and
1065 record media, and manage a collection of media content. It also contains a
1066 set of plugins for interacting with pulseaudio and GStreamer.")))
1068 (define-public qtwayland
1069 (package (inherit qtsvg)
1074 (uri (string-append "https://download.qt.io/official_releases/qt/"
1075 (version-major+minor version) "/" version
1076 "/submodules/" name "-everywhere-src-"
1080 "0wdpxjr3zfmgcfg14zlwd8mjbc191pvlchj1xxd0lj30ldfy2daf"))
1081 (modules '((guix build utils)))
1083 ;; The examples try to build and cause the build to fail
1085 (delete-file-recursively "examples")
1088 (substitute-keyword-arguments (package-arguments qtsvg)
1090 `(modify-phases ,phases
1091 (add-before 'check 'set-ld-library-path
1092 ;; <https://lists.gnu.org/archive/html/guix-devel/2017-09/msg00019.html>
1094 ;; Make the uninstalled libQt5WaylandClient.so.5 available to the
1095 ;; wayland platform plugin.
1097 (setenv "LD_LIBRARY_PATH" (string-append (getcwd) "/lib"))
1102 ("pkg-config" ,pkg-config)
1103 ("qtdeclarative" ,qtdeclarative)))
1105 `(("fontconfig" ,fontconfig)
1106 ("freetype" ,freetype)
1108 ("libxcomposite" ,libxcomposite)
1109 ("libxext" ,libxext)
1110 ("libxkbcommon" ,libxkbcommon)
1111 ("libxrender" ,libxrender)
1115 ("wayland" ,wayland)))
1116 (synopsis "Qt Wayland module")
1117 (description "The Qt Wayland module provides the QtWayland client and
1118 compositor libraries.")))
1120 (define-public qtserialport
1121 (package (inherit qtsvg)
1122 (name "qtserialport")
1126 (uri (string-append "https://download.qt.io/official_releases/qt/"
1127 (version-major+minor version) "/" version
1128 "/submodules/" name "-everywhere-src-"
1132 "0vkgvicm67vds2iqmhnjsqwnx1f8zhbzc31w6q198i0x8b76j6xh"))))
1133 (native-inputs `(("perl" ,perl)))
1135 `(("qtbase" ,qtbase)
1138 (substitute-keyword-arguments (package-arguments qtsvg)
1140 `(modify-phases ,phases
1141 (add-after 'unpack 'patch-dlopen-paths
1142 (lambda* (#:key inputs #:allow-other-keys)
1143 (substitute* "src/serialport/qtudev_p.h"
1144 ;; Use the absolute paths for dynamically loaded libs,
1145 ;; otherwise the lib will be searched in LD_LIBRARY_PATH which
1146 ;; typically is not set in guix.
1147 (("^\\s*(udevLibrary->setFileNameAndVersion\\(QStringLiteral\\(\")(udev\"\\),\\s*[0-9]+\\);)" _ a b)
1148 (string-append a (assoc-ref inputs "eudev") "/lib/lib" b)))
1150 (synopsis "Qt Serial Port module")
1151 (description "The Qt Serial Port module provides the library for
1152 interacting with serial ports from within Qt.")))
1154 (define-public qtserialbus
1155 (package (inherit qtsvg)
1156 (name "qtserialbus")
1160 (uri (string-append "https://download.qt.io/official_releases/qt/"
1161 (version-major+minor version) "/" version
1162 "/submodules/" name "-everywhere-src-"
1166 "07k4g5qfh657das2f5i6ph0hl4bva13yzlmxnay7qpzqcb0w4x0p"))))
1168 `(("qtbase" ,qtbase)
1169 ("qtserialport" ,qtserialport)))
1170 (synopsis "Qt Serial Bus module")
1171 (description "The Qt Serial Bus API provides classes and functions to
1172 access the various industrial serial buses and protocols, such as CAN, ModBus,
1175 (define-public qtwebchannel
1176 (package (inherit qtsvg)
1177 (name "qtwebchannel")
1181 (uri (string-append "https://download.qt.io/official_releases/qt/"
1182 (version-major+minor version) "/" version
1183 "/submodules/" name "-everywhere-src-"
1187 "1z02dhrd1h2rpdhww9py9dnhss80xwf45n568y7gr3gay7ldlpwl"))))
1190 ("qtdeclarative" ,qtdeclarative)
1191 ("qtwebsockets" ,qtwebsockets)))
1192 (inputs `(("qtbase" ,qtbase)))
1193 (synopsis "Web communication library for Qt")
1194 (description "The Qt WebChannel module enables peer-to-peer communication
1195 between the host (QML/C++ application) and the client (HTML/JavaScript
1196 application). The transport mechanism is supported out of the box by the two
1197 popular web engines, Qt WebKit 2 and Qt WebEngine.")))
1199 (define-public qtwebglplugin
1200 (package (inherit qtsvg)
1201 (name "qtwebglplugin")
1205 (uri (string-append "https://download.qt.io/official_releases/qt/"
1206 (version-major+minor version) "/" version
1207 "/submodules/" name "-everywhere-src-"
1211 "0vazz9yr1qgpcq7p77vg9mrjxy6hjabvwj9irw5l5w7fmsk2ns0n"))))
1213 (substitute-keyword-arguments (package-arguments qtsvg)
1215 `(modify-phases ,phases
1216 (add-after 'unpack 'disable-network-tests
1217 (lambda _ (substitute* "tests/plugins/platforms/platforms.pro"
1218 (("webgl") "# webgl"))
1224 ("qtdeclarative" ,qtdeclarative)
1225 ("qtwebsockets" ,qtwebsockets)))
1226 (synopsis "QPA plugin for running an application via a browser using
1227 streamed WebGL commands")
1228 (description "Qt back end that uses WebGL for rendering. It allows Qt
1229 applications (with some limitations) to run in a web browser that supports
1230 WebGL. WebGL is a JavaScript API for rendering 2D and 3D graphics within any
1231 compatible web browser without the use of plug-ins. The API is similar to
1232 OpenGL ES 2.0 and can be used in HTML5 canvas elements")))
1234 (define-public qtwebview
1235 (package (inherit qtsvg)
1240 (uri (string-append "https://download.qt.io/official_releases/qt/"
1241 (version-major+minor version) "/" version
1242 "/submodules/" name "-everywhere-src-"
1246 "1r30n9vjcgh2cd2iycfwwwpmbz7grrd3iqrc0afwnri3vylnfqil"))))
1250 `(("qtbase" ,qtbase)
1251 ("qtdeclarative" ,qtdeclarative)))
1252 (synopsis "Display web content in a QML application")
1253 (description "Qt WebView provides a way to display web content in a QML
1254 application without necessarily including a full web browser stack by using
1255 native APIs where it makes sense.")))
1257 (define-public qtlocation
1258 (package (inherit qtsvg)
1263 (uri (string-append "https://download.qt.io/official_releases/qt/"
1264 (version-major+minor version) "/" version
1265 "/submodules/" name "-everywhere-src-"
1269 "0kh2c2ahg8xkpvqsva13i35ndsc0x0ypnmd6vix5pm5jvwg9366n"))))
1271 (substitute-keyword-arguments (package-arguments qtsvg)
1272 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1275 ("qtdeclarative" ,qtdeclarative)
1276 ("qtquickcontrols" ,qtquickcontrols)
1277 ("qtserialport" ,qtserialport)))
1280 ("openssl" ,openssl)
1283 (synopsis "Qt Location and Positioning modules")
1284 (description "The Qt Location module provides an interface for location,
1285 positioning and geolocation plugins.")))
1287 (define-public qttools
1288 (package (inherit qtsvg)
1293 (uri (string-append "https://download.qt.io/official_releases/qt/"
1294 (version-major+minor version) "/" version
1295 "/submodules/" name "-everywhere-src-"
1299 "1f1iqvksrlgkxdbagb6vvjib3argbv9l7iis6ymb8n0rfwn37s7h"))))
1301 (substitute-keyword-arguments (package-arguments qtsvg)
1302 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1305 ("qtdeclarative" ,qtdeclarative)
1306 ("vulkan-headers" ,vulkan-headers)))
1309 ("qtbase" ,qtbase)))
1310 (synopsis "Qt Tools and Designer modules")
1311 (description "The Qt Tools module provides a set of applications to browse
1312 the documentation, translate applications, generate help files and other stuff
1313 that helps in Qt development.")))
1315 (define-public qtscript
1316 (package (inherit qtsvg)
1321 (uri (string-append "https://download.qt.io/official_releases/qt/"
1322 (version-major+minor version) "/" version
1323 "/submodules/" name "-everywhere-src-"
1327 "0xprhd1brn30dqf5vy4inqgzpq48i8nlc428x9rr8fk5hdm4dhmj"))
1328 (patches (search-patches "qtscript-disable-tests.patch"))))
1331 ("qttools" ,qttools)))
1333 `(("qtbase" ,qtbase)))
1334 (synopsis "Qt Script module")
1335 (description "Qt provides support for application scripting with ECMAScript.
1336 The following guides and references cover aspects of programming with
1337 ECMAScript and Qt.")))
1339 (define-public qtquickcontrols
1340 (package (inherit qtsvg)
1341 (name "qtquickcontrols")
1345 (uri (string-append "https://download.qt.io/official_releases/qt/"
1346 (version-major+minor version) "/" version
1347 "/submodules/" name "-everywhere-src-"
1351 "1q11nr85436xzrf4mbrbav306hrz0s2qaclqhhb0g88vzcq2wxww"))))
1353 (substitute-keyword-arguments (package-arguments qtsvg)
1354 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1356 `(("qtbase" ,qtbase)
1357 ("qtdeclarative" ,qtdeclarative)))
1358 (synopsis "Qt Quick Controls and other Quick modules")
1359 (description "The QtScript module provides classes for making Qt
1360 applications scriptable. This module provides a set of extra components that
1361 can be used to build complete interfaces in Qt Quick.")))
1363 (define-public qtquickcontrols2
1364 (package (inherit qtsvg)
1365 (name "qtquickcontrols2")
1369 (uri (string-append "https://download.qt.io/official_releases/qt/"
1370 (version-major+minor version) "/" version
1371 "/submodules/" name "-everywhere-src-"
1375 "116b5nhmsx898626s37r446yci7kxd3k7xap1dh9spqklkwlj1da"))))
1377 (substitute-keyword-arguments (package-arguments qtsvg)
1378 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1380 `(("qtbase" ,qtbase)
1381 ("qtdeclarative" ,qtdeclarative)))
1382 (synopsis "Qt Quick Controls 2 and other Quick 2 modules")
1383 (description "The Qt Quick Controls 2 module contains the Qt Labs Platform
1384 module that provides platform integration: native dialogs, menus and menu bars,
1385 and tray icons. It falls back to Qt Widgets when a native implementation is
1388 (define-public qtgraphicaleffects
1389 (package (inherit qtsvg)
1390 (name "qtgraphicaleffects")
1394 (uri (string-append "https://download.qt.io/official_releases/qt/"
1395 (version-major+minor version) "/" version
1396 "/submodules/" name "-everywhere-src-"
1400 "1zd9wjh2hhd6lby0z3ak0ff6zkbv73hh0drrg9qp2yrgjfismp59"))))
1402 (substitute-keyword-arguments (package-arguments qtsvg)
1403 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1405 `(("qtbase" ,qtbase)
1406 ("qtdeclarative" ,qtdeclarative)))
1407 (synopsis "Qt Graphical Effects module")
1408 (description "The Qt Graphical Effects module provides a set of QML types
1409 for adding visually impressive and configurable effects to user interfaces.
1410 Effects are visual items that can be added to Qt Quick user interface as UI
1411 components. The API consists of over 20 effects provided as separate QML
1412 types. The effects cover functional areas such as blending, masking, blurring,
1413 coloring, and many more.")))
1415 (define-public qtdeclarative-render2d
1416 ;; As of Qt-5.8.0 this module has been merged into qtdeclarative
1417 (package (inherit qtsvg)
1418 (name "qtdeclarative-render2d")
1422 (uri (string-append "https://download.qt.io/official_releases/qt/"
1423 (version-major+minor version) "/" version
1424 "/submodules/" name "-everywhere-src-"
1428 "0zwch9vn17f3bpy300jcfxx6cx9qymk5j7khx0x9k1xqid4166c3"))
1429 (modules '((guix build utils)))
1432 (delete-file-recursively "tools/opengldummy/3rdparty")
1436 `(("qtbase" ,qtbase)
1437 ("qtdeclarative" ,qtdeclarative)))
1438 (synopsis "Qt Declarative Render module")
1439 (description "The Qt Declarative Render 2D module provides a Raster
1440 backend for QtQuick scene graph.")
1441 (properties `((superseded . ,qtdeclarative)))))
1443 (define-public qtgamepad
1444 (package (inherit qtsvg)
1449 (uri (string-append "https://download.qt.io/official_releases/qt/"
1450 (version-major+minor version) "/" version
1451 "/submodules/" name "-everywhere-src-"
1455 "076874iyadj7pkprlk24h257nb8i4sni9c6kbixm5zrr2y73fbxf"))))
1458 ("pkg-config" ,pkg-config)))
1460 `(("fontconfig" ,fontconfig)
1461 ("freetype" ,freetype)
1462 ("libxrender" ,libxrender)
1465 ("qtdeclarative" ,qtdeclarative)))
1466 (synopsis "Qt Gamepad module")
1467 (description "The Qt Gamepad module is an add-on library that enables Qt
1468 applications to support the use of gamepad hardware and in some cases remote
1469 control equipment. The module provides both QML and C++ interfaces. The
1470 primary target audience are embedded devices with fullscreen user interfaces,
1471 and mobile applications targeting TV-like form factors.")))
1473 (define-public qtscxml
1474 (package (inherit qtsvg)
1479 (uri (string-append "https://download.qt.io/official_releases/qt/"
1480 (version-major+minor version) "/" version
1481 "/submodules/" name "-everywhere-src-"
1485 "197p5x1dadgjb39pd2vw60r63lvz68i0pm5i8xbyzgzm94hwn9fn"))
1486 (modules '((guix build utils)))
1489 (delete-file-recursively "tests/3rdparty")
1490 ;; the scion test refers to the bundled 3rd party test code.
1491 (substitute* "tests/auto/auto.pro"
1495 `(("qtbase" ,qtbase)
1496 ("qtdeclarative" ,qtdeclarative)))
1497 (synopsis "Qt SCXML module")
1498 (description "The Qt SCXML module provides functionality to create state
1499 machines from SCXML files. This includes both dynamically creating state
1500 machines (loading the SCXML file and instantiating states and transitions) and
1501 generating a C++ file that has a class implementing the state machine. It
1502 also contains functionality to support data models and executable content.")))
1504 (define-public qtpurchasing
1505 (package (inherit qtsvg)
1506 (name "qtpurchasing")
1510 (uri (string-append "https://download.qt.io/official_releases/qt/"
1511 (version-major+minor version) "/" version
1512 "/submodules/" name "-everywhere-src-"
1516 "1xld1yx085mhnqdipy29g2yy5af67hfm0wy4mvj7pl6y5qj8jw9d"))))
1518 `(("qtbase" ,qtbase)
1519 ("qtdeclarative" ,qtdeclarative)))
1520 (synopsis "Qt Purchasing module")
1521 (description "The Qt Purchasing module provides and in-app API for
1522 purchasing goods and services.")))
1524 (define-public qtcanvas3d
1525 (package (inherit qtsvg)
1530 (uri (string-append "https://download.qt.io/official_releases/qt/"
1531 (version-major+minor version) "/" version
1532 "/submodules/" name "-everywhere-src-"
1536 "0h7arss7wr0jwl87kiwgbf0nlcgpbriyf7cnv9j4h7g8d09a777x"))
1537 (modules '((guix build utils)))
1540 (delete-file-recursively "examples/canvas3d/3rdparty")
1543 (substitute-keyword-arguments (package-arguments qtsvg)
1544 ;; Building the tests depends on the bundled 3rd party javascript files,
1545 ;; and the test phase fails to import QtCanvas3D, causing the phase to
1546 ;; fail, so we skip building them for now.
1548 `(modify-phases ,phases
1550 (lambda* (#:key outputs #:allow-other-keys)
1551 (let ((out (assoc-ref outputs "out")))
1552 (invoke "qmake" "QT_BUILD_PARTS = libs tools"
1553 (string-append "PREFIX=" out)))))))
1554 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1557 `(("qtbase" ,qtbase)
1558 ("qtdeclarative" ,qtdeclarative)))
1559 (synopsis "Qt Canvas 3D module")
1560 (description "The Qt Canvas 3D module provides a way to make WebGL-like 3D
1561 drawing calls from Qt Quick JavaScript.")))
1563 (define-public qtcharts
1564 (package (inherit qtsvg)
1569 (uri (string-append "https://download.qt.io/official_releases/qt/"
1570 (version-major+minor version) "/" version
1571 "/submodules/" name "-everywhere-src-"
1575 "0551qfqnsfiy8kb1ng2v0yn7s6ggy7ghcmis983sbzxzjv2i58zn"))))
1577 (substitute-keyword-arguments (package-arguments qtsvg)
1578 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1580 `(("qtbase" ,qtbase)
1581 ("qtdeclarative" ,qtdeclarative)))
1582 (synopsis "Qt Charts module")
1583 (description "The Qt Charts module provides a set of easy to use chart
1584 components. It uses the Qt Graphics View Framework, therefore charts can be
1585 easily integrated to modern user interfaces. Qt Charts can be used as QWidgets,
1586 QGraphicsWidget, or QML types. Users can easily create impressive graphs by
1587 selecting one of the charts themes.")
1588 (license license:gpl3)))
1590 (define-public qtdatavis3d
1591 (package (inherit qtsvg)
1592 (name "qtdatavis3d")
1596 (uri (string-append "https://download.qt.io/official_releases/qt/"
1597 (version-major+minor version) "/" version
1598 "/submodules/" name "-everywhere-src-"
1602 "05pzvrhvxhxjlav4axrhwlnxjzlr7mi8k3f06g59ryrwmb99kd37"))))
1604 (substitute-keyword-arguments (package-arguments qtsvg)
1605 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1607 `(("qtbase" ,qtbase)
1608 ("qtdeclarative" ,qtdeclarative)))
1609 (synopsis "Qt Data Visualization module")
1610 (description "The Qt Data Visualization module provides a way to visualize
1611 data in 3D as bar, scatter, and surface graphs. It is especially useful for
1612 visualizing depth maps and large quantities of rapidly changing data, such as
1613 data received from multiple sensors. The look and feel of graphs can be
1614 customized by using themes or by adding custom items and labels to them.")
1615 (license license:gpl3)))
1617 (define-public qtnetworkauth
1618 (package (inherit qtsvg)
1619 (name "qtnetworkauth")
1623 (uri (string-append "https://download.qt.io/official_releases/qt/"
1624 (version-major+minor version) "/" version
1625 "/submodules/" name "-everywhere-src-"
1629 "1zmpvkhf2kmnr8vsa6jq675d5cpnmsg3f8yds6g91yq1g3prqdvr"))))
1631 (substitute-keyword-arguments (package-arguments qtsvg)
1633 `(modify-phases ,phases
1634 (add-after 'unpack 'remove-failing-test
1636 ;; These tests can't find their test data.
1637 (substitute* "tests/auto/auto.pro"
1638 (("oauth1 ") "# oauth1 "))
1641 `(("qtbase" ,qtbase)))
1642 (synopsis "Qt Network Authorization module")
1643 (description "The Qt Network Authorization module provides an
1644 implementation of OAuth and OAuth2 authenticathon methods for Qt.")))
1646 (define-public qtremoteobjects
1647 (package (inherit qtsvg)
1648 (name "qtremoteobjects")
1652 (uri (string-append "https://download.qt.io/official_releases/qt/"
1653 (version-major+minor version) "/" version
1654 "/submodules/" name "-everywhere-src-"
1658 "06awsaf15rch1y9p2q9kdlmlaa8g28whbzf04b10zfflyijnvg7j"))))
1660 (substitute-keyword-arguments (package-arguments qtsvg)
1662 `(modify-phases ,phases
1663 (add-after 'unpack 'remove-failing-test
1665 ;; This test can't find its imports.
1666 (substitute* "tests/auto/qml/qml.pro"
1667 (("integration") "# integration")
1668 (("usertypes") "# usertypes"))
1671 `(("qtbase" ,qtbase)
1672 ("qtdeclarative" ,qtdeclarative)))
1673 (synopsis "Qt Remote Objects module")
1674 (description "The Qt Remote Objects module is an @dfn{inter-process
1675 communication} (IPC) module developed for Qt. The idea is to extend existing
1676 Qt's functionalities to enable an easy exchange of information between
1677 processes or computers.")))
1679 (define-public qtspeech
1680 (package (inherit qtsvg)
1685 (uri (string-append "https://download.qt.io/official_releases/qt/"
1686 (version-major+minor version) "/" version
1687 "/submodules/" name "-everywhere-src-"
1691 "110xr2y174sayi9f6swzp1wx7mx4sw9rifcdx2bkbsnbfab6zg8a"))))
1693 (substitute-keyword-arguments (package-arguments qtsvg)
1694 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1696 `(("qtbase" ,qtbase)))
1699 ("qtdeclarative" ,qtdeclarative)
1700 ("qtmultimedia" ,qtmultimedia)
1701 ("qtxmlpatterns" ,qtxmlpatterns)))
1702 (synopsis "Qt Speech module")
1703 (description "The Qt Speech module enables a Qt application to support
1704 accessibility features such as text-to-speech, which is useful for end-users
1705 who are visually challenged or cannot access the application for whatever
1706 reason. The most common use case where text-to-speech comes in handy is when
1707 the end-user is driving and cannot attend the incoming messages on the phone.
1708 In such a scenario, the messaging application can read out the incoming
1711 (define-public python-sip
1719 (string-append "mirror://sourceforge/pyqt/sip/"
1720 "sip-" version "/sip-" version ".tar.gz"))
1723 "08iqj9qyanc6a4bllbd87gv8pd1gkplw1jhfa1sz0gcq3g1pyq94"))))
1724 (build-system gnu-build-system)
1726 `(("python" ,python-wrapper)))
1728 `(#:tests? #f ; no check target
1729 #:modules ((srfi srfi-1)
1730 ,@%gnu-build-system-modules)
1732 (modify-phases %standard-phases
1734 (lambda* (#:key inputs outputs #:allow-other-keys)
1735 (let* ((out (assoc-ref outputs "out"))
1736 (bin (string-append out "/bin"))
1737 (include (string-append out "/include"))
1738 (python (assoc-ref inputs "python"))
1740 (last (string-split python #\-)))
1743 (take (string-split python-version #\.) 2)
1745 (lib (string-append out "/lib/python"
1748 (invoke "python" "configure.py"
1751 "--incdir" include)))))))
1752 (home-page "https://www.riverbankcomputing.com/software/sip/intro")
1753 (synopsis "Python binding creator for C and C++ libraries")
1755 "SIP is a tool to create Python bindings for C and C++ libraries. It
1756 was originally developed to create PyQt, the Python bindings for the Qt
1757 toolkit, but can be used to create bindings for any C or C++ library.
1759 SIP comprises a code generator and a Python module. The code generator
1760 processes a set of specification files and generates C or C++ code, which
1761 is then compiled to create the bindings extension module. The SIP Python
1762 module provides support functions to the automatically generated code.")
1763 ;; There is a choice between a python like license, gpl2 and gpl3.
1764 ;; For compatibility with pyqt, we need gpl3.
1765 (license license:gpl3)))
1767 (define-public python2-sip
1768 (package (inherit python-sip)
1769 (name "python2-sip")
1771 `(("python" ,python-2)))))
1773 (define-public python-pyqt
1775 (name "python-pyqt")
1781 (string-append "mirror://sourceforge/pyqt/PyQt5/"
1782 "PyQt-" version "/PyQt5_gpl-"
1786 "00wn9svgyp0fsrkc4ma15zcxg31pw4gsgaz6nwb3fhy3al8miakw"))
1787 (patches (search-patches "pyqt-configure.patch"
1788 "pyqt-public-sip.patch"))))
1789 (build-system gnu-build-system)
1791 `(("qtbase" ,qtbase))) ; for qmake
1793 `(("python-sip" ,python-sip)))
1795 `(("python" ,python-wrapper)
1797 ("qtconnectivity" ,qtconnectivity)
1798 ("qtdeclarative" ,qtdeclarative)
1799 ("qtlocation" ,qtlocation)
1800 ("qtmultimedia" ,qtmultimedia)
1801 ("qtsensors" ,qtsensors)
1802 ("qtserialport" ,qtserialport)
1804 ("qttools" ,qttools)
1805 ("qtwebchannel" ,qtwebchannel)
1806 ("qtwebkit" ,qtwebkit)
1807 ("qtwebsockets" ,qtwebsockets)
1808 ("qtx11extras" ,qtx11extras)
1809 ("qtxmlpatterns" ,qtxmlpatterns)))
1811 `(#:modules ((srfi srfi-1)
1812 ,@%gnu-build-system-modules)
1814 (modify-phases %standard-phases
1816 (lambda* (#:key inputs outputs #:allow-other-keys)
1817 (let* ((out (assoc-ref outputs "out"))
1818 (bin (string-append out "/bin"))
1819 (sip (string-append out "/share/sip"))
1820 (plugins (string-append out "/plugins"))
1821 (designer (string-append plugins "/designer"))
1822 (qml (string-append plugins "/PyQt5"))
1823 (python (assoc-ref inputs "python"))
1825 (last (string-split python #\-)))
1828 (take (string-split python-version #\.) 2)
1830 (lib (string-append out "/lib/python"
1833 (stubs (string-append lib "/PyQt5")))
1834 (invoke "python" "configure.py"
1838 "--designer-plugindir" designer
1839 "--qml-plugindir" qml
1840 ; Where to install the PEP 484 Type Hints stub
1841 ; files. Without this the stubs are tried to be
1842 ; installed into the python package's
1843 ; site-package directory, which is read-only.
1845 "--sipdir" sip)))))))
1846 (home-page "https://www.riverbankcomputing.com/software/pyqt/intro")
1847 (synopsis "Python bindings for Qt")
1849 "PyQt is a set of Python v2 and v3 bindings for the Qt application
1850 framework. The bindings are implemented as a set of Python modules and
1851 contain over 620 classes.")
1852 (license license:gpl3)))
1854 ;; XXX: This is useful because qtwebkit does not build reliably at this time.
1855 ;; Ultimately, it would be nicer to have a more modular set of python-pyqt-*
1856 ;; packages that could be used together.
1857 (define-public python-pyqt-without-qtwebkit
1858 (package (inherit python-pyqt)
1859 (name "python-pyqt-without-qtwebkit")
1861 (alist-delete "qtwebkit" (package-inputs python-pyqt)))))
1863 (define-public python2-pyqt
1864 (package (inherit python-pyqt)
1865 (name "python2-pyqt")
1867 `(("python-sip" ,python2-sip)
1868 ("qtbase" ,qtbase)))
1870 `(("python" ,python-2)
1871 ("python2-enum34" ,python2-enum34)
1872 ,@(alist-delete "python" (package-inputs python-pyqt))))))
1874 (define-public python2-pyqt-4
1875 (package (inherit python-pyqt)
1876 (name "python2-pyqt")
1882 (string-append "mirror://sourceforge/pyqt/PyQt4/"
1883 "PyQt-" version "/PyQt4_gpl_x11-"
1887 "1nw8r88a5g2d550yvklawlvns8gd5slw53yy688kxnsa65aln79w"))))
1889 `(("python-sip" ,python2-sip)
1891 (inputs `(("python" ,python-2)))
1893 `(#:tests? #f ; no check target
1894 #:modules ((srfi srfi-1)
1895 ,@%gnu-build-system-modules)
1897 (modify-phases %standard-phases
1899 (lambda* (#:key inputs outputs #:allow-other-keys)
1900 (let* ((out (assoc-ref outputs "out"))
1901 (bin (string-append out "/bin"))
1902 (sip (string-append out "/share/sip"))
1903 (python (assoc-ref inputs "python"))
1905 (last (string-split python #\-)))
1908 (take (string-split python-version #\.) 2)
1910 (lib (string-append out "/lib/python"
1913 (invoke "python" "configure.py"
1917 "--sipdir" sip)))))))
1918 (license (list license:gpl2 license:gpl3)))) ; choice of either license
1920 (define-public qscintilla
1926 (uri (string-append "mirror://sourceforge/pyqt/QScintilla2/"
1927 "QScintilla-" version "/QScintilla_gpl-"
1931 "06hs6civq13dvzlws0spjb7gwyk6kynpnfwg5plhahnxf7g5h137"))))
1932 (build-system gnu-build-system)
1935 (modify-phases %standard-phases
1937 (lambda* (#:key outputs #:allow-other-keys)
1938 (let ((out (assoc-ref outputs "out")))
1940 (substitute* "qscintilla.pro"
1941 (("\\$\\$\\[QT_INSTALL_LIBS\\]")
1942 (string-append out "/lib"))
1943 (("\\$\\$\\[QT_INSTALL_HEADERS\\]")
1944 (string-append out "/include"))
1945 (("\\$\\$\\[QT_INSTALL_TRANSLATIONS\\]")
1946 (string-append out "/translations"))
1947 (("\\$\\$\\[QT_INSTALL_DATA\\]")
1948 (string-append out "/lib/qt$${QT_MAJOR_VERSION}"))
1949 (("\\$\\$\\[QT_HOST_DATA\\]")
1950 (string-append out "/lib/qt$${QT_MAJOR_VERSION}")))
1951 (invoke "qmake")))))))
1952 (native-inputs `(("qtbase" ,qtbase)))
1953 (home-page "https://www.riverbankcomputing.co.uk/software/qscintilla/intro")
1954 (synopsis "Qt port of the Scintilla C++ editor control")
1955 (description "QScintilla is a port to Qt of Neil Hodgson's Scintilla C++
1956 editor control. QScintilla includes features especially useful when editing
1957 and debugging source code. These include support for syntax styling, error
1958 indicators, code completion and call tips.")
1959 (license license:gpl3+)))
1961 (define-public python-qscintilla
1962 (package (inherit qscintilla)
1963 (name "python-qscintilla")
1966 (list "--pyqt=PyQt5"
1967 (string-append "--pyqt-sipdir="
1968 (assoc-ref %build-inputs "python-pyqt")
1970 (string-append "--qsci-incdir="
1971 (assoc-ref %build-inputs "qscintilla")
1973 (string-append "--qsci-libdir="
1974 (assoc-ref %build-inputs "qscintilla")
1977 (modify-phases %standard-phases
1979 (lambda* (#:key outputs configure-flags #:allow-other-keys)
1981 (apply invoke "python3" "configure.py"
1983 ;; Install to the right directory
1984 (substitute* '("Makefile"
1986 (("\\$\\(INSTALL_ROOT\\)/gnu/store/[^/]+")
1987 (assoc-ref outputs "out")))
1988 ;; And fix the installed.txt file
1989 (substitute* "installed.txt"
1990 (("/gnu/store/[^/]+")
1991 (assoc-ref outputs "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)