Commit | Line | Data |
---|---|---|
bd677c2d | 1 | ;;; GNU Guix --- Functional package management for GNU |
84ef83dd | 2 | ;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr> |
5b490ab5 | 3 | ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com> |
31580979 | 4 | ;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org> |
418c62ff | 5 | ;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il> |
4a78fd46 | 6 | ;;; Copyright © 2016, 2017 Nils Gillmann <ng0@n0.is> |
fc381a33 | 7 | ;;; Copyright © 2016 Thomas Danckaert <post@thomasdanckaert.be> |
3283f261 | 8 | ;;; Copyright © 2017, 2018 Ricardo Wurmus <rekado@elephly.net> |
3befd0a9 | 9 | ;;; Copyright © 2017 Quiliro <quiliro@fsfla.org> |
506cbdb3 | 10 | ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
04162e83 | 11 | ;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
359e30c9 | 12 | ;;; Copyright © 2018 Hartmut Goebel <h.goebel@crazy-compilers.com> |
bd677c2d AE |
13 | ;;; |
14 | ;;; This file is part of GNU Guix. | |
15 | ;;; | |
16 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
17 | ;;; under the terms of the GNU General Public License as published by | |
18 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
19 | ;;; your option) any later version. | |
20 | ;;; | |
21 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
22 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
23 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
24 | ;;; GNU General Public License for more details. | |
25 | ;;; | |
26 | ;;; You should have received a copy of the GNU General Public License | |
27 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
28 | ||
29 | (define-module (gnu packages qt) | |
225941b0 | 30 | #:use-module ((guix licenses) #:prefix license:) |
bd677c2d AE |
31 | #:use-module (guix packages) |
32 | #:use-module (guix download) | |
f198ffd0 | 33 | #:use-module (guix build utils) |
9e81af9e | 34 | #:use-module (guix build-system cmake) |
bd677c2d | 35 | #:use-module (guix build-system gnu) |
2456153a | 36 | #:use-module (guix build-system trivial) |
84ef83dd AE |
37 | #:use-module (guix packages) |
38 | #:use-module (guix utils) | |
1e9ed0e3 | 39 | #:use-module (gnu packages) |
b332e366 AE |
40 | #:use-module (gnu packages bison) |
41 | #:use-module (gnu packages compression) | |
2cba3d6f SB |
42 | #:use-module (gnu packages cups) |
43 | #:use-module (gnu packages databases) | |
aa8c0ada | 44 | #:use-module (gnu packages documentation) |
b332e366 | 45 | #:use-module (gnu packages fontutils) |
0009ed71 | 46 | #:use-module (gnu packages flex) |
bc8ede01 | 47 | #:use-module (gnu packages freedesktop) |
8b6a5e0f | 48 | #:use-module (gnu packages gl) |
b332e366 | 49 | #:use-module (gnu packages glib) |
0009ed71 SB |
50 | #:use-module (gnu packages gnuzilla) |
51 | #:use-module (gnu packages gperf) | |
04231311 | 52 | #:use-module (gnu packages gstreamer) |
f7fb0ccb | 53 | #:use-module (gnu packages gtk) |
b332e366 | 54 | #:use-module (gnu packages icu4c) |
e55354b8 | 55 | #:use-module (gnu packages image) |
b332e366 | 56 | #:use-module (gnu packages linux) |
04f8decf | 57 | #:use-module (gnu packages maths) |
0009ed71 SB |
58 | #:use-module (gnu packages pciutils) |
59 | #:use-module (gnu packages pcre) | |
b332e366 AE |
60 | #:use-module (gnu packages perl) |
61 | #:use-module (gnu packages pkg-config) | |
39fa8f6c | 62 | #:use-module (gnu packages pulseaudio) |
b332e366 | 63 | #:use-module (gnu packages python) |
8b6a5e0f | 64 | #:use-module (gnu packages ruby) |
51519fd3 | 65 | #:use-module (gnu packages sdl) |
cc2b77df | 66 | #:use-module (gnu packages tls) |
0009ed71 SB |
67 | #:use-module (gnu packages xdisorg) |
68 | #:use-module (gnu packages xorg) | |
69 | #:use-module (gnu packages xml)) | |
bd677c2d | 70 | |
aa8c0ada TD |
71 | (define-public grantlee |
72 | (package | |
73 | (name "grantlee") | |
74 | (version "5.1.0") | |
75 | (source | |
76 | (origin | |
77 | (method url-fetch) | |
78 | (uri (string-append "https://github.com/steveire/grantlee/archive/v" | |
79 | version ".tar.gz")) | |
80 | (file-name (string-append name "-" version ".tar.gz")) | |
81 | (sha256 | |
82 | (base32 "1lf9rkv0i0kd7fvpgg5l8jb87zw8dzcwd1liv6hji7g4wlpmfdiq")))) | |
83 | (native-inputs | |
868b1a02 | 84 | ;; Optional: lcov and cccc, both are for code coverage |
aa8c0ada TD |
85 | `(("doxygen" ,doxygen))) |
86 | (inputs | |
87 | `(("qtbase" ,qtbase) | |
88 | ("qtscript" ,qtscript))) | |
89 | (build-system cmake-build-system) | |
90 | (arguments | |
91 | `(#:phases | |
92 | (modify-phases %standard-phases | |
868b1a02 HG |
93 | (add-before 'check 'check-setup |
94 | (lambda _ | |
95 | ;; make Qt render "offscreen", required for tests | |
96 | (setenv "QT_QPA_PLATFORM" "offscreen") | |
97 | #t))))) | |
aa8c0ada TD |
98 | (home-page "https://github.com/steveire/grantlee") |
99 | (synopsis "Libraries for text templating with Qt") | |
100 | (description "Grantlee Templates can be used for theming and generation of | |
101 | other text such as code. The syntax uses the syntax of the Django template | |
102 | system, and the core design of Django is reused in Grantlee.") | |
103 | (license license:lgpl2.0+))) | |
104 | ||
b332e366 AE |
105 | (define-public qt |
106 | (package | |
107 | (name "qt") | |
f79c7e97 | 108 | (version "5.11.1") |
5acd59ee | 109 | (outputs '("out" "examples")) |
b332e366 AE |
110 | (source (origin |
111 | (method url-fetch) | |
f7fb0ccb AE |
112 | (uri |
113 | (string-append | |
114 | "http://download.qt.io/official_releases/qt/" | |
115 | (version-major+minor version) | |
116 | "/" version | |
f79c7e97 | 117 | "/single/qt-everywhere-src-" |
f7fb0ccb | 118 | version ".tar.xz")) |
b332e366 | 119 | (sha256 |
418c62ff | 120 | (base32 |
f79c7e97 | 121 | "0azva1wx298jh0xskymz8jic83yhxs1xfxf321wqd5lwiyq2qq1r")) |
14bcc1e1 AE |
122 | (modules '((guix build utils))) |
123 | (snippet | |
bc554b43 AE |
124 | '(begin |
125 | ;; Remove qtwebengine, which relies on a bundled copy of | |
126 | ;; chromium. Not only does it fail compilation in qt 5.5: | |
127 | ;; 3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc:362:10: | |
128 | ;; error: cannot convert ‘bool’ to ‘boolean’ in return | |
129 | ;; it might also pose security problems. | |
130 | ;; Alternatively, we could use the "-skip qtwebengine" | |
131 | ;; configuration option. | |
132 | (delete-file-recursively "qtwebengine") | |
5acd59ee EF |
133 | ;; The following snippets are copied from their mondular-qt counterparts. |
134 | (for-each | |
135 | (lambda (dir) | |
136 | (delete-file-recursively (string-append "qtbase/src/3rdparty/" dir))) | |
137 | (list "double-conversion" "freetype" "harfbuzz-ng" | |
f79c7e97 | 138 | "libpng" "libjpeg" "pcre2" "xcb" |
5acd59ee EF |
139 | "xkbcommon" "zlib")) |
140 | (for-each | |
141 | (lambda (dir) | |
142 | (delete-file-recursively dir)) | |
143 | (list "qtimageformats/src/3rdparty" | |
144 | "qtmultimedia/examples/multimedia/spectrum/3rdparty" | |
145 | "qtwayland/examples" | |
f79c7e97 | 146 | "qtscxml/tests/3rdparty" |
5acd59ee EF |
147 | "qtcanvas3d/examples/canvas3d/3rdparty")) |
148 | ;; Tests depend on this example, which depends on the 3rd party code. | |
149 | (substitute* "qtmultimedia/examples/multimedia/multimedia.pro" | |
6cbee49d | 150 | (("spectrum") "#")) |
f79c7e97 EF |
151 | (substitute* "qtxmlpatterns/tests/auto/auto.pro" |
152 | (("qxmlquery") "# qxmlquery") | |
153 | (("xmlpatterns ") "# xmlpatterns")) | |
154 | (substitute* "qtwebglplugin/tests/plugins/platforms/platforms.pro" | |
155 | (("webgl") "# webgl")) | |
156 | (substitute* "qtscxml/tests/auto/auto.pro" | |
157 | (("scion") "#")) | |
158 | (substitute* "qtnetworkauth/tests/auto/auto.pro" | |
159 | (("oauth1 ") "# oauth1 ")) | |
160 | (substitute* "qtremoteobjects/tests/auto/qml/qml.pro" | |
161 | (("integration") "# integration") | |
162 | (("usertypes") "# usertypes")) | |
6cbee49d | 163 | #t)))) |
b332e366 | 164 | (build-system gnu-build-system) |
ef0cf53e AE |
165 | (propagated-inputs |
166 | `(("mesa" ,mesa))) | |
b332e366 | 167 | (inputs |
b332e366 | 168 | `(("alsa-lib" ,alsa-lib) |
5acd59ee | 169 | ("bluez" ,bluez) |
2cba3d6f | 170 | ("cups" ,cups) |
5acd59ee EF |
171 | ("dbus" ,dbus) |
172 | ("double-conversion" ,double-conversion) | |
0009ed71 | 173 | ("expat" ,expat) |
b332e366 AE |
174 | ("fontconfig" ,fontconfig) |
175 | ("freetype" ,freetype) | |
176 | ("glib" ,glib) | |
5acd59ee EF |
177 | ("gstreamer" ,gstreamer) |
178 | ("gst-plugins-base" ,gst-plugins-base) | |
f7fb0ccb | 179 | ("harfbuzz" ,harfbuzz) |
b332e366 | 180 | ("icu4c" ,icu4c) |
5acd59ee EF |
181 | ("jasper" ,jasper) |
182 | ("libinput" ,libinput-minimal) | |
f198ffd0 | 183 | ("libjpeg" ,libjpeg) |
2cba3d6f | 184 | ("libmng" ,libmng) |
0009ed71 | 185 | ("libpci" ,pciutils) |
b332e366 | 186 | ("libpng" ,libpng) |
5acd59ee EF |
187 | ("libtiff" ,libtiff) |
188 | ("libwebp" ,libwebp) | |
b332e366 | 189 | ("libx11" ,libx11) |
0009ed71 SB |
190 | ("libxcomposite" ,libxcomposite) |
191 | ("libxcursor" ,libxcursor) | |
5acd59ee | 192 | ("libxext" ,libxext) |
0009ed71 | 193 | ("libxfixes" ,libxfixes) |
b332e366 | 194 | ("libxi" ,libxi) |
0009ed71 | 195 | ("libxinerama" ,libxinerama) |
b332e366 | 196 | ("libxkbcommon" ,libxkbcommon) |
0009ed71 SB |
197 | ("libxml2" ,libxml2) |
198 | ("libxrandr" ,libxrandr) | |
b332e366 | 199 | ("libxrender" ,libxrender) |
0009ed71 SB |
200 | ("libxslt" ,libxslt) |
201 | ("libxtst" ,libxtst) | |
202 | ("mtdev" ,mtdev) | |
3283f261 | 203 | ("mariadb" ,mariadb) |
0009ed71 | 204 | ("nss" ,nss) |
b332e366 | 205 | ("openssl" ,openssl) |
2cba3d6f | 206 | ("postgresql" ,postgresql) |
39fa8f6c | 207 | ("pulseaudio" ,pulseaudio) |
5acd59ee | 208 | ("pcre2" ,pcre2) |
f79c7e97 | 209 | ;("sqlite" ,sqlite) |
0009ed71 | 210 | ("udev" ,eudev) |
2cba3d6f | 211 | ("unixodbc" ,unixodbc) |
5acd59ee | 212 | ("wayland" ,wayland) |
b332e366 AE |
213 | ("xcb-util" ,xcb-util) |
214 | ("xcb-util-image" ,xcb-util-image) | |
215 | ("xcb-util-keysyms" ,xcb-util-keysyms) | |
216 | ("xcb-util-renderutil" ,xcb-util-renderutil) | |
217 | ("xcb-util-wm" ,xcb-util-wm) | |
218 | ("zlib" ,zlib))) | |
c4c4cc05 | 219 | (native-inputs |
0009ed71 SB |
220 | `(("bison" ,bison) |
221 | ("flex" ,flex) | |
222 | ("gperf" ,gperf) | |
0009ed71 SB |
223 | ("perl" ,perl) |
224 | ("pkg-config" ,pkg-config) | |
225 | ("python" ,python-2) | |
226 | ("ruby" ,ruby) | |
ce0614dd | 227 | ("which" ,(@ (gnu packages base) which)))) |
b332e366 | 228 | (arguments |
2a43df22 EF |
229 | `(#:parallel-build? #f ; Triggers race condition in qtbase module on Hydra. |
230 | #:phases | |
cce28b0c | 231 | (modify-phases %standard-phases |
2470d779 AE |
232 | (add-after 'configure 'patch-bin-sh |
233 | (lambda _ | |
5acd59ee | 234 | (substitute* '("qtbase/configure" |
2470d779 AE |
235 | "qtbase/mkspecs/features/qt_functions.prf" |
236 | "qtbase/qmake/library/qmakebuiltins.cpp") | |
237 | (("/bin/sh") (which "sh"))) | |
238 | #t)) | |
cce28b0c AE |
239 | (replace 'configure |
240 | (lambda* (#:key outputs #:allow-other-keys) | |
5acd59ee EF |
241 | (let ((out (assoc-ref outputs "out")) |
242 | (examples (assoc-ref outputs "examples"))) | |
cce28b0c AE |
243 | (substitute* '("configure" "qtbase/configure") |
244 | (("/bin/pwd") (which "pwd"))) | |
245 | (substitute* "qtbase/src/corelib/global/global.pri" | |
246 | (("/bin/ls") (which "ls"))) | |
247 | ;; do not pass "--enable-fast-install", which makes the | |
248 | ;; configure process fail | |
249 | (zero? (system* | |
250 | "./configure" | |
251 | "-verbose" | |
252 | "-prefix" out | |
d13c1d33 EF |
253 | "-docdir" (string-append out "/share/doc/qt5") |
254 | "-headerdir" (string-append out "/include/qt5") | |
255 | "-archdatadir" (string-append out "/lib/qt5") | |
256 | "-datadir" (string-append out "/share/qt5") | |
257 | "-examplesdir" (string-append | |
258 | examples "/share/doc/qt5/examples") ; 151MiB | |
cce28b0c AE |
259 | "-opensource" |
260 | "-confirm-license" | |
d13c1d33 EF |
261 | |
262 | ;; These features require higher versions of Linux than the | |
263 | ;; minimum version of the glibc. See | |
264 | ;; src/corelib/global/minimum-linux_p.h. By disabling these | |
265 | ;; features Qt5 applications can be used on the oldest | |
266 | ;; kernels that the glibc supports, including the RHEL6 | |
267 | ;; (2.6.32) and RHEL7 (3.10) kernels. | |
268 | "-no-feature-getentropy" ; requires Linux 3.17 | |
269 | "-no-feature-renameat2" ; requires Linux 3.16 | |
270 | ||
5acd59ee | 271 | ;; Do not build examples; for the time being, we |
4dd0a8b6 | 272 | ;; prefer to save the space and build time. |
5acd59ee | 273 | "-no-compile-examples" |
cce28b0c AE |
274 | ;; Most "-system-..." are automatic, but some use |
275 | ;; the bundled copy by default. | |
f79c7e97 | 276 | ;"-system-sqlite" |
cce28b0c | 277 | "-system-harfbuzz" |
d13c1d33 | 278 | "-system-pcre" |
cce28b0c AE |
279 | ;; explicitly link with openssl instead of dlopening it |
280 | "-openssl-linked" | |
281 | ;; explicitly link with dbus instead of dlopening it | |
282 | "-dbus-linked" | |
5acd59ee EF |
283 | ;; don't use the precompiled headers |
284 | "-no-pch" | |
cce28b0c AE |
285 | ;; drop special machine instructions not supported |
286 | ;; on all instances of the target | |
287 | ,@(if (string-prefix? "x86_64" | |
288 | (or (%current-target-system) | |
289 | (%current-system))) | |
290 | '() | |
291 | '("-no-sse2")) | |
cce28b0c | 292 | "-no-mips_dsp" |
d13c1d33 EF |
293 | "-no-mips_dspr2"))))) |
294 | (add-after 'install 'patch-mkspecs | |
295 | (lambda* (#:key outputs #:allow-other-keys) | |
296 | (let* ((out (assoc-ref outputs "out")) | |
297 | (archdata (string-append out "/lib/qt5")) | |
298 | (mkspecs (string-append archdata "/mkspecs")) | |
299 | (qt_config.prf (string-append | |
300 | mkspecs "/features/qt_config.prf"))) | |
301 | ;; For each Qt module, let `qmake' uses search paths in the | |
302 | ;; module directory instead of all in QT_INSTALL_PREFIX. | |
303 | (substitute* qt_config.prf | |
304 | (("\\$\\$\\[QT_INSTALL_HEADERS\\]") | |
305 | "$$clean_path($$replace(dir, mkspecs/modules, ../../include/qt5))") | |
306 | (("\\$\\$\\[QT_INSTALL_LIBS\\]") | |
307 | "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))") | |
308 | (("\\$\\$\\[QT_HOST_LIBS\\]") | |
309 | "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))") | |
310 | (("\\$\\$\\[QT_INSTALL_BINS\\]") | |
311 | "$$clean_path($$replace(dir, mkspecs/modules, ../../bin))")) | |
312 | ||
313 | ;; Searches Qt tools in the current PATH instead of QT_HOST_BINS. | |
314 | (substitute* (string-append mkspecs "/features/qt_functions.prf") | |
315 | (("cmd = \\$\\$\\[QT_HOST_BINS\\]/\\$\\$2") | |
316 | "cmd = $$system(which $${2}.pl 2>/dev/null || which $${2})")) | |
317 | ||
318 | ;; Resolve qmake spec files within qtbase by absolute paths. | |
319 | (substitute* | |
320 | (map (lambda (file) | |
321 | (string-append mkspecs "/features/" file)) | |
322 | '("device_config.prf" "moc.prf" "qt_build_config.prf" | |
323 | "qt_config.prf" "winrt/package_manifest.prf")) | |
324 | (("\\$\\$\\[QT_HOST_DATA/get\\]") archdata) | |
325 | (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata)) | |
326 | #t))) | |
327 | (add-after 'unpack 'patch-paths | |
328 | ;; Use the absolute paths for dynamically loaded libs, otherwise | |
329 | ;; the lib will be searched in LD_LIBRARY_PATH which typically is | |
330 | ;; not set in guix. | |
331 | (lambda* (#:key inputs #:allow-other-keys) | |
332 | ;; libresolve | |
333 | (let ((glibc (assoc-ref inputs ,(if (%current-target-system) | |
334 | "cross-libc" "libc")))) | |
335 | (substitute* '("qtbase/src/network/kernel/qdnslookup_unix.cpp" | |
336 | "qtbase/src/network/kernel/qhostinfo_unix.cpp") | |
337 | (("^\\s*(lib.setFileName\\(QLatin1String\\(\")(resolv\"\\)\\);)" _ a b) | |
338 | (string-append a glibc "/lib/lib" b)))) | |
339 | ;; X11/locale (compose path) | |
340 | (substitute* "qtbase/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp" | |
341 | ;; Don't search in /usr/…/X11/locale, … | |
342 | (("^\\s*m_possibleLocations.append\\(QStringLiteral\\(\"/usr/.*/X11/locale\"\\)\\);" line) | |
343 | (string-append "// " line)) | |
344 | ;; … but use libx11's path | |
345 | (("^\\s*(m_possibleLocations.append\\(QStringLiteral\\()X11_PREFIX \"(/.*/X11/locale\"\\)\\);)" _ a b) | |
346 | (string-append a "\"" (assoc-ref inputs "libx11") b))) | |
347 | ;; libGL | |
348 | (substitute* "qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp" | |
349 | (("^\\s*(QLibrary lib\\(QLatin1String\\(\")(GL\"\\)\\);)" _ a b) | |
350 | (string-append a (assoc-ref inputs "mesa") "/lib/lib" b))) | |
351 | ;; libXcursor | |
352 | (substitute* "qtbase/src/plugins/platforms/xcb/qxcbcursor.cpp" | |
353 | (("^\\s*(QLibrary xcursorLib\\(QLatin1String\\(\")(Xcursor\"\\), 1\\);)" _ a b) | |
354 | (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b)) | |
355 | (("^\\s*(xcursorLib.setFileName\\(QLatin1String\\(\")(Xcursor\"\\)\\);)" _ a b) | |
356 | (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b))) | |
357 | #t))))) | |
358 | (native-search-paths | |
359 | (list (search-path-specification | |
360 | (variable "QMAKEPATH") | |
361 | (files '("lib/qt5"))) | |
362 | (search-path-specification | |
363 | (variable "QML2_IMPORT_PATH") | |
364 | (files '("lib/qt5/qml"))) | |
365 | (search-path-specification | |
366 | (variable "QT_PLUGIN_PATH") | |
367 | (files '("lib/qt5/plugins"))) | |
368 | (search-path-specification | |
369 | (variable "XDG_DATA_DIRS") | |
370 | (files '("share"))) | |
371 | (search-path-specification | |
372 | (variable "XDG_CONFIG_DIRS") | |
373 | (files '("etc/xdg"))))) | |
374 | (home-page "https://www.qt.io/") | |
375 | (synopsis "Cross-platform GUI library") | |
376 | (description "Qt is a cross-platform application and UI framework for | |
377 | developers using C++ or QML, a CSS & JavaScript like language.") | |
378 | (license (list license:lgpl2.1 license:lgpl3)) | |
f47638a3 LC |
379 | |
380 | ;; Qt 4: 'QBasicAtomicPointer' leads to build failures on MIPS; | |
381 | ;; see <http://hydra.gnu.org/build/112828>. | |
382 | ;; Qt 5: assembler error; see <http://hydra.gnu.org/build/112526>. | |
383 | (supported-systems (delete "mips64el-linux" %supported-systems)))) | |
1e9ed0e3 AE |
384 | |
385 | (define-public qt-4 | |
386 | (package (inherit qt) | |
d22b9397 | 387 | (version "4.8.7") |
1e9ed0e3 AE |
388 | (source (origin |
389 | (method url-fetch) | |
390 | (uri (string-append "http://download.qt-project.org/official_releases/qt/" | |
391 | (string-copy version 0 (string-rindex version #\.)) | |
392 | "/" version | |
89059aa1 | 393 | "/qt-everywhere-opensource-src-" |
1e9ed0e3 AE |
394 | version ".tar.gz")) |
395 | (sha256 | |
396 | (base32 | |
d22b9397 | 397 | "183fca7n7439nlhxyg1z7aky0izgbyll3iwakw4gwivy16aj5272")) |
fc1adab1 | 398 | (patches (search-patches "qt4-ldflags.patch")) |
7431edea AE |
399 | (modules '((guix build utils))) |
400 | (snippet | |
401 | ;; Remove webkit module, which is not built. | |
6cbee49d MW |
402 | '(begin (delete-file-recursively "src/3rdparty/webkit") |
403 | #t)))) | |
f7fb0ccb AE |
404 | (inputs `(,@(alist-delete "harfbuzz" |
405 | (alist-delete "libjpeg" (package-inputs qt))) | |
e7e5a4f8 AE |
406 | ("libjepg" ,libjpeg-8) |
407 | ("libsm" ,libsm))) | |
31580979 LC |
408 | |
409 | ;; Note: there are 37 MiB of examples and a '-exampledir' configure flags, | |
410 | ;; but we can't make them a separate output because "out" and "examples" | |
411 | ;; would refer to each other. | |
412 | (outputs '("out" ;112MiB core + 37MiB examples | |
413 | "doc")) ;280MiB of HTML + code | |
1e9ed0e3 AE |
414 | (arguments |
415 | `(#:phases | |
cba632c4 LC |
416 | (modify-phases %standard-phases |
417 | (replace | |
1e9ed0e3 AE |
418 | 'configure |
419 | (lambda* (#:key outputs #:allow-other-keys) | |
31580979 LC |
420 | (let ((out (assoc-ref outputs "out")) |
421 | (doc (assoc-ref outputs "doc"))) | |
1e9ed0e3 | 422 | (substitute* '("configure") |
d2984346 LC |
423 | (("/bin/pwd") (which "pwd"))) |
424 | ||
206a5208 AE |
425 | (zero? (system* |
426 | "./configure" | |
427 | "-verbose" | |
428 | "-prefix" out | |
4b0f2ef7 LC |
429 | ;; Note: Don't pass '-docdir' since 'qmake' and |
430 | ;; libQtCore would record its value, thereby defeating | |
431 | ;; the whole point of having a separate output. | |
ff1989a5 LC |
432 | "-datadir" (string-append out "/share/qt-" ,version |
433 | "/data") | |
434 | "-importdir" (string-append out "/lib/qt-4" | |
435 | "/imports") | |
436 | "-plugindir" (string-append out "/lib/qt-4" | |
437 | "/plugins") | |
438 | "-translationdir" (string-append out "/share/qt-" ,version | |
439 | "/translations") | |
31580979 LC |
440 | "-demosdir" (string-append out "/share/qt-" ,version |
441 | "/demos") | |
442 | "-examplesdir" (string-append out "/share/qt-" ,version | |
443 | "/examples") | |
206a5208 AE |
444 | "-opensource" |
445 | "-confirm-license" | |
ff0a8c59 AE |
446 | ;; explicitly link with dbus instead of dlopening it |
447 | "-dbus-linked" | |
7431edea AE |
448 | ;; Skip the webkit module; it fails to build on armhf |
449 | ;; and, apart from that, may pose security risks. | |
450 | "-no-webkit" | |
206a5208 AE |
451 | ;; drop special machine instructions not supported |
452 | ;; on all instances of the target | |
453 | ,@(if (string-prefix? "x86_64" | |
454 | (or (%current-target-system) | |
455 | (%current-system))) | |
456 | '() | |
457 | '("-no-mmx" | |
1e9ed0e3 AE |
458 | "-no-3dnow" |
459 | "-no-sse" | |
206a5208 AE |
460 | "-no-sse2")) |
461 | "-no-sse3" | |
462 | "-no-ssse3" | |
463 | "-no-sse4.1" | |
464 | "-no-sse4.2" | |
84811c22 | 465 | "-no-avx"))))) |
4b0f2ef7 LC |
466 | (add-after |
467 | 'install 'move-doc | |
468 | (lambda* (#:key outputs #:allow-other-keys) | |
469 | ;; Because of qt4-documentation-path.patch, documentation ends up | |
470 | ;; being installed in OUT. Move it to the right place. | |
471 | (let* ((out (assoc-ref outputs "out")) | |
472 | (doc (assoc-ref outputs "doc")) | |
473 | (olddoc (string-append out "/doc")) | |
474 | (docdir (string-append doc "/share/doc/qt-" ,version))) | |
475 | (mkdir-p (dirname docdir)) | |
476 | ||
477 | ;; Note: We can't use 'rename-file' here because OUT and DOC are | |
478 | ;; different "devices" due to bind-mounts. | |
479 | (copy-recursively olddoc docdir) | |
480 | (delete-file-recursively olddoc) | |
481 | #t)))))))) | |
84ef83dd | 482 | |
7868000f AE |
483 | (define-public qtbase |
484 | (package | |
485 | (name "qtbase") | |
b6476ecc | 486 | (version "5.11.1") |
7868000f AE |
487 | (source (origin |
488 | (method url-fetch) | |
489 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
490 | (version-major+minor version) "/" version | |
1f52eb7b | 491 | "/submodules/" name "-everywhere-src-" |
7868000f AE |
492 | version ".tar.xz")) |
493 | (sha256 | |
c7386f4e | 494 | (base32 |
b6476ecc | 495 | "0ipv18ypbgpxhh49rfplqmflskmnhhwj1bjr5hrwi0jpvar4gl50")) |
64f390a4 HG |
496 | ;; Use TZDIR to avoid depending on package "tzdata". |
497 | (patches (search-patches "qtbase-use-TZDIR.patch")) | |
7868000f AE |
498 | (modules '((guix build utils))) |
499 | (snippet | |
924e6ddf | 500 | ;; corelib uses bundled harfbuzz, md4, md5, sha3 |
7868000f | 501 | '(begin |
924e6ddf EF |
502 | (for-each |
503 | (lambda (dir) | |
504 | (delete-file-recursively (string-append "src/3rdparty/" dir))) | |
505 | (list "double-conversion" "freetype" "harfbuzz-ng" | |
1f52eb7b | 506 | "libpng" "libjpeg" "pcre2" "xcb" |
924e6ddf EF |
507 | "xkbcommon" "zlib")) |
508 | #t)))) | |
7868000f | 509 | (build-system gnu-build-system) |
48d4ce6e | 510 | (propagated-inputs |
8075b623 SB |
511 | `(("mesa" ,mesa) |
512 | ("which" ,(@ (gnu packages base) which)))) | |
7868000f AE |
513 | (inputs |
514 | `(("alsa-lib" ,alsa-lib) | |
515 | ("cups" ,cups) | |
516 | ("dbus" ,dbus) | |
04f8decf | 517 | ("double-conversion" ,double-conversion) |
f66970a7 | 518 | ("eudev" ,eudev) |
7868000f AE |
519 | ("expat" ,expat) |
520 | ("fontconfig" ,fontconfig) | |
521 | ("freetype" ,freetype) | |
522 | ("glib" ,glib) | |
523 | ("harfbuzz" ,harfbuzz) | |
524 | ("icu4c" ,icu4c) | |
9ed9b44e | 525 | ("libinput" ,libinput-minimal) |
7868000f AE |
526 | ("libjpeg" ,libjpeg) |
527 | ("libmng" ,libmng) | |
528 | ("libpng" ,libpng) | |
529 | ("libx11" ,libx11) | |
530 | ("libxcomposite" ,libxcomposite) | |
531 | ("libxcursor" ,libxcursor) | |
532 | ("libxfixes" ,libxfixes) | |
533 | ("libxi" ,libxi) | |
534 | ("libxinerama" ,libxinerama) | |
535 | ("libxkbcommon" ,libxkbcommon) | |
536 | ("libxml2" ,libxml2) | |
537 | ("libxrandr" ,libxrandr) | |
538 | ("libxrender" ,libxrender) | |
539 | ("libxslt" ,libxslt) | |
540 | ("libxtst" ,libxtst) | |
541 | ("mtdev" ,mtdev) | |
07380d10 | 542 | ("mariadb" ,mariadb) |
7868000f AE |
543 | ("nss" ,nss) |
544 | ("openssl" ,openssl) | |
924e6ddf | 545 | ("pcre2" ,pcre2) |
7868000f AE |
546 | ("postgresql" ,postgresql) |
547 | ("pulseaudio" ,pulseaudio) | |
1f52eb7b | 548 | ;("sqlite" ,sqlite) |
7868000f AE |
549 | ("unixodbc" ,unixodbc) |
550 | ("xcb-util" ,xcb-util) | |
551 | ("xcb-util-image" ,xcb-util-image) | |
552 | ("xcb-util-keysyms" ,xcb-util-keysyms) | |
553 | ("xcb-util-renderutil" ,xcb-util-renderutil) | |
554 | ("xcb-util-wm" ,xcb-util-wm) | |
555 | ("zlib" ,zlib))) | |
556 | (native-inputs | |
557 | `(("bison" ,bison) | |
558 | ("flex" ,flex) | |
559 | ("gperf" ,gperf) | |
560 | ("perl" ,perl) | |
561 | ("pkg-config" ,pkg-config) | |
562 | ("python" ,python-2) | |
8075b623 | 563 | ("ruby" ,ruby))) |
7868000f AE |
564 | (arguments |
565 | `(#:phases | |
566 | (modify-phases %standard-phases | |
567 | (add-after 'configure 'patch-bin-sh | |
568 | (lambda _ | |
569 | (substitute* '("config.status" | |
570 | "configure" | |
571 | "mkspecs/features/qt_functions.prf" | |
572 | "qmake/library/qmakebuiltins.cpp") | |
573 | (("/bin/sh") (which "sh"))) | |
574 | #t)) | |
575 | (replace 'configure | |
576 | (lambda* (#:key outputs #:allow-other-keys) | |
577 | (let ((out (assoc-ref outputs "out"))) | |
578 | (substitute* "configure" | |
579 | (("/bin/pwd") (which "pwd"))) | |
580 | (substitute* "src/corelib/global/global.pri" | |
581 | (("/bin/ls") (which "ls"))) | |
7972d8a2 AE |
582 | ;; The configuration files for other Qt5 packages are searched |
583 | ;; through a call to "find_package" in Qt5Config.cmake, which | |
584 | ;; disables the use of CMAKE_PREFIX_PATH via the parameter | |
585 | ;; "NO_DEFAULT_PATH". Re-enable it so that the different | |
586 | ;; components can be installed in different places. | |
587 | (substitute* (find-files "." ".*\\.cmake") | |
588 | (("NO_DEFAULT_PATH") "")) | |
7868000f AE |
589 | ;; do not pass "--enable-fast-install", which makes the |
590 | ;; configure process fail | |
1f52eb7b EF |
591 | (invoke |
592 | "./configure" | |
593 | "-verbose" | |
594 | "-prefix" out | |
595 | "-docdir" (string-append out "/share/doc/qt5") | |
596 | "-headerdir" (string-append out "/include/qt5") | |
597 | "-archdatadir" (string-append out "/lib/qt5") | |
598 | "-datadir" (string-append out "/share/qt5") | |
599 | "-examplesdir" (string-append | |
600 | out "/share/doc/qt5/examples") | |
601 | "-opensource" | |
602 | "-confirm-license" | |
65a9f6b6 RW |
603 | |
604 | ;; These features require higher versions of Linux than the | |
605 | ;; minimum version of the glibc. See | |
606 | ;; src/corelib/global/minimum-linux_p.h. By disabling these | |
607 | ;; features Qt5 applications can be used on the oldest | |
608 | ;; kernels that the glibc supports, including the RHEL6 | |
609 | ;; (2.6.32) and RHEL7 (3.10) kernels. | |
610 | "-no-feature-getentropy" ; requires Linux 3.17 | |
611 | "-no-feature-renameat2" ; requires Linux 3.16 | |
612 | ||
1f52eb7b EF |
613 | ;; Do not build examples; if desired, these could go |
614 | ;; into a separate output, but for the time being, we | |
615 | ;; prefer to save the space and build time. | |
616 | "-no-compile-examples" | |
617 | ;; Most "-system-..." are automatic, but some use | |
618 | ;; the bundled copy by default. | |
619 | ;; System sqlite fails on 5.10+ | |
620 | ;;.obj/qsql_sqlite.o: In function `QSQLiteResultPrivate::initColumns(bool)': | |
621 | ;;qsql_sqlite.cpp:(.text+0x190c): undefined reference to `sqlite3_column_table_name16' | |
622 | ;"-system-sqlite" | |
623 | "-system-harfbuzz" | |
624 | "-system-pcre" | |
625 | ;; explicitly link with openssl instead of dlopening it | |
626 | "-openssl-linked" | |
627 | ;; explicitly link with dbus instead of dlopening it | |
628 | "-dbus-linked" | |
629 | ;; don't use the precompiled headers | |
630 | "-no-pch" | |
631 | ;; drop special machine instructions that do not have | |
632 | ;; runtime detection | |
633 | ,@(if (string-prefix? "x86_64" | |
634 | (or (%current-target-system) | |
635 | (%current-system))) | |
636 | '() | |
637 | '("-no-sse2")) | |
638 | "-no-mips_dsp" | |
639 | "-no-mips_dspr2")))) | |
8075b623 | 640 | (add-after 'install 'patch-mkspecs |
5ca6ef95 SB |
641 | (lambda* (#:key outputs #:allow-other-keys) |
642 | (let* ((out (assoc-ref outputs "out")) | |
8075b623 SB |
643 | (archdata (string-append out "/lib/qt5")) |
644 | (mkspecs (string-append archdata "/mkspecs")) | |
5ca6ef95 | 645 | (qt_config.prf (string-append |
6fc0e157 | 646 | mkspecs "/features/qt_config.prf"))) |
5ca6ef95 SB |
647 | ;; For each Qt module, let `qmake' uses search paths in the |
648 | ;; module directory instead of all in QT_INSTALL_PREFIX. | |
649 | (substitute* qt_config.prf | |
650 | (("\\$\\$\\[QT_INSTALL_HEADERS\\]") | |
6fc0e157 | 651 | "$$clean_path($$replace(dir, mkspecs/modules, ../../include/qt5))") |
5ca6ef95 | 652 | (("\\$\\$\\[QT_INSTALL_LIBS\\]") |
6fc0e157 | 653 | "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))") |
5ca6ef95 | 654 | (("\\$\\$\\[QT_HOST_LIBS\\]") |
6fc0e157 | 655 | "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))") |
5ca6ef95 | 656 | (("\\$\\$\\[QT_INSTALL_BINS\\]") |
6fc0e157 | 657 | "$$clean_path($$replace(dir, mkspecs/modules, ../../bin))")) |
8075b623 SB |
658 | |
659 | ;; Searches Qt tools in the current PATH instead of QT_HOST_BINS. | |
660 | (substitute* (string-append mkspecs "/features/qt_functions.prf") | |
661 | (("cmd = \\$\\$\\[QT_HOST_BINS\\]/\\$\\$2") | |
662 | "cmd = $$system(which $${2}.pl 2>/dev/null || which $${2})")) | |
663 | ||
664 | ;; Resolve qmake spec files within qtbase by absolute paths. | |
665 | (substitute* | |
666 | (map (lambda (file) | |
667 | (string-append mkspecs "/features/" file)) | |
668 | '("device_config.prf" "moc.prf" "qt_build_config.prf" | |
669 | "qt_config.prf" "winrt/package_manifest.prf")) | |
670 | (("\\$\\$\\[QT_HOST_DATA/get\\]") archdata) | |
671 | (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata)) | |
64f390a4 HG |
672 | #t))) |
673 | (add-after 'unpack 'patch-paths | |
674 | ;; Use the absolute paths for dynamically loaded libs, otherwise | |
675 | ;; the lib will be searched in LD_LIBRARY_PATH which typically is | |
676 | ;; not set in guix. | |
677 | (lambda* (#:key inputs #:allow-other-keys) | |
678 | ;; libresolve | |
679 | (let ((glibc (assoc-ref inputs ,(if (%current-target-system) | |
680 | "cross-libc" "libc")))) | |
681 | (substitute* '("src/network/kernel/qdnslookup_unix.cpp" | |
682 | "src/network/kernel/qhostinfo_unix.cpp") | |
683 | (("^\\s*(lib.setFileName\\(QLatin1String\\(\")(resolv\"\\)\\);)" _ a b) | |
684 | (string-append a glibc "/lib/lib" b)))) | |
685 | ;; X11/locale (compose path) | |
686 | (substitute* "src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp" | |
687 | ;; Don't search in /usr/…/X11/locale, … | |
688 | (("^\\s*m_possibleLocations.append\\(QStringLiteral\\(\"/usr/.*/X11/locale\"\\)\\);" line) | |
689 | (string-append "// " line)) | |
690 | ;; … but use libx11's path | |
691 | (("^\\s*(m_possibleLocations.append\\(QStringLiteral\\()X11_PREFIX \"(/.*/X11/locale\"\\)\\);)" _ a b) | |
692 | (string-append a "\"" (assoc-ref inputs "libx11") b))) | |
693 | ;; libGL | |
694 | (substitute* "src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp" | |
695 | (("^\\s*(QLibrary lib\\(QLatin1String\\(\")(GL\"\\)\\);)" _ a b) | |
696 | (string-append a (assoc-ref inputs "mesa") "/lib/lib" b))) | |
697 | ;; libXcursor | |
698 | (substitute* "src/plugins/platforms/xcb/qxcbcursor.cpp" | |
699 | (("^\\s*(QLibrary xcursorLib\\(QLatin1String\\(\")(Xcursor\"\\), 1\\);)" _ a b) | |
700 | (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b)) | |
701 | (("^\\s*(xcursorLib.setFileName\\(QLatin1String\\(\")(Xcursor\"\\)\\);)" _ a b) | |
702 | (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b))) | |
703 | #t))))) | |
5ca6ef95 SB |
704 | (native-search-paths |
705 | (list (search-path-specification | |
706 | (variable "QMAKEPATH") | |
6fc0e157 | 707 | (files '("lib/qt5"))) |
ed02e1fe DC |
708 | (search-path-specification |
709 | (variable "QML2_IMPORT_PATH") | |
6fc0e157 | 710 | (files '("lib/qt5/qml"))) |
ed02e1fe DC |
711 | (search-path-specification |
712 | (variable "QT_PLUGIN_PATH") | |
6fc0e157 | 713 | (files '("lib/qt5/plugins"))) |
ed02e1fe DC |
714 | (search-path-specification |
715 | (variable "XDG_DATA_DIRS") | |
716 | (files '("share"))) | |
717 | (search-path-specification | |
718 | (variable "XDG_CONFIG_DIRS") | |
719 | (files '("etc/xdg"))))) | |
7868000f AE |
720 | (home-page "https://www.qt.io/") |
721 | (synopsis "Cross-platform GUI library") | |
722 | (description "Qt is a cross-platform application and UI framework for | |
723 | developers using C++ or QML, a CSS & JavaScript like language.") | |
225941b0 | 724 | (license (list license:lgpl2.1 license:lgpl3)))) |
7868000f | 725 | |
19c17631 EF |
726 | (define-public qtsvg |
727 | (package (inherit qtbase) | |
728 | (name "qtsvg") | |
b6476ecc | 729 | (version "5.11.1") |
19c17631 EF |
730 | (source (origin |
731 | (method url-fetch) | |
732 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
733 | (version-major+minor version) "/" version | |
1f52eb7b | 734 | "/submodules/" name "-everywhere-src-" |
19c17631 EF |
735 | version ".tar.xz")) |
736 | (sha256 | |
737 | (base32 | |
b6476ecc | 738 | "0drhig0jcss3cf01aqfmafajf8gzf6bh468g1ikyrkh46czgyshx")))) |
48d4ce6e | 739 | (propagated-inputs `()) |
19c17631 EF |
740 | (native-inputs `(("perl" ,perl))) |
741 | (inputs | |
742 | `(("mesa" ,mesa) | |
743 | ("qtbase" ,qtbase) | |
744 | ("zlib" ,zlib))) | |
745 | (arguments | |
746 | `(#:phases | |
747 | (modify-phases %standard-phases | |
8075b623 | 748 | (add-before 'configure 'configure-qmake |
19c17631 | 749 | (lambda* (#:key inputs outputs #:allow-other-keys) |
8075b623 SB |
750 | (let* ((out (assoc-ref outputs "out")) |
751 | (qtbase (assoc-ref inputs "qtbase")) | |
752 | (tmpdir (string-append (getenv "TMPDIR"))) | |
753 | (qmake (string-append tmpdir "/qmake")) | |
754 | (qt.conf (string-append tmpdir "/qt.conf"))) | |
755 | ;; Use qmake with a customized qt.conf to override install | |
756 | ;; paths to $out. | |
757 | (symlink (which "qmake") qmake) | |
758 | (setenv "PATH" (string-append tmpdir ":" (getenv "PATH"))) | |
759 | (with-output-to-file qt.conf | |
760 | (lambda () | |
761 | (format #t "[Paths] | |
762 | Prefix=~a | |
763 | ArchData=lib/qt5 | |
764 | Data=share/qt5 | |
765 | Documentation=share/doc/qt5 | |
766 | Headers=include/qt5 | |
767 | Libraries=lib | |
768 | LibraryExecutables=lib/qt5/libexec | |
769 | Binaries=bin | |
770 | Tests=tests | |
771 | Plugins=lib/qt5/plugins | |
772 | Imports=lib/qt5/imports | |
773 | Qml2Imports=lib/qt5/qml | |
774 | Translations=share/qt5/translations | |
775 | Settings=etc/xdg | |
776 | Examples=share/doc/qt5/examples | |
777 | HostPrefix=~a | |
778 | HostData=lib/qt5 | |
779 | HostBinaries=bin | |
780 | HostLibraries=lib | |
b000294e SB |
781 | |
782 | [EffectiveSourcePaths] | |
783 | HostPrefix=~a | |
784 | HostData=lib/qt5 | |
785 | " out out qtbase))) | |
c195b5ba | 786 | #t))) |
8075b623 SB |
787 | (replace 'configure |
788 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
789 | ;; Valid QT_BUILD_PARTS variables are: | |
790 | ;; libs tools tests examples demos docs translations | |
1f52eb7b | 791 | (invoke "qmake" "QT_BUILD_PARTS = libs tools tests"))) |
8075b623 SB |
792 | (add-before 'check 'set-display |
793 | (lambda _ | |
794 | ;; make Qt render "offscreen", required for tests | |
795 | (setenv "QT_QPA_PLATFORM" "offscreen") | |
796 | #t))))) | |
96412f34 EF |
797 | (synopsis "Qt module for displaying SVGs") |
798 | (description "The QtSvg module provides classes for displaying the | |
799 | contents of SVG files."))) | |
19c17631 | 800 | |
9b694210 EF |
801 | (define-public qtimageformats |
802 | (package (inherit qtsvg) | |
803 | (name "qtimageformats") | |
b6476ecc | 804 | (version "5.11.1") |
9b694210 EF |
805 | (source (origin |
806 | (method url-fetch) | |
807 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
808 | (version-major+minor version) "/" version | |
1f52eb7b | 809 | "/submodules/" name "-everywhere-src-" |
9b694210 EF |
810 | version ".tar.xz")) |
811 | (sha256 | |
812 | (base32 | |
b6476ecc | 813 | "05jnyrq7klr3mdiz0r9c151vl829yc8y9cxfbw5dwbp1rkndwl7b")) |
c04854da EF |
814 | (modules '((guix build utils))) |
815 | (snippet | |
1f52eb7b EF |
816 | '(begin |
817 | (delete-file-recursively "src/3rdparty") | |
818 | #t)))) | |
9b694210 EF |
819 | (native-inputs `()) |
820 | (inputs | |
a532a671 EF |
821 | `(("jasper" ,jasper) |
822 | ("libmng" ,libmng) | |
9b694210 EF |
823 | ("libtiff" ,libtiff) |
824 | ("libwebp" ,libwebp) | |
825 | ("mesa" ,mesa) | |
826 | ("qtbase" ,qtbase) | |
96412f34 EF |
827 | ("zlib" ,zlib))) |
828 | (synopsis "Additional Image Format plugins for Qt") | |
829 | (description "The QtImageFormats module contains plugins for adding | |
830 | support for MNG, TGA, TIFF and WBMP image formats."))) | |
9b694210 | 831 | |
f6c13613 EF |
832 | (define-public qtx11extras |
833 | (package (inherit qtsvg) | |
834 | (name "qtx11extras") | |
b6476ecc | 835 | (version "5.11.1") |
f6c13613 EF |
836 | (source (origin |
837 | (method url-fetch) | |
838 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
839 | (version-major+minor version) "/" version | |
1f52eb7b | 840 | "/submodules/" name "-everywhere-src-" |
f6c13613 EF |
841 | version ".tar.xz")) |
842 | (sha256 | |
843 | (base32 | |
b6476ecc | 844 | "0rccpmhz48kq4xs441lj9mnwpbi6kxwl8y7dj7w7g5zvpv41kwmw")))) |
c195b5ba EF |
845 | (arguments |
846 | (substitute-keyword-arguments (package-arguments qtsvg) | |
847 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
f6c13613 EF |
848 | (native-inputs `(("perl" ,perl))) |
849 | (inputs | |
850 | `(("mesa" ,mesa) | |
96412f34 EF |
851 | ("qtbase" ,qtbase))) |
852 | (synopsis "Qt Extras for X11") | |
853 | (description "The QtX11Extras module includes the library to access X11 | |
854 | from within Qt 5."))) | |
f6c13613 | 855 | |
98eec712 EF |
856 | (define-public qtxmlpatterns |
857 | (package (inherit qtsvg) | |
858 | (name "qtxmlpatterns") | |
b6476ecc | 859 | (version "5.11.1") |
98eec712 EF |
860 | (source (origin |
861 | (method url-fetch) | |
862 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
863 | (version-major+minor version) "/" version | |
1f52eb7b | 864 | "/submodules/" name "-everywhere-src-" |
98eec712 EF |
865 | version ".tar.xz")) |
866 | (sha256 | |
867 | (base32 | |
b6476ecc | 868 | "0n5gacpni019i2872m4b1p5qaqibhszsdl3xhw3xsckvr0hf25v1")))) |
c195b5ba EF |
869 | (arguments |
870 | (substitute-keyword-arguments (package-arguments qtsvg) | |
f66b3e15 EF |
871 | ((#:phases phases) |
872 | `(modify-phases ,phases | |
873 | (add-after 'unpack 'disable-network-tests | |
874 | (lambda _ (substitute* "tests/auto/auto.pro" | |
875 | (("qxmlquery") "# qxmlquery") | |
a20e00dd | 876 | (("xmlpatterns ") "# xmlpatterns")) |
f66b3e15 | 877 | #t)))))) |
98eec712 | 878 | (native-inputs `(("perl" ,perl))) |
96412f34 EF |
879 | (inputs `(("qtbase" ,qtbase))) |
880 | (synopsis "Qt XML patterns module") | |
881 | (description "The QtXmlPatterns module is a XQuery and XPath engine for | |
882 | XML and custom data models. It contains programs such as xmlpatterns and | |
883 | xmlpatternsvalidator."))) | |
98eec712 | 884 | |
e3a2ed81 EF |
885 | (define-public qtdeclarative |
886 | (package (inherit qtsvg) | |
887 | (name "qtdeclarative") | |
b6476ecc | 888 | (version "5.11.1") |
e3a2ed81 EF |
889 | (source (origin |
890 | (method url-fetch) | |
891 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
892 | (version-major+minor version) "/" version | |
1f52eb7b | 893 | "/submodules/" name "-everywhere-src-" |
e3a2ed81 EF |
894 | version ".tar.xz")) |
895 | (sha256 | |
896 | (base32 | |
b6476ecc | 897 | "0fjg9ii64mhx2ww70rj44cy65rwwkwyjxcm435kwp3v1pzv5xkwy")))) |
c195b5ba EF |
898 | (arguments |
899 | (substitute-keyword-arguments (package-arguments qtsvg) | |
900 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
e3a2ed81 EF |
901 | (native-inputs |
902 | `(("perl" ,perl) | |
903 | ("pkg-config" ,pkg-config) | |
904 | ("python" ,python-2) | |
905 | ("qtsvg" ,qtsvg) | |
906 | ("qtxmlpatterns" ,qtxmlpatterns))) | |
907 | (inputs | |
908 | `(("mesa" ,mesa) | |
96412f34 EF |
909 | ("qtbase" ,qtbase))) |
910 | (synopsis "Qt QML module (Quick 2)") | |
911 | (description "The Qt QML module provides a framework for developing | |
912 | applications and libraries with the QML language. It defines and implements the | |
913 | language and engine infrastructure, and provides an API to enable application | |
914 | developers to extend the QML language with custom types and integrate QML code | |
915 | with JavaScript and C++."))) | |
e3a2ed81 | 916 | |
e98cb96d EF |
917 | (define-public qtconnectivity |
918 | (package (inherit qtsvg) | |
919 | (name "qtconnectivity") | |
b6476ecc | 920 | (version "5.11.1") |
e98cb96d EF |
921 | (source (origin |
922 | (method url-fetch) | |
923 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
924 | (version-major+minor version) "/" version | |
1f52eb7b | 925 | "/submodules/" name "-everywhere-src-" |
e98cb96d EF |
926 | version ".tar.xz")) |
927 | (sha256 | |
928 | (base32 | |
b6476ecc | 929 | "0mz6mbf069yqdvi6mcvp6izskcn9wzig4s3dzmygwd430pmx93kk")))) |
e98cb96d EF |
930 | (native-inputs |
931 | `(("perl" ,perl) | |
932 | ("pkg-config" ,pkg-config) | |
933 | ("qtdeclarative" ,qtdeclarative))) | |
934 | (inputs | |
935 | `(("bluez" ,bluez) | |
96412f34 EF |
936 | ("qtbase" ,qtbase))) |
937 | (synopsis "Qt Connectivity module") | |
938 | (description "The Qt Connectivity modules provides modules for interacting | |
939 | with Bluetooth and NFC."))) | |
e98cb96d | 940 | |
cac893ec EF |
941 | (define-public qtwebsockets |
942 | (package (inherit qtsvg) | |
943 | (name "qtwebsockets") | |
b6476ecc | 944 | (version "5.11.1") |
cac893ec EF |
945 | (source (origin |
946 | (method url-fetch) | |
947 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
948 | (version-major+minor version) "/" version | |
1f52eb7b | 949 | "/submodules/" name "-everywhere-src-" |
cac893ec EF |
950 | version ".tar.xz")) |
951 | (sha256 | |
952 | (base32 | |
b6476ecc | 953 | "1bj82y3f1nd2adnj3ljfr4vlx4bkgdlm3zvhlsas2lz837vi5aks")))) |
c195b5ba EF |
954 | (arguments |
955 | (substitute-keyword-arguments (package-arguments qtsvg) | |
956 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
cac893ec EF |
957 | (native-inputs |
958 | `(("perl" ,perl) | |
959 | ("qtdeclarative" ,qtdeclarative))) | |
96412f34 EF |
960 | (inputs `(("qtbase" ,qtbase))) |
961 | (synopsis "Qt Web Sockets module") | |
962 | (description "WebSocket is a web-based protocol designed to enable two-way | |
963 | communication between a client application and a remote host. The Qt | |
964 | WebSockets module provides C++ and QML interfaces that enable Qt applications | |
965 | to act as a server that can process WebSocket requests, or a client that can | |
966 | consume data received from the server, or both."))) | |
cac893ec | 967 | |
3474767c EF |
968 | (define-public qtsensors |
969 | (package (inherit qtsvg) | |
970 | (name "qtsensors") | |
b6476ecc | 971 | (version "5.11.1") |
3474767c EF |
972 | (source (origin |
973 | (method url-fetch) | |
974 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
975 | (version-major+minor version) "/" version | |
1f52eb7b | 976 | "/submodules/" name "-everywhere-src-" |
3474767c EF |
977 | version ".tar.xz")) |
978 | (sha256 | |
979 | (base32 | |
b6476ecc | 980 | "1yn065l6kzs3fn74950pkxxglqi55lzk7alf15klsd1wnxc0zsfb")))) |
202afee2 EF |
981 | (arguments |
982 | (substitute-keyword-arguments (package-arguments qtsvg) | |
5ea35b42 | 983 | ((#:parallel-tests? _ #f) #f) ; can lead to race condition |
202afee2 EF |
984 | ((#:phases phases) |
985 | `(modify-phases ,phases | |
04162e83 | 986 | (add-after 'unpack 'fix-tests |
202afee2 EF |
987 | (lambda _ |
988 | (substitute* "tests/auto/qsensorgestures_gestures/tst_sensorgestures_gestures.cpp" | |
04162e83 NG |
989 | (("2000") "5000") ;lengthen test timeout |
990 | (("QTest::newRow(\"twist\") << \"twist\"") "")) ;failing test | |
202afee2 | 991 | #t)))))) |
3474767c EF |
992 | (native-inputs |
993 | `(("perl" ,perl) | |
994 | ("qtdeclarative" ,qtdeclarative))) | |
96412f34 EF |
995 | (inputs `(("qtbase" ,qtbase))) |
996 | (synopsis "Qt Sensors module") | |
997 | (description "The Qt Sensors API provides access to sensor hardware via QML | |
998 | and C++ interfaces. The Qt Sensors API also provides a motion gesture | |
999 | recognition API for devices."))) | |
3474767c | 1000 | |
15378f93 EF |
1001 | (define-public qtmultimedia |
1002 | (package (inherit qtsvg) | |
1003 | (name "qtmultimedia") | |
b6476ecc | 1004 | (version "5.11.1") |
15378f93 EF |
1005 | (source (origin |
1006 | (method url-fetch) | |
1007 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1008 | (version-major+minor version) "/" version | |
1f52eb7b | 1009 | "/submodules/" name "-everywhere-src-" |
15378f93 EF |
1010 | version ".tar.xz")) |
1011 | (sha256 | |
1012 | (base32 | |
b6476ecc | 1013 | "0369b0mh7sr718l119b07grb1v8xqlq6l4damyd6lrmlj1wbb2zj")) |
63d8f08f EF |
1014 | (modules '((guix build utils))) |
1015 | (snippet | |
1016 | '(begin | |
1017 | (delete-file-recursively | |
c195b5ba EF |
1018 | "examples/multimedia/spectrum/3rdparty") |
1019 | ;; We also prevent the spectrum example from being built. | |
1020 | (substitute* "examples/multimedia/multimedia.pro" | |
6cbee49d MW |
1021 | (("spectrum") "#")) |
1022 | #t)))) | |
c195b5ba EF |
1023 | (arguments |
1024 | (substitute-keyword-arguments (package-arguments qtsvg) | |
04231311 RW |
1025 | ((#:phases phases) |
1026 | `(modify-phases ,phases | |
1027 | (replace 'configure | |
1028 | (lambda* (#:key outputs #:allow-other-keys) | |
1029 | (let ((out (assoc-ref outputs "out"))) | |
1f52eb7b EF |
1030 | (invoke "qmake" "QT_BUILD_PARTS = libs tools tests" |
1031 | (string-append "QMAKE_LFLAGS_RPATH=-Wl,-rpath," out "/lib -Wl,-rpath,") | |
1032 | (string-append "PREFIX=" out))))))) | |
04231311 | 1033 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests |
15378f93 EF |
1034 | (native-inputs |
1035 | `(("perl" ,perl) | |
1036 | ("pkg-config" ,pkg-config) | |
1037 | ("python" ,python-2) | |
1038 | ("qtdeclarative" ,qtdeclarative))) | |
1039 | (inputs | |
1040 | `(("alsa-lib" ,alsa-lib) | |
1041 | ("mesa" ,mesa) | |
1042 | ("pulseaudio" ,pulseaudio) | |
04231311 RW |
1043 | ("qtbase" ,qtbase) |
1044 | ;; Gstreamer is needed for the mediaplayer plugin | |
1045 | ("gstreamer" ,gstreamer) | |
96412f34 EF |
1046 | ("gst-plugins-base" ,gst-plugins-base))) |
1047 | (synopsis "Qt Multimedia module") | |
1048 | (description "The Qt Multimedia module provides set of APIs to play and | |
1049 | record media, and manage a collection of media content. It also contains a | |
1050 | set of plugins for interacting with pulseaudio and GStreamer."))) | |
15378f93 | 1051 | |
bc8ede01 EF |
1052 | (define-public qtwayland |
1053 | (package (inherit qtsvg) | |
1054 | (name "qtwayland") | |
b6476ecc | 1055 | (version "5.11.1") |
bc8ede01 EF |
1056 | (source (origin |
1057 | (method url-fetch) | |
1058 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1059 | (version-major+minor version) "/" version | |
1f52eb7b | 1060 | "/submodules/" name "-everywhere-src-" |
bc8ede01 EF |
1061 | version ".tar.xz")) |
1062 | (sha256 | |
1063 | (base32 | |
b6476ecc | 1064 | "1sj4lsza48xji1qhmi1wqpx07jgm1mpa95gmd2w1kxw240hbr6p0")) |
924e6ddf EF |
1065 | (modules '((guix build utils))) |
1066 | (snippet | |
1067 | ;; The examples try to build and cause the build to fail | |
1f52eb7b EF |
1068 | '(begin |
1069 | (delete-file-recursively "examples") | |
1070 | #t)))) | |
6fc0e157 SB |
1071 | (arguments |
1072 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1073 | ((#:phases phases) | |
1074 | `(modify-phases ,phases | |
1075 | (add-before 'check 'set-ld-library-path | |
1076 | ;; <https://lists.gnu.org/archive/html/guix-devel/2017-09/msg00019.html> | |
1077 | ;; | |
1078 | ;; Make the uninstalled libQt5WaylandClient.so.5 available to the | |
1079 | ;; wayland platform plugin. | |
1080 | (lambda _ | |
1081 | (setenv "LD_LIBRARY_PATH" (string-append (getcwd) "/lib")) | |
1082 | #t)))))) | |
bc8ede01 EF |
1083 | (native-inputs |
1084 | `(("glib" ,glib) | |
1085 | ("perl" ,perl) | |
1086 | ("pkg-config" ,pkg-config) | |
1087 | ("qtdeclarative" ,qtdeclarative))) | |
1088 | (inputs | |
1089 | `(("fontconfig" ,fontconfig) | |
1090 | ("freetype" ,freetype) | |
1091 | ("libx11" ,libx11) | |
1092 | ("libxcomposite" ,libxcomposite) | |
1093 | ("libxext" ,libxext) | |
1094 | ("libxkbcommon" ,libxkbcommon) | |
1095 | ("libxrender" ,libxrender) | |
1096 | ("mesa" ,mesa) | |
1097 | ("mtdev" ,mtdev) | |
1098 | ("qtbase" ,qtbase) | |
96412f34 EF |
1099 | ("wayland" ,wayland))) |
1100 | (synopsis "Qt Wayland module") | |
1101 | (description "The Qt Wayland module provides the QtWayland client and | |
1102 | compositor libraries."))) | |
bc8ede01 | 1103 | |
00806f2b EF |
1104 | (define-public qtserialport |
1105 | (package (inherit qtsvg) | |
1106 | (name "qtserialport") | |
b6476ecc | 1107 | (version "5.11.1") |
00806f2b EF |
1108 | (source (origin |
1109 | (method url-fetch) | |
1110 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1111 | (version-major+minor version) "/" version | |
1f52eb7b | 1112 | "/submodules/" name "-everywhere-src-" |
00806f2b EF |
1113 | version ".tar.xz")) |
1114 | (sha256 | |
1115 | (base32 | |
b6476ecc | 1116 | "18v4pbq7bnmrl81m8s11ksbjlvzbb4kw5py6ji2dhmnm44w9k9sn")))) |
00806f2b | 1117 | (native-inputs `(("perl" ,perl))) |
33741e16 EF |
1118 | (inputs |
1119 | `(("qtbase" ,qtbase) | |
96412f34 | 1120 | ("eudev" ,eudev))) |
042f7c26 HG |
1121 | (arguments |
1122 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1123 | ((#:phases phases) | |
1124 | `(modify-phases ,phases | |
1125 | (add-after 'unpack 'patch-dlopen-paths | |
1126 | (lambda* (#:key inputs #:allow-other-keys) | |
1127 | (substitute* "src/serialport/qtudev_p.h" | |
1128 | ;; Use the absolute paths for dynamically loaded libs, | |
1129 | ;; otherwise the lib will be searched in LD_LIBRARY_PATH which | |
1130 | ;; typically is not set in guix. | |
1131 | (("^\\s*(udevLibrary->setFileNameAndVersion\\(QStringLiteral\\(\")(udev\"\\),\\s*[0-9]+\\);)" _ a b) | |
1132 | (string-append a (assoc-ref inputs "eudev") "/lib/lib" b))) | |
1133 | #t)))))) | |
96412f34 EF |
1134 | (synopsis "Qt Serial Port module") |
1135 | (description "The Qt Serial Port module provides the library for | |
1136 | interacting with serial ports from within Qt."))) | |
00806f2b | 1137 | |
a98ffab5 EF |
1138 | (define-public qtserialbus |
1139 | (package (inherit qtsvg) | |
1140 | (name "qtserialbus") | |
b6476ecc | 1141 | (version "5.11.1") |
a98ffab5 EF |
1142 | (source (origin |
1143 | (method url-fetch) | |
1144 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1145 | (version-major+minor version) "/" version | |
1f52eb7b | 1146 | "/submodules/" name "-everywhere-src-" |
a98ffab5 EF |
1147 | version ".tar.xz")) |
1148 | (sha256 | |
1149 | (base32 | |
b6476ecc | 1150 | "0jjmdd6vkvs5izqazp1rsrad0b1fzk6knrbdjl37lvcsawyfxfyk")))) |
a98ffab5 EF |
1151 | (inputs |
1152 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1153 | ("qtserialport" ,qtserialport))) |
1154 | (synopsis "Qt Serial Bus module") | |
1155 | (description "The Qt Serial Bus API provides classes and functions to | |
1156 | access the various industrial serial buses and protocols, such as CAN, ModBus, | |
1157 | and others."))) | |
a98ffab5 | 1158 | |
f5377013 EF |
1159 | (define-public qtwebchannel |
1160 | (package (inherit qtsvg) | |
1161 | (name "qtwebchannel") | |
b6476ecc | 1162 | (version "5.11.1") |
f5377013 EF |
1163 | (source (origin |
1164 | (method url-fetch) | |
1165 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1166 | (version-major+minor version) "/" version | |
1f52eb7b | 1167 | "/submodules/" name "-everywhere-src-" |
f5377013 EF |
1168 | version ".tar.xz")) |
1169 | (sha256 | |
1170 | (base32 | |
b6476ecc | 1171 | "11rfjkb4h8dzxfmk889x7kkc73cbk26smc7h62lnh35f2nppd95r")))) |
f5377013 EF |
1172 | (native-inputs |
1173 | `(("perl" ,perl) | |
1174 | ("qtdeclarative" ,qtdeclarative) | |
1175 | ("qtwebsockets" ,qtwebsockets))) | |
96412f34 EF |
1176 | (inputs `(("qtbase" ,qtbase))) |
1177 | (synopsis "Web communication library for Qt") | |
1178 | (description "The Qt WebChannel module enables peer-to-peer communication | |
1179 | between the host (QML/C++ application) and the client (HTML/JavaScript | |
1180 | application). The transport mechanism is supported out of the box by the two | |
1181 | popular web engines, Qt WebKit 2 and Qt WebEngine."))) | |
f5377013 | 1182 | |
b5792b9c HG |
1183 | (define-public qtwebglplugin |
1184 | (package (inherit qtsvg) | |
1185 | (name "qtwebglplugin") | |
b6476ecc | 1186 | (version "5.11.1") |
b5792b9c HG |
1187 | (source (origin |
1188 | (method url-fetch) | |
1189 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1190 | (version-major+minor version) "/" version | |
1191 | "/submodules/" name "-everywhere-src-" | |
1192 | version ".tar.xz")) | |
1193 | (sha256 | |
1194 | (base32 | |
b6476ecc EF |
1195 | "108yhi3sj6d1ysmlpka69ivb20mx9h6jpra6yq099i3jw4gc753x")))) |
1196 | (arguments | |
1197 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1198 | ((#:phases phases) | |
1199 | `(modify-phases ,phases | |
1200 | (add-after 'unpack 'disable-network-tests | |
1201 | (lambda _ (substitute* "tests/plugins/platforms/platforms.pro" | |
1202 | (("webgl") "# webgl")) | |
1203 | #t)))))) | |
b5792b9c HG |
1204 | (native-inputs '()) |
1205 | (inputs | |
1206 | `(("mesa" ,mesa) | |
1207 | ("qtbase" ,qtbase) | |
b6476ecc | 1208 | ("qtdeclarative" ,qtdeclarative) |
b5792b9c HG |
1209 | ("qtwebsockets" ,qtwebsockets))) |
1210 | (synopsis "QPA plugin for running an application via a browser using | |
1211 | streamed WebGL commands") | |
1212 | (description "Qt back end that uses WebGL for rendering. It allows Qt | |
1213 | applications (with some limitations) to run in a web browser that supports | |
1214 | WebGL. WebGL is a JavaScript API for rendering 2D and 3D graphics within any | |
1215 | compatible web browser without the use of plug-ins. The API is similar to | |
1216 | OpenGL ES 2.0 and can be used in HTML5 canvas elements"))) | |
1217 | ||
359e30c9 HG |
1218 | (define-public qtwebview |
1219 | (package (inherit qtsvg) | |
1220 | (name "qtwebview") | |
b6476ecc | 1221 | (version "5.11.1") |
359e30c9 HG |
1222 | (source (origin |
1223 | (method url-fetch) | |
1224 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1225 | (version-major+minor version) "/" version | |
1226 | "/submodules/" name "-everywhere-src-" | |
1227 | version ".tar.xz")) | |
1228 | (sha256 | |
1229 | (base32 | |
b6476ecc | 1230 | "18da6a13wpb23vb6mbg9v75gphdf5mjmch7q3v1qjrv2sdwbpjbp")))) |
359e30c9 HG |
1231 | (native-inputs |
1232 | `(("perl" ,perl))) | |
1233 | (inputs | |
1234 | `(("qtbase" ,qtbase) | |
1235 | ("qtdeclarative" ,qtdeclarative))) | |
1236 | (synopsis "Display web content in a QML application") | |
1237 | (description "Qt WebView provides a way to display web content in a QML | |
1238 | application without necessarily including a full web browser stack by using | |
1239 | native APIs where it makes sense."))) | |
1240 | ||
d5ca54ce EF |
1241 | (define-public qtlocation |
1242 | (package (inherit qtsvg) | |
1243 | (name "qtlocation") | |
b6476ecc | 1244 | (version "5.11.1") |
d5ca54ce EF |
1245 | (source (origin |
1246 | (method url-fetch) | |
1247 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1248 | (version-major+minor version) "/" version | |
1f52eb7b | 1249 | "/submodules/" name "-everywhere-src-" |
d5ca54ce EF |
1250 | version ".tar.xz")) |
1251 | (sha256 | |
1252 | (base32 | |
b6476ecc | 1253 | "03vrbymwbn4nqsypcmr4ccqv20nvwdfs9gb01pi3jxr6x0wrlb0p")))) |
c195b5ba EF |
1254 | (arguments |
1255 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1256 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
d5ca54ce EF |
1257 | (native-inputs |
1258 | `(("perl" ,perl) | |
1259 | ("qtdeclarative" ,qtdeclarative) | |
9a935ef2 | 1260 | ("qtquickcontrols" ,qtquickcontrols) |
d5ca54ce | 1261 | ("qtserialport" ,qtserialport))) |
924e6ddf EF |
1262 | (inputs |
1263 | `(("icu4c" ,icu4c) | |
1264 | ("openssl" ,openssl) | |
1265 | ("qtbase" ,qtbase) | |
96412f34 EF |
1266 | ("zlib" ,zlib))) |
1267 | (synopsis "Qt Location and Positioning modules") | |
1268 | (description "The Qt Location module provides an interface for location, | |
1269 | positioning and geolocation plugins."))) | |
d5ca54ce | 1270 | |
d438c968 EF |
1271 | (define-public qttools |
1272 | (package (inherit qtsvg) | |
1273 | (name "qttools") | |
b6476ecc | 1274 | (version "5.11.1") |
d438c968 EF |
1275 | (source (origin |
1276 | (method url-fetch) | |
1277 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1278 | (version-major+minor version) "/" version | |
1f52eb7b | 1279 | "/submodules/" name "-everywhere-src-" |
d438c968 EF |
1280 | version ".tar.xz")) |
1281 | (sha256 | |
1282 | (base32 | |
b6476ecc | 1283 | "1zhl8p29mbabf07rhaks13qcm45zdckzymvz9qn95nxfj9piiyxp")))) |
c195b5ba EF |
1284 | (arguments |
1285 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1286 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
d438c968 EF |
1287 | (native-inputs |
1288 | `(("perl" ,perl) | |
1289 | ("qtdeclarative" ,qtdeclarative))) | |
1290 | (inputs | |
1291 | `(("mesa" ,mesa) | |
96412f34 EF |
1292 | ("qtbase" ,qtbase))) |
1293 | (synopsis "Qt Tools and Designer modules") | |
1294 | (description "The Qt Tools module provides a set of applications to browse | |
1295 | the documentation, translate applications, generate help files and other stuff | |
1296 | that helps in Qt development."))) | |
d438c968 | 1297 | |
4742c4de EF |
1298 | (define-public qtscript |
1299 | (package (inherit qtsvg) | |
1300 | (name "qtscript") | |
b6476ecc | 1301 | (version "5.11.1") |
4742c4de EF |
1302 | (source (origin |
1303 | (method url-fetch) | |
1304 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1305 | (version-major+minor version) "/" version | |
1f52eb7b | 1306 | "/submodules/" name "-everywhere-src-" |
4742c4de EF |
1307 | version ".tar.xz")) |
1308 | (sha256 | |
1309 | (base32 | |
b6476ecc | 1310 | "0z6sb4b9ds5lwkr0sxrnx6nim3aq2qx4a8illjy5vclfdv80yhqw")) |
7c5cf7a2 | 1311 | (patches (search-patches "qtscript-disable-tests.patch")))) |
4742c4de EF |
1312 | (native-inputs |
1313 | `(("perl" ,perl) | |
1314 | ("qttools" ,qttools))) | |
1315 | (inputs | |
96412f34 EF |
1316 | `(("qtbase" ,qtbase))) |
1317 | (synopsis "Qt Script module") | |
1318 | (description "Qt provides support for application scripting with ECMAScript. | |
1319 | The following guides and references cover aspects of programming with | |
1320 | ECMAScript and Qt."))) | |
4742c4de | 1321 | |
ae0e5133 DC |
1322 | (define-public qtquickcontrols |
1323 | (package (inherit qtsvg) | |
1324 | (name "qtquickcontrols") | |
b6476ecc | 1325 | (version "5.11.1") |
ae0e5133 DC |
1326 | (source (origin |
1327 | (method url-fetch) | |
1328 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1329 | (version-major+minor version) "/" version | |
1f52eb7b | 1330 | "/submodules/" name "-everywhere-src-" |
ae0e5133 DC |
1331 | version ".tar.xz")) |
1332 | (sha256 | |
1333 | (base32 | |
b6476ecc | 1334 | "0mn662j0gkpama7zlrsn4h27sjrk49kpbha1h0zxxyiza5cpzsms")))) |
c195b5ba EF |
1335 | (arguments |
1336 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1337 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
ae0e5133 DC |
1338 | (inputs |
1339 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1340 | ("qtdeclarative" ,qtdeclarative))) |
1341 | (synopsis "Qt Quick Controls and other Quick modules") | |
1342 | (description "The QtScript module provides classes for making Qt | |
1343 | applications scriptable. This module provides a set of extra components that | |
1344 | can be used to build complete interfaces in Qt Quick."))) | |
ae0e5133 | 1345 | |
42da1492 DC |
1346 | (define-public qtquickcontrols2 |
1347 | (package (inherit qtsvg) | |
1348 | (name "qtquickcontrols2") | |
b6476ecc | 1349 | (version "5.11.1") |
42da1492 DC |
1350 | (source (origin |
1351 | (method url-fetch) | |
1352 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1353 | (version-major+minor version) "/" version | |
1f52eb7b | 1354 | "/submodules/" name "-everywhere-src-" |
42da1492 DC |
1355 | version ".tar.xz")) |
1356 | (sha256 | |
1357 | (base32 | |
b6476ecc | 1358 | "0hn4kvrkz5ivwrp9p6yzwlw7cn4j72kcpm2nqyi3dbai1px6dc5x")))) |
c195b5ba EF |
1359 | (arguments |
1360 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1361 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
42da1492 DC |
1362 | (inputs |
1363 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1364 | ("qtdeclarative" ,qtdeclarative))) |
1365 | (synopsis "Qt Quick Controls 2 and other Quick 2 modules") | |
1366 | (description "The Qt Quick Controls 2 module contains the Qt Labs Platform | |
1367 | module that provides platform integration: native dialogs, menus and menu bars, | |
1368 | and tray icons. It falls back to Qt Widgets when a native implementation is | |
1369 | not available."))) | |
42da1492 | 1370 | |
4e4ed0ee DC |
1371 | (define-public qtgraphicaleffects |
1372 | (package (inherit qtsvg) | |
1373 | (name "qtgraphicaleffects") | |
b6476ecc | 1374 | (version "5.11.1") |
4e4ed0ee DC |
1375 | (source (origin |
1376 | (method url-fetch) | |
1377 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1378 | (version-major+minor version) "/" version | |
1f52eb7b | 1379 | "/submodules/" name "-everywhere-src-" |
4e4ed0ee DC |
1380 | version ".tar.xz")) |
1381 | (sha256 | |
1382 | (base32 | |
b6476ecc | 1383 | "1ws8aj7bq3rxpzjs370dcyqk8a5v1y6fwvrdhf70j8b2d4v75lnr")))) |
c195b5ba EF |
1384 | (arguments |
1385 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1386 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
4e4ed0ee DC |
1387 | (inputs |
1388 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1389 | ("qtdeclarative" ,qtdeclarative))) |
1390 | (synopsis "Qt Graphical Effects module") | |
1391 | (description "The Qt Graphical Effects module provides a set of QML types | |
1392 | for adding visually impressive and configurable effects to user interfaces. | |
1393 | Effects are visual items that can be added to Qt Quick user interface as UI | |
1394 | components. The API consists of over 20 effects provided as separate QML | |
1395 | types. The effects cover functional areas such as blending, masking, blurring, | |
1396 | coloring, and many more."))) | |
4e4ed0ee | 1397 | |
843bdfb7 | 1398 | (define-public qtdeclarative-render2d |
a20e00dd | 1399 | ;; As of Qt-5.8.0 this module has been merged into qtdeclarative |
843bdfb7 EF |
1400 | (package (inherit qtsvg) |
1401 | (name "qtdeclarative-render2d") | |
1402 | (version "5.7.1") | |
1403 | (source (origin | |
1404 | (method url-fetch) | |
1405 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1406 | (version-major+minor version) "/" version | |
1f52eb7b | 1407 | "/submodules/" name "-everywhere-src-" |
843bdfb7 EF |
1408 | version ".tar.xz")) |
1409 | (sha256 | |
1410 | (base32 | |
1411 | "0zwch9vn17f3bpy300jcfxx6cx9qymk5j7khx0x9k1xqid4166c3")) | |
1412 | (modules '((guix build utils))) | |
1413 | (snippet | |
1f52eb7b EF |
1414 | '(begin |
1415 | (delete-file-recursively "tools/opengldummy/3rdparty") | |
1416 | #t)))) | |
843bdfb7 EF |
1417 | (native-inputs `()) |
1418 | (inputs | |
1419 | `(("qtbase" ,qtbase) | |
a20e00dd | 1420 | ("qtdeclarative" ,qtdeclarative))) |
96412f34 EF |
1421 | (synopsis "Qt Declarative Render module") |
1422 | (description "The Qt Declarative Render 2D module provides a Raster | |
1423 | backend for QtQuick scene graph.") | |
a20e00dd | 1424 | (properties `((superseded . ,qtdeclarative))))) |
843bdfb7 | 1425 | |
51519fd3 EF |
1426 | (define-public qtgamepad |
1427 | (package (inherit qtsvg) | |
1428 | (name "qtgamepad") | |
b6476ecc | 1429 | (version "5.11.1") |
51519fd3 EF |
1430 | (source (origin |
1431 | (method url-fetch) | |
1432 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1433 | (version-major+minor version) "/" version | |
1f52eb7b | 1434 | "/submodules/" name "-everywhere-src-" |
51519fd3 EF |
1435 | version ".tar.xz")) |
1436 | (sha256 | |
1437 | (base32 | |
b6476ecc | 1438 | "1n97w9rcbg8mzkvjgn3i8jbfmplp7w0p80ykdchpml47gxk1kwma")))) |
51519fd3 EF |
1439 | (native-inputs |
1440 | `(("perl" ,perl) | |
1441 | ("pkg-config" ,pkg-config))) | |
1442 | (inputs | |
1443 | `(("fontconfig" ,fontconfig) | |
1444 | ("freetype" ,freetype) | |
1445 | ("libxrender" ,libxrender) | |
1446 | ("sdl2" ,sdl2) | |
1447 | ("qtbase" ,qtbase) | |
96412f34 EF |
1448 | ("qtdeclarative" ,qtdeclarative))) |
1449 | (synopsis "Qt Gamepad module") | |
1450 | (description "The Qt Gamepad module is an add-on library that enables Qt | |
1451 | applications to support the use of gamepad hardware and in some cases remote | |
1452 | control equipment. The module provides both QML and C++ interfaces. The | |
1453 | primary target audience are embedded devices with fullscreen user interfaces, | |
1454 | and mobile applications targeting TV-like form factors."))) | |
51519fd3 | 1455 | |
56cd88fd EF |
1456 | (define-public qtscxml |
1457 | (package (inherit qtsvg) | |
1458 | (name "qtscxml") | |
b6476ecc | 1459 | (version "5.11.1") |
56cd88fd EF |
1460 | (source (origin |
1461 | (method url-fetch) | |
1462 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1463 | (version-major+minor version) "/" version | |
1f52eb7b | 1464 | "/submodules/" name "-everywhere-src-" |
56cd88fd EF |
1465 | version ".tar.xz")) |
1466 | (sha256 | |
1467 | (base32 | |
b6476ecc | 1468 | "0f1k4fnk2aydagxqvkb636pcsi17sbq2zj2fn0ad50dvq013yiph")) |
56cd88fd EF |
1469 | (modules '((guix build utils))) |
1470 | (snippet | |
c195b5ba EF |
1471 | '(begin |
1472 | (delete-file-recursively "tests/3rdparty") | |
1473 | ;; the scion test refers to the bundled 3rd party test code. | |
1474 | (substitute* "tests/auto/auto.pro" | |
6cbee49d MW |
1475 | (("scion") "#")) |
1476 | #t)))) | |
56cd88fd EF |
1477 | (inputs |
1478 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1479 | ("qtdeclarative" ,qtdeclarative))) |
1480 | (synopsis "Qt SCXML module") | |
1481 | (description "The Qt SCXML module provides functionality to create state | |
1482 | machines from SCXML files. This includes both dynamically creating state | |
1483 | machines (loading the SCXML file and instantiating states and transitions) and | |
1484 | generating a C++ file that has a class implementing the state machine. It | |
1485 | also contains functionality to support data models and executable content."))) | |
56cd88fd | 1486 | |
de5e0180 EF |
1487 | (define-public qtpurchasing |
1488 | (package (inherit qtsvg) | |
1489 | (name "qtpurchasing") | |
b6476ecc | 1490 | (version "5.11.1") |
de5e0180 EF |
1491 | (source (origin |
1492 | (method url-fetch) | |
1493 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1494 | (version-major+minor version) "/" version | |
1f52eb7b | 1495 | "/submodules/" name "-everywhere-src-" |
de5e0180 EF |
1496 | version ".tar.xz")) |
1497 | (sha256 | |
1498 | (base32 | |
b6476ecc | 1499 | "0crm39fy9aqns10mjlbxvkkna9xklic49zfp3f7v7cwl66wap6dc")))) |
de5e0180 EF |
1500 | (inputs |
1501 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1502 | ("qtdeclarative" ,qtdeclarative))) |
1503 | (synopsis "Qt Purchasing module") | |
1504 | (description "The Qt Purchasing module provides and in-app API for | |
1505 | purchasing goods and services."))) | |
de5e0180 | 1506 | |
173b54b9 EF |
1507 | (define-public qtcanvas3d |
1508 | (package (inherit qtsvg) | |
1509 | (name "qtcanvas3d") | |
b6476ecc | 1510 | (version "5.11.1") |
173b54b9 EF |
1511 | (source (origin |
1512 | (method url-fetch) | |
1513 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1514 | (version-major+minor version) "/" version | |
1f52eb7b | 1515 | "/submodules/" name "-everywhere-src-" |
173b54b9 EF |
1516 | version ".tar.xz")) |
1517 | (sha256 | |
1518 | (base32 | |
b6476ecc | 1519 | "1pif3m1f44jrly2nh0hzid6dmdxqiy5qgx645hz6g5fmpl113d8g")) |
173b54b9 EF |
1520 | (modules '((guix build utils))) |
1521 | (snippet | |
1f52eb7b EF |
1522 | '(begin |
1523 | (delete-file-recursively "examples/canvas3d/3rdparty") | |
1524 | #t)))) | |
c195b5ba EF |
1525 | (arguments |
1526 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1527 | ;; Building the tests depends on the bundled 3rd party javascript files, | |
1528 | ;; and the test phase fails to import QtCanvas3D, causing the phase to | |
1529 | ;; fail, so we skip building them for now. | |
1530 | ((#:phases phases) | |
1531 | `(modify-phases ,phases | |
1532 | (replace 'configure | |
1533 | (lambda* (#:key outputs #:allow-other-keys) | |
1534 | (let ((out (assoc-ref outputs "out"))) | |
1f52eb7b EF |
1535 | (invoke "qmake" "QT_BUILD_PARTS = libs tools" |
1536 | (string-append "PREFIX=" out))))))) | |
c195b5ba | 1537 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests |
173b54b9 EF |
1538 | (native-inputs `()) |
1539 | (inputs | |
1540 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1541 | ("qtdeclarative" ,qtdeclarative))) |
1542 | (synopsis "Qt Canvas 3D module") | |
1543 | (description "The Qt Canvas 3D module provides a way to make WebGL-like 3D | |
1544 | drawing calls from Qt Quick JavaScript."))) | |
173b54b9 | 1545 | |
68bbe14b EF |
1546 | (define-public qtcharts |
1547 | (package (inherit qtsvg) | |
1548 | (name "qtcharts") | |
b6476ecc | 1549 | (version "5.11.1") |
68bbe14b EF |
1550 | (source (origin |
1551 | (method url-fetch) | |
1552 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1553 | (version-major+minor version) "/" version | |
1f52eb7b | 1554 | "/submodules/" name "-everywhere-src-" |
68bbe14b EF |
1555 | version ".tar.xz")) |
1556 | (sha256 | |
1557 | (base32 | |
b6476ecc | 1558 | "0avscsni84zrzydilkkp456sbaypyzhkn42qygjdq7wcn045zxk2")))) |
c195b5ba EF |
1559 | (arguments |
1560 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1561 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
68bbe14b EF |
1562 | (inputs |
1563 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1564 | ("qtdeclarative" ,qtdeclarative))) |
1565 | (synopsis "Qt Charts module") | |
1566 | (description "The Qt Charts module provides a set of easy to use chart | |
1567 | components. It uses the Qt Graphics View Framework, therefore charts can be | |
1568 | easily integrated to modern user interfaces. Qt Charts can be used as QWidgets, | |
1569 | QGraphicsWidget, or QML types. Users can easily create impressive graphs by | |
9c2c524d EF |
1570 | selecting one of the charts themes.") |
1571 | (license license:gpl3))) | |
68bbe14b | 1572 | |
a69945a7 EF |
1573 | (define-public qtdatavis3d |
1574 | (package (inherit qtsvg) | |
1575 | (name "qtdatavis3d") | |
b6476ecc | 1576 | (version "5.11.1") |
a69945a7 EF |
1577 | (source (origin |
1578 | (method url-fetch) | |
1579 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1580 | (version-major+minor version) "/" version | |
1f52eb7b | 1581 | "/submodules/" name "-everywhere-src-" |
a69945a7 EF |
1582 | version ".tar.xz")) |
1583 | (sha256 | |
1584 | (base32 | |
b6476ecc | 1585 | "0gay0dsz05xfrlx190y95hp9wipzb988h02fqbqvyn00ds3s178w")))) |
c195b5ba EF |
1586 | (arguments |
1587 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1588 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
a69945a7 EF |
1589 | (inputs |
1590 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1591 | ("qtdeclarative" ,qtdeclarative))) |
1592 | (synopsis "Qt Data Visualization module") | |
1593 | (description "The Qt Data Visualization module provides a way to visualize | |
1594 | data in 3D as bar, scatter, and surface graphs. It is especially useful for | |
1595 | visualizing depth maps and large quantities of rapidly changing data, such as | |
1596 | data received from multiple sensors. The look and feel of graphs can be | |
9c2c524d EF |
1597 | customized by using themes or by adding custom items and labels to them.") |
1598 | (license license:gpl3))) | |
f47d2793 EF |
1599 | |
1600 | (define-public qtnetworkauth | |
1601 | (package (inherit qtsvg) | |
1602 | (name "qtnetworkauth") | |
b6476ecc | 1603 | (version "5.11.1") |
f47d2793 EF |
1604 | (source (origin |
1605 | (method url-fetch) | |
1606 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1607 | (version-major+minor version) "/" version | |
1f52eb7b | 1608 | "/submodules/" name "-everywhere-src-" |
f47d2793 EF |
1609 | version ".tar.xz")) |
1610 | (sha256 | |
1611 | (base32 | |
b6476ecc | 1612 | "05p4pvfp3k5612d54anvpj39bgc7v572x6kgk3fy69xgn7lhbd02")))) |
f18c9470 EF |
1613 | (arguments |
1614 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1615 | ((#:phases phases) | |
1616 | `(modify-phases ,phases | |
1617 | (add-after 'unpack 'remove-failing-test | |
1618 | (lambda _ | |
1619 | ;; These tests can't find their test data. | |
1620 | (substitute* "tests/auto/auto.pro" | |
1621 | (("oauth1 ") "# oauth1 ")) | |
1622 | #t)))))) | |
f47d2793 | 1623 | (inputs |
96412f34 EF |
1624 | `(("qtbase" ,qtbase))) |
1625 | (synopsis "Qt Network Authorization module") | |
1626 | (description "The Qt Network Authorization module provides an | |
1627 | implementation of OAuth and OAuth2 authenticathon methods for Qt."))) | |
213238d9 EF |
1628 | |
1629 | (define-public qtremoteobjects | |
1630 | (package (inherit qtsvg) | |
1631 | (name "qtremoteobjects") | |
b6476ecc | 1632 | (version "5.11.1") |
213238d9 EF |
1633 | (source (origin |
1634 | (method url-fetch) | |
1635 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1636 | (version-major+minor version) "/" version | |
1f52eb7b | 1637 | "/submodules/" name "-everywhere-src-" |
213238d9 EF |
1638 | version ".tar.xz")) |
1639 | (sha256 | |
1640 | (base32 | |
b6476ecc | 1641 | "1yv9f2329nv4viiyqmq7ciz51574wd11grj8s88qm0ndcb36jbgb")))) |
1f52eb7b EF |
1642 | (arguments |
1643 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1644 | ((#:phases phases) | |
1645 | `(modify-phases ,phases | |
1646 | (add-after 'unpack 'remove-failing-test | |
1647 | (lambda _ | |
1648 | ;; This test can't find its imports. | |
1649 | (substitute* "tests/auto/qml/qml.pro" | |
b6476ecc EF |
1650 | (("integration") "# integration") |
1651 | (("usertypes") "# usertypes")) | |
1f52eb7b | 1652 | #t)))))) |
213238d9 EF |
1653 | (inputs |
1654 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1655 | ("qtdeclarative" ,qtdeclarative))) |
1656 | (synopsis "Qt Remote Objects module") | |
1657 | (description "The Qt Remote Objects module is an @dfn{inter-process | |
1658 | communication} (IPC) module developed for Qt. The idea is to extend existing | |
1659 | Qt's functionalities to enable an easy exchange of information between | |
1660 | processes or computers."))) | |
b84cc89a EF |
1661 | |
1662 | (define-public qtspeech | |
1663 | (package (inherit qtsvg) | |
1664 | (name "qtspeech") | |
b6476ecc | 1665 | (version "5.11.1") |
b84cc89a EF |
1666 | (source (origin |
1667 | (method url-fetch) | |
1668 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1669 | (version-major+minor version) "/" version | |
1f52eb7b | 1670 | "/submodules/" name "-everywhere-src-" |
b84cc89a EF |
1671 | version ".tar.xz")) |
1672 | (sha256 | |
1673 | (base32 | |
b6476ecc EF |
1674 | "1nwvbaijg35i98yaiqgnyn5vv0cn4v3wrxhwi1s0hfv9sv3q5iyw")))) |
1675 | (arguments | |
1676 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1677 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
b84cc89a EF |
1678 | (inputs |
1679 | `(("qtbase" ,qtbase))) | |
1680 | (native-inputs | |
1681 | `(("perl" ,perl) | |
1682 | ("qtdeclarative" ,qtdeclarative) | |
1683 | ("qtmultimedia" ,qtmultimedia) | |
96412f34 EF |
1684 | ("qtxmlpatterns" ,qtxmlpatterns))) |
1685 | (synopsis "Qt Speech module") | |
1686 | (description "The Qt Speech module enables a Qt application to support | |
1687 | accessibility features such as text-to-speech, which is useful for end-users | |
1688 | who are visually challenged or cannot access the application for whatever | |
1689 | reason. The most common use case where text-to-speech comes in handy is when | |
1690 | the end-user is driving and cannot attend the incoming messages on the phone. | |
1691 | In such a scenario, the messaging application can read out the incoming | |
1692 | message."))) | |
a69945a7 | 1693 | |
84ef83dd AE |
1694 | (define-public python-sip |
1695 | (package | |
1696 | (name "python-sip") | |
fac1447b | 1697 | (version "4.19.12") |
84ef83dd AE |
1698 | (source |
1699 | (origin | |
1700 | (method url-fetch) | |
1701 | (uri | |
1702 | (string-append "mirror://sourceforge/pyqt/sip/" | |
8fa7f8d9 | 1703 | "sip-" version "/sip-" version ".tar.gz")) |
84ef83dd AE |
1704 | (sha256 |
1705 | (base32 | |
fac1447b | 1706 | "08iqj9qyanc6a4bllbd87gv8pd1gkplw1jhfa1sz0gcq3g1pyq94")))) |
84ef83dd AE |
1707 | (build-system gnu-build-system) |
1708 | (native-inputs | |
1709 | `(("python" ,python-wrapper))) | |
1710 | (arguments | |
1711 | `(#:tests? #f ; no check target | |
e8bdd73a AE |
1712 | #:modules ((srfi srfi-1) |
1713 | ,@%gnu-build-system-modules) | |
84ef83dd | 1714 | #:phases |
39766868 EF |
1715 | (modify-phases %standard-phases |
1716 | (replace 'configure | |
1717 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1718 | (let* ((out (assoc-ref outputs "out")) | |
1719 | (bin (string-append out "/bin")) | |
1720 | (include (string-append out "/include")) | |
1721 | (python (assoc-ref inputs "python")) | |
1722 | (python-version | |
1723 | (last (string-split python #\-))) | |
1724 | (python-major+minor | |
1725 | (string-join | |
1726 | (take (string-split python-version #\.) 2) | |
1727 | ".")) | |
1728 | (lib (string-append out "/lib/python" | |
1729 | python-major+minor | |
1730 | "/site-packages"))) | |
e3232b26 | 1731 | (invoke "python" "configure.py" |
e3232b26 EF |
1732 | "--bindir" bin |
1733 | "--destdir" lib | |
1734 | "--incdir" include))))))) | |
39766868 | 1735 | (home-page "https://www.riverbankcomputing.com/software/sip/intro") |
84ef83dd AE |
1736 | (synopsis "Python binding creator for C and C++ libraries") |
1737 | (description | |
1738 | "SIP is a tool to create Python bindings for C and C++ libraries. It | |
1739 | was originally developed to create PyQt, the Python bindings for the Qt | |
1740 | toolkit, but can be used to create bindings for any C or C++ library. | |
1741 | ||
1742 | SIP comprises a code generator and a Python module. The code generator | |
1743 | processes a set of specification files and generates C or C++ code, which | |
1744 | is then compiled to create the bindings extension module. The SIP Python | |
1745 | module provides support functions to the automatically generated code.") | |
1746 | ;; There is a choice between a python like license, gpl2 and gpl3. | |
1747 | ;; For compatibility with pyqt, we need gpl3. | |
225941b0 | 1748 | (license license:gpl3))) |
84ef83dd AE |
1749 | |
1750 | (define-public python2-sip | |
1751 | (package (inherit python-sip) | |
1752 | (name "python2-sip") | |
1753 | (native-inputs | |
1754 | `(("python" ,python-2))))) | |
014e7dd8 AE |
1755 | |
1756 | (define-public python-pyqt | |
1757 | (package | |
1758 | (name "python-pyqt") | |
a01a3763 | 1759 | (version "5.11.2") |
014e7dd8 AE |
1760 | (source |
1761 | (origin | |
1762 | (method url-fetch) | |
1763 | (uri | |
1764 | (string-append "mirror://sourceforge/pyqt/PyQt5/" | |
2be06813 | 1765 | "PyQt-" version "/PyQt5_gpl-" |
014e7dd8 AE |
1766 | version ".tar.gz")) |
1767 | (sha256 | |
1768 | (base32 | |
a01a3763 | 1769 | "00wn9svgyp0fsrkc4ma15zcxg31pw4gsgaz6nwb3fhy3al8miakw")) |
2338755a EF |
1770 | (patches (search-patches "pyqt-configure.patch" |
1771 | "pyqt-public-sip.patch")))) | |
014e7dd8 AE |
1772 | (build-system gnu-build-system) |
1773 | (native-inputs | |
499991cf EB |
1774 | `(("qtbase" ,qtbase))) ; for qmake |
1775 | (propagated-inputs | |
1776 | `(("python-sip" ,python-sip))) | |
014e7dd8 | 1777 | (inputs |
e9adcd81 EF |
1778 | `(("python" ,python-wrapper) |
1779 | ("qtbase" ,qtbase) | |
1780 | ("qtconnectivity" ,qtconnectivity) | |
1781 | ("qtdeclarative" ,qtdeclarative) | |
1782 | ("qtlocation" ,qtlocation) | |
1783 | ("qtmultimedia" ,qtmultimedia) | |
1784 | ("qtsensors" ,qtsensors) | |
1785 | ("qtserialport" ,qtserialport) | |
1786 | ("qtsvg" ,qtsvg) | |
1787 | ("qttools" ,qttools) | |
1788 | ("qtwebchannel" ,qtwebchannel) | |
52404022 | 1789 | ("qtwebkit" ,qtwebkit) |
e9adcd81 EF |
1790 | ("qtwebsockets" ,qtwebsockets) |
1791 | ("qtx11extras" ,qtx11extras) | |
1792 | ("qtxmlpatterns" ,qtxmlpatterns))) | |
014e7dd8 | 1793 | (arguments |
e8bdd73a AE |
1794 | `(#:modules ((srfi srfi-1) |
1795 | ,@%gnu-build-system-modules) | |
1796 | #:phases | |
eef988c8 EF |
1797 | (modify-phases %standard-phases |
1798 | (replace 'configure | |
1799 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1800 | (let* ((out (assoc-ref outputs "out")) | |
1801 | (bin (string-append out "/bin")) | |
1802 | (sip (string-append out "/share/sip")) | |
1803 | (plugins (string-append out "/plugins")) | |
1804 | (designer (string-append plugins "/designer")) | |
1805 | (qml (string-append plugins "/PyQt5")) | |
1806 | (python (assoc-ref inputs "python")) | |
1807 | (python-version | |
1808 | (last (string-split python #\-))) | |
1809 | (python-major+minor | |
1810 | (string-join | |
1811 | (take (string-split python-version #\.) 2) | |
1812 | ".")) | |
1813 | (lib (string-append out "/lib/python" | |
1814 | python-major+minor | |
43e8824d HG |
1815 | "/site-packages")) |
1816 | (stubs (string-append lib "/PyQt5"))) | |
a01a3763 EF |
1817 | (invoke "python" "configure.py" |
1818 | "--confirm-license" | |
1819 | "--bindir" bin | |
1820 | "--destdir" lib | |
1821 | "--designer-plugindir" designer | |
1822 | "--qml-plugindir" qml | |
1823 | ; Where to install the PEP 484 Type Hints stub | |
1824 | ; files. Without this the stubs are tried to be | |
1825 | ; installed into the python package's | |
1826 | ; site-package directory, which is read-only. | |
1827 | "--stubsdir" stubs | |
1828 | "--sipdir" sip))))))) | |
eef988c8 | 1829 | (home-page "https://www.riverbankcomputing.com/software/pyqt/intro") |
014e7dd8 AE |
1830 | (synopsis "Python bindings for Qt") |
1831 | (description | |
1832 | "PyQt is a set of Python v2 and v3 bindings for the Qt application | |
1833 | framework. The bindings are implemented as a set of Python modules and | |
1834 | contain over 620 classes.") | |
225941b0 | 1835 | (license license:gpl3))) |
014e7dd8 AE |
1836 | |
1837 | (define-public python2-pyqt | |
1838 | (package (inherit python-pyqt) | |
1839 | (name "python2-pyqt") | |
1840 | (native-inputs | |
1841 | `(("python-sip" ,python2-sip) | |
2be06813 | 1842 | ("qtbase" ,qtbase))) |
014e7dd8 | 1843 | (inputs |
e9adcd81 | 1844 | `(("python" ,python-2) |
a01a3763 | 1845 | ("python2-enum34" ,python2-enum34) |
e9adcd81 | 1846 | ,@(alist-delete "python" (package-inputs python-pyqt)))))) |
3e291958 | 1847 | |
bba60697 | 1848 | (define-public python2-pyqt-4 |
3e291958 | 1849 | (package (inherit python-pyqt) |
bba60697 | 1850 | (name "python2-pyqt") |
41fa164a | 1851 | (version "4.12") |
3e291958 AE |
1852 | (source |
1853 | (origin | |
1854 | (method url-fetch) | |
1855 | (uri | |
1856 | (string-append "mirror://sourceforge/pyqt/PyQt4/" | |
41fa164a | 1857 | "PyQt-" version "/PyQt4_gpl_x11-" |
3e291958 AE |
1858 | version ".tar.gz")) |
1859 | (sha256 | |
1860 | (base32 | |
41fa164a | 1861 | "1nw8r88a5g2d550yvklawlvns8gd5slw53yy688kxnsa65aln79w")))) |
3e291958 | 1862 | (native-inputs |
bba60697 | 1863 | `(("python-sip" ,python2-sip) |
3e291958 | 1864 | ("qt" ,qt-4))) |
bba60697 | 1865 | (inputs `(("python" ,python-2))) |
3e291958 AE |
1866 | (arguments |
1867 | `(#:tests? #f ; no check target | |
e8bdd73a AE |
1868 | #:modules ((srfi srfi-1) |
1869 | ,@%gnu-build-system-modules) | |
3e291958 | 1870 | #:phases |
f9513086 EF |
1871 | (modify-phases %standard-phases |
1872 | (replace 'configure | |
1873 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1874 | (let* ((out (assoc-ref outputs "out")) | |
1875 | (bin (string-append out "/bin")) | |
1876 | (sip (string-append out "/share/sip")) | |
1877 | (python (assoc-ref inputs "python")) | |
1878 | (python-version | |
1879 | (last (string-split python #\-))) | |
1880 | (python-major+minor | |
1881 | (string-join | |
1882 | (take (string-split python-version #\.) 2) | |
1883 | ".")) | |
1884 | (lib (string-append out "/lib/python" | |
1885 | python-major+minor | |
1886 | "/site-packages"))) | |
1887 | (zero? (system* "python" "configure.py" | |
1888 | "--confirm-license" | |
1889 | "--bindir" bin | |
1890 | "--destdir" lib | |
1891 | "--sipdir" sip)))))))) | |
225941b0 | 1892 | (license (list license:gpl2 license:gpl3)))) ; choice of either license |
3e291958 | 1893 | |
3befd0a9 RW |
1894 | (define-public qscintilla |
1895 | (package | |
1896 | (name "qscintilla") | |
8911d85b | 1897 | (version "2.10.7") |
3befd0a9 RW |
1898 | (source (origin |
1899 | (method url-fetch) | |
1900 | (uri (string-append "mirror://sourceforge/pyqt/QScintilla2/" | |
1901 | "QScintilla-" version "/QScintilla_gpl-" | |
1902 | version ".tar.gz")) | |
1903 | (sha256 | |
1904 | (base32 | |
8911d85b | 1905 | "06hs6civq13dvzlws0spjb7gwyk6kynpnfwg5plhahnxf7g5h137")))) |
3befd0a9 RW |
1906 | (build-system gnu-build-system) |
1907 | (arguments | |
1908 | `(#:phases | |
1909 | (modify-phases %standard-phases | |
1910 | (replace 'configure | |
1911 | (lambda* (#:key outputs #:allow-other-keys) | |
1912 | (let ((out (assoc-ref outputs "out"))) | |
1913 | (chdir "Qt4Qt5") | |
1914 | (substitute* "qscintilla.pro" | |
1915 | (("\\$\\$\\[QT_INSTALL_LIBS\\]") | |
1916 | (string-append out "/lib")) | |
1917 | (("\\$\\$\\[QT_INSTALL_HEADERS\\]") | |
1918 | (string-append out "/include")) | |
1919 | (("\\$\\$\\[QT_INSTALL_TRANSLATIONS\\]") | |
1920 | (string-append out "/translations")) | |
5430732b HG |
1921 | (("\\$\\$\\[QT_INSTALL_DATA\\]") |
1922 | (string-append out "/lib/qt$${QT_MAJOR_VERSION}")) | |
1923 | (("\\$\\$\\[QT_HOST_DATA\\]") | |
1924 | (string-append out "/lib/qt$${QT_MAJOR_VERSION}"))) | |
0af6ffdd | 1925 | (invoke "qmake"))))))) |
3befd0a9 | 1926 | (native-inputs `(("qtbase" ,qtbase))) |
d338321d | 1927 | (home-page "https://www.riverbankcomputing.co.uk/software/qscintilla/intro") |
3befd0a9 RW |
1928 | (synopsis "Qt port of the Scintilla C++ editor control") |
1929 | (description "QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ | |
1930 | editor control. QScintilla includes features especially useful when editing | |
1931 | and debugging source code. These include support for syntax styling, error | |
1932 | indicators, code completion and call tips.") | |
1933 | (license license:gpl3+))) | |
1934 | ||
06d04dbc RW |
1935 | (define-public python-qscintilla |
1936 | (package (inherit qscintilla) | |
1937 | (name "python-qscintilla") | |
1938 | (arguments | |
1939 | `(#:configure-flags | |
1940 | (list "--pyqt=PyQt5" | |
1941 | (string-append "--pyqt-sipdir=" | |
1942 | (assoc-ref %build-inputs "python-pyqt") | |
1943 | "/share/sip") | |
1944 | (string-append "--qsci-incdir=" | |
1945 | (assoc-ref %build-inputs "qscintilla") | |
1946 | "/include") | |
1947 | (string-append "--qsci-libdir=" | |
1948 | (assoc-ref %build-inputs "qscintilla") | |
1949 | "/lib")) | |
1950 | #:phases | |
1951 | (modify-phases %standard-phases | |
1952 | (replace 'configure | |
1953 | (lambda* (#:key outputs configure-flags #:allow-other-keys) | |
1954 | (chdir "Python") | |
76c7fc43 MW |
1955 | (apply invoke "python3" "configure.py" |
1956 | configure-flags) | |
1957 | ;; Install to the right directory | |
1958 | (substitute* '("Makefile" | |
1959 | "Qsci/Makefile") | |
1960 | (("\\$\\(INSTALL_ROOT\\)/gnu/store/[^/]+") | |
1961 | (assoc-ref outputs "out"))) | |
bca72b39 EF |
1962 | ;; And fix the installed.txt file |
1963 | (substitute* "installed.txt" | |
1964 | (("/gnu/store/[^/]+") | |
1965 | (assoc-ref outputs "out"))) | |
76c7fc43 | 1966 | #t))))) |
06d04dbc RW |
1967 | (inputs |
1968 | `(("qscintilla" ,qscintilla) | |
1969 | ("python" ,python) | |
1970 | ("python-pyqt" ,python-pyqt))) | |
1971 | (description "QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ | |
1972 | editor control. QScintilla includes features especially useful when editing | |
1973 | and debugging source code. These include support for syntax styling, error | |
1974 | indicators, code completion and call tips. | |
1975 | ||
1976 | This package provides the Python bindings."))) | |
1977 | ||
2456153a RW |
1978 | ;; PyQt only looks for modules in its own directory. It ignores environment |
1979 | ;; variables such as PYTHONPATH, so we need to build a union package to make | |
1980 | ;; it work. | |
1981 | (define-public python-pyqt+qscintilla | |
1982 | (package (inherit python-pyqt) | |
1983 | (name "python-pyqt+qscintilla") | |
1984 | (source #f) | |
1985 | (build-system trivial-build-system) | |
1986 | (arguments | |
1987 | '(#:modules ((guix build union)) | |
1988 | #:builder (begin | |
1989 | (use-modules (ice-9 match) | |
1990 | (guix build union)) | |
1991 | (match %build-inputs | |
1992 | (((names . directories) ...) | |
1993 | (union-build (assoc-ref %outputs "out") | |
e3cfef22 MW |
1994 | directories) |
1995 | #t))))) | |
2456153a RW |
1996 | (inputs |
1997 | `(("python-pyqt" ,python-pyqt) | |
1998 | ("python-qscintilla" ,python-qscintilla))) | |
1999 | (synopsis "Union of PyQt and the Qscintilla extension") | |
2000 | (description | |
2001 | "This package contains the union of PyQt and the Qscintilla extension."))) | |
2002 | ||
9e81af9e EF |
2003 | (define-public qtkeychain |
2004 | (package | |
2005 | (name "qtkeychain") | |
4ad70ad8 | 2006 | (version "0.8.0") |
9e81af9e EF |
2007 | (source |
2008 | (origin | |
2009 | (method url-fetch) | |
2010 | (uri (string-append "https://github.com/frankosterfeld/qtkeychain/" | |
2011 | "archive/v" version ".tar.gz")) | |
2012 | (file-name (string-append name "-" version ".tar.gz")) | |
2013 | (sha256 | |
4ad70ad8 | 2014 | (base32 "0bxi5pfhxdvwk8yxa06lk2d7lcibmfqhahbin82bqf3m341zd4ml")))) |
9e81af9e | 2015 | (build-system cmake-build-system) |
18174d8a | 2016 | (native-inputs |
f8127d26 HG |
2017 | `(("pkg-config" ,pkg-config) |
2018 | ("qttools" ,qttools))) | |
9e81af9e | 2019 | (inputs |
18174d8a | 2020 | `(("qtbase" ,qtbase))) |
9e81af9e EF |
2021 | (arguments |
2022 | `(#:tests? #f ; No tests included | |
2023 | #:phases | |
2024 | (modify-phases %standard-phases | |
2025 | (add-before | |
2026 | 'configure 'set-qt-trans-dir | |
2027 | (lambda _ | |
2028 | (substitute* "CMakeLists.txt" | |
2029 | (("\\$\\{qt_translations_dir\\}") | |
4ad70ad8 EF |
2030 | "${CMAKE_INSTALL_PREFIX}/share/qt/translations")) |
2031 | #t))))) | |
9e81af9e EF |
2032 | (home-page "https://github.com/frankosterfeld/qtkeychain") |
2033 | (synopsis "Qt API to store passwords") | |
2034 | (description | |
2035 | "QtKeychain is a Qt library to store passwords and other secret data | |
2036 | securely. It will not store any data unencrypted unless explicitly requested.") | |
225941b0 | 2037 | (license license:bsd-3))) |
fc381a33 TD |
2038 | |
2039 | (define-public qwt | |
2040 | (package | |
2041 | (name "qwt") | |
2042 | (version "6.1.3") | |
2043 | (source | |
2044 | (origin | |
2045 | (method url-fetch) | |
2046 | (uri | |
2047 | (string-append "mirror://sourceforge/qwt/qwt/" | |
2048 | version "/qwt-" version ".tar.bz2")) | |
2049 | (sha256 | |
2050 | (base32 "0cwp63s03dw351xavb3pzbjlqvx7kj88wv7v4a2b18m9f97d7v7k")))) | |
2051 | (build-system gnu-build-system) | |
2052 | (inputs | |
2053 | `(("qtbase" ,qtbase) | |
2054 | ("qtsvg" ,qtsvg) | |
2055 | ("qttools" ,qttools))) | |
2056 | (arguments | |
2057 | `(#:phases | |
2058 | (modify-phases %standard-phases | |
2059 | (replace 'configure | |
2060 | (lambda* (#:key outputs #:allow-other-keys) | |
163651cb SB |
2061 | (let* ((out (assoc-ref outputs "out")) |
2062 | (docdir (string-append out "/share/doc/qwt")) | |
2063 | (incdir (string-append out "/include/qwt")) | |
2064 | (pluginsdir (string-append out "/lib/qt5/plugins/designer")) | |
2065 | (featuresdir (string-append out "/lib/qt5/mkspecs/features"))) | |
fc381a33 | 2066 | (substitute* '("qwtconfig.pri") |
163651cb SB |
2067 | (("^(\\s*QWT_INSTALL_PREFIX)\\s*=.*" _ x) |
2068 | (format #f "~a = ~a\n" x out)) | |
2069 | (("^(QWT_INSTALL_DOCS)\\s*=.*" _ x) | |
2070 | (format #f "~a = ~a\n" x docdir)) | |
2071 | (("^(QWT_INSTALL_HEADERS)\\s*=.*" _ x) | |
2072 | (format #f "~a = ~a\n" x incdir)) | |
2073 | (("^(QWT_INSTALL_PLUGINS)\\s*=.*" _ x) | |
2074 | (format #f "~a = ~a\n" x pluginsdir)) | |
2075 | (("^(QWT_INSTALL_FEATURES)\\s*=.*" _ x) | |
2076 | (format #f "~a = ~a\n" x featuresdir))) | |
2077 | (substitute* '("doc/doc.pro") | |
2078 | ;; We'll install them in the 'install-man-pages' phase. | |
2079 | (("^unix:doc\\.files.*") "")) | |
fc381a33 | 2080 | (zero? (system* "qmake"))))) |
163651cb | 2081 | (add-after 'install 'install-man-pages |
fc381a33 TD |
2082 | (lambda* (#:key outputs #:allow-other-keys) |
2083 | (let* ((out (assoc-ref outputs "out")) | |
2084 | (man (string-append out "/share/man"))) | |
2085 | ;; Remove some incomplete manual pages. | |
2086 | (for-each delete-file (find-files "doc/man/man3" "^_tmp.*")) | |
2087 | (mkdir-p man) | |
2088 | (copy-recursively "doc/man" man) | |
2089 | #t)))))) | |
2090 | (home-page "http://qwt.sourceforge.net") | |
2091 | (synopsis "Qt widgets for plots, scales, dials and other technical software | |
2092 | GUI components") | |
2093 | (description | |
2094 | "The Qwt library contains widgets and components which are primarily useful | |
2095 | for technical and scientific purposes. It includes a 2-D plotting widget, | |
2096 | different kinds of sliders, and much more.") | |
2097 | (license | |
2098 | (list | |
2099 | ;; The Qwt license is LGPL2.1 with some exceptions. | |
2100 | (license:non-copyleft "http://qwt.sourceforge.net/qwtlicense.html") | |
2101 | ;; textengines/mathml/qwt_mml_document.{cpp,h} is dual LGPL2.1/GPL3 (either). | |
2102 | license:lgpl2.1 license:gpl3)))) | |
47e1d280 TD |
2103 | |
2104 | (define-public qtwebkit | |
2105 | (package | |
2106 | (name "qtwebkit") | |
601cb1be | 2107 | (version "5.212.0-alpha2") |
47e1d280 TD |
2108 | (source |
2109 | (origin | |
2110 | (method url-fetch) | |
601cb1be AE |
2111 | (uri (string-append "https://github.com/annulen/webkit/releases/download/" |
2112 | name "-" version "/" name "-" version ".tar.xz")) | |
47e1d280 TD |
2113 | (sha256 |
2114 | (base32 | |
601cb1be AE |
2115 | "12lg7w00d8wsj672s1y5z5gm0xdcgs16nas0b5bgq4byavg03ygq")) |
2116 | (patches (search-patches "qtwebkit-pbutils-include.patch")))) | |
2117 | (build-system cmake-build-system) | |
47e1d280 TD |
2118 | (native-inputs |
2119 | `(("perl" ,perl) | |
2120 | ("python" ,python-2.7) | |
2121 | ("ruby" ,ruby) | |
2122 | ("bison" ,bison) | |
2123 | ("flex" ,flex) | |
2124 | ("gperf" ,gperf) | |
2125 | ("pkg-config" ,pkg-config))) | |
2126 | (inputs | |
2127 | `(("icu" ,icu4c) | |
601cb1be AE |
2128 | ("glib" ,glib) |
2129 | ("gst-plugins-base" ,gst-plugins-base) | |
47e1d280 TD |
2130 | ("libjpeg" ,libjpeg) |
2131 | ("libpng" ,libpng) | |
2132 | ("libwebp" ,libwebp) | |
2133 | ("sqlite" ,sqlite) | |
2134 | ("fontconfig" ,fontconfig) | |
c695fb76 | 2135 | ("libxrender" ,libxrender) |
47e1d280 TD |
2136 | ("qtbase" ,qtbase) |
2137 | ("qtdeclarative" ,qtdeclarative) | |
601cb1be | 2138 | ("qtlocation" ,qtlocation) |
47e1d280 | 2139 | ("qtmultimedia" ,qtmultimedia) |
601cb1be AE |
2140 | ("qtsensors" ,qtsensors) |
2141 | ("qtwebchannel" ,qtwebchannel) | |
47e1d280 TD |
2142 | ("libxml2" ,libxml2) |
2143 | ("libxslt" ,libxslt) | |
2144 | ("libx11" ,libx11) | |
2145 | ("libxcomposite" ,libxcomposite))) | |
2146 | (arguments | |
601cb1be AE |
2147 | `(#:tests? #f ; no apparent tests; it might be necessary to set |
2148 | ; ENABLE_API_TESTS, see CMakeLists.txt | |
2149 | #:configure-flags (list ;"-DENABLE_API_TESTS=TRUE" | |
2150 | "-DPORT=Qt" | |
2151 | "-DUSE_LIBHYPHEN=OFF" | |
2152 | "-DUSE_SYSTEM_MALLOC=ON"))) | |
47e1d280 TD |
2153 | (home-page "https://www.webkit.org") |
2154 | (synopsis "Web browser engine and classes to render and interact with web | |
2155 | content") | |
2156 | (description "QtWebKit provides a Web browser engine that makes it easy to | |
2157 | embed content from the World Wide Web into your Qt application. At the same | |
2158 | time Web content can be enhanced with native controls.") | |
47e1d280 | 2159 | (license license:lgpl2.1+))) |
f048f12b | 2160 | |
2161 | (define-public dotherside | |
2162 | (package | |
2163 | (name "dotherside") | |
8895a968 | 2164 | (version "0.6.3") |
f048f12b | 2165 | (source |
2166 | (origin | |
2167 | (method url-fetch) | |
2168 | (uri (string-append "https://github.com/filcuc/DOtherSide/" | |
2169 | "archive/v" version ".tar.gz")) | |
2170 | (file-name (string-append name "-" version ".tar.gz")) | |
2171 | (sha256 | |
2172 | (base32 | |
8895a968 | 2173 | "0azq7qlsrfdwbd6qsi7d3c1knn42qw0r47g43xf7clwbinapswpz")))) |
f048f12b | 2174 | (build-system cmake-build-system) |
2175 | (native-inputs | |
2176 | `(("qttools" ,qttools))) | |
2177 | (inputs | |
2178 | `(("qtbase" ,qtbase) | |
2179 | ("qtdeclarative" ,qtdeclarative))) | |
2180 | (home-page "https://github.com/frankosterfeld/qtkeychain") | |
2181 | (synopsis "C language library for creating bindings for the Qt QML language") | |
2182 | (description | |
2183 | "DOtherSide is a C language library for creating bindings for the | |
2184 | QT QML language. The following features are implementable from | |
2185 | a binding language: | |
2186 | @itemize | |
2187 | @item Creating custom QObject | |
2188 | @item Creating custom QAbstractListModels | |
2189 | @item Creating custom properties, signals and slots | |
2190 | @item Creating from QML QObject defined in the binded language | |
2191 | @item Creating from Singleton QML QObject defined in the binded language | |
2192 | @end itemize\n") | |
2193 | (license license:lgpl3))) ;version 3 only (+ exception) |