2013-10-04 19:10:29 +02:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2015-01-24 20:17:33 +01:00
|
|
|
|
;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr>
|
2015-01-03 07:12:01 +01:00
|
|
|
|
;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
|
2015-04-15 18:13:38 +02:00
|
|
|
|
;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
|
2016-05-18 17:06:47 +02:00
|
|
|
|
;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
|
2013-10-04 19:10:29 +02:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages qt)
|
2016-06-02 20:46:32 +02:00
|
|
|
|
#:use-module ((guix licenses) #:select (bsd-3 gpl2 gpl3 lgpl2.1 lgpl2.1+ lgpl3 x11-style))
|
2013-10-04 19:10:29 +02:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2013-12-14 23:16:46 +01:00
|
|
|
|
#:use-module (guix build utils)
|
2015-09-16 14:24:27 +02:00
|
|
|
|
#:use-module (guix build-system cmake)
|
2013-10-04 19:10:29 +02:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2015-01-24 20:17:33 +01:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix utils)
|
2013-10-12 14:48:52 +02:00
|
|
|
|
#:use-module (gnu packages)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
#:use-module (gnu packages bison)
|
|
|
|
|
#:use-module (gnu packages compression)
|
2015-06-16 17:27:10 +02:00
|
|
|
|
#:use-module (gnu packages cups)
|
|
|
|
|
#:use-module (gnu packages databases)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
#:use-module (gnu packages fontutils)
|
gnu: qt: Add more inputs.
* gnu/packages/qt.scm (qt): Add expat, pciutils, libxcomposite, libxcursor,
libxfixes, libxinerama, libxml2, libxrandr, libxslt, libxtst, mtdev, nss,
pcre, sqlite, eudev to 'inputs'.
Add bison, flex, gperf, ninja, python-2, ruby, which to 'native-inputs'.
2015-01-11 12:51:51 +01:00
|
|
|
|
#:use-module (gnu packages flex)
|
2016-06-08 19:21:16 +02:00
|
|
|
|
#:use-module (gnu packages freedesktop)
|
2014-11-21 23:46:01 +01:00
|
|
|
|
#:use-module (gnu packages gl)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
#:use-module (gnu packages glib)
|
gnu: qt: Add more inputs.
* gnu/packages/qt.scm (qt): Add expat, pciutils, libxcomposite, libxcursor,
libxfixes, libxinerama, libxml2, libxrandr, libxslt, libxtst, mtdev, nss,
pcre, sqlite, eudev to 'inputs'.
Add bison, flex, gperf, ninja, python-2, ruby, which to 'native-inputs'.
2015-01-11 12:51:51 +01:00
|
|
|
|
#:use-module (gnu packages gnuzilla)
|
|
|
|
|
#:use-module (gnu packages gperf)
|
2015-07-25 16:02:38 +02:00
|
|
|
|
#:use-module (gnu packages gtk)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
#:use-module (gnu packages icu4c)
|
gnu: Consolidate libjpeg, libpng, and libtiff into one module.
* gnu/packages/image.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add image.scm and remove libjpeg.scm,
libpng.scm, and libtiff.scm.
* gnu/packages/libjpeg.scm, gnu/packages/libpng.scm, gnu/packages/libtiff.scm:
Delete files.
* gnu/packages/emacs.scm gnu/packages/games.scm, gnu/packages/gd.scm,
gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm,
gnu/packages/gnustep.scm, gnu/packages/gnuzilla.scm,
gnu/packages/graphviz.scm, gnu/packages/gtk.scm,
gnu/packages/imagemagick.scm, gnu/packages/inkscape.scm,
gnu/packages/netpbm.scm, gnu/packages/pdf.scm, gnu/packages/plotutils.scm,
gnu/packages/qemu.scm, gnu/packages/qt.scm, gnu/packages/scheme.scm,
gnu/packages/sdl.scm, gnu/packages/slim.scm, gnu/packages/tcl.scm,
gnu/packages/texlive.scm, gnu/packages/video.scm, gnu/packages/xiph.scm,
gnu/packages/xorg.scm: Use (gnu packages image) module.
2014-06-25 14:39:02 +02:00
|
|
|
|
#:use-module (gnu packages image)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
#:use-module (gnu packages linux)
|
gnu: Consolidate databases in (gnu packages databases).
* gnu/packages/databases.scm: New file, with the contents of the
following deleted files.
* gnu/packages/mysql.scm, gnu/packages/postgresql.scm,
gnu/packages/recutils.scm, gnu/packages/sqlite.scm,
gnu/packages/bdb.scm: Remove.
* gnu-system.am (GNU_SYSTEM_MODULES): Adjust accordingly.
* gnu/packages/apl.scm, gnu/packages/dc.scm, gnu/packages/games.scm,
gnu/packages/gnunet.scm, gnu/packages/linux.scm, gnu/packages/mail.scm,
gnu/packages/mpd.scm, gnu/packages/nvi.scm, gnu/packages/openldap.scm,
gnu/packages/package-management.scm, gnu/packages/python.scm,
gnu/packages/qt.scm, gnu/packages/rdf.scm,
gnu/packages/version-control.scm: Adjust to new module name.
2014-09-08 17:48:03 +02:00
|
|
|
|
#:use-module (gnu packages databases)
|
gnu: qt: Add more inputs.
* gnu/packages/qt.scm (qt): Add expat, pciutils, libxcomposite, libxcursor,
libxfixes, libxinerama, libxml2, libxrandr, libxslt, libxtst, mtdev, nss,
pcre, sqlite, eudev to 'inputs'.
Add bison, flex, gperf, ninja, python-2, ruby, which to 'native-inputs'.
2015-01-11 12:51:51 +01:00
|
|
|
|
#:use-module (gnu packages pciutils)
|
|
|
|
|
#:use-module (gnu packages pcre)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2013-10-10 14:24:51 +02:00
|
|
|
|
#:use-module (gnu packages pulseaudio)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
#:use-module (gnu packages python)
|
2014-11-21 23:46:01 +01:00
|
|
|
|
#:use-module (gnu packages ruby)
|
gnu: Move content of openssl module into tls module.
* gnu/packages/openssl.scm (openssl, perl-net-ssleay): Move to...
* gnu/packages/tls.scm: ...here.
* gnu/packages/openssl.scm: Delete file.
* gnu-system.am (GNU_SYSTEM_MODULES): Unregister deleted file.
* gnu/packages/{admin.scm, bittorrent.scm, certs.scm, ci.scm,
cyrus-sasl.scm, databases.scm, dns.scm, ebook.scm, enlightenment.scm,
gnunet.scm, libreoffice.scm, links.scm, mail.scm, messaging.scm,
networking.scm, ntp.scm, openldap.scm, package-management.scm, pdf.scm,
python.scm, qt.scm, rdesktop.scm, rdf.scm, ruby.scm, ssh.scm,
synergy.scm, tor.scm, version-control.scm, video.scm, vpn.scm,
w3m.scm, web.scm, weechat.scm, xiph.scm}: Adapt module import.
2015-07-05 18:27:24 +02:00
|
|
|
|
#:use-module (gnu packages tls)
|
gnu: qt: Add more inputs.
* gnu/packages/qt.scm (qt): Add expat, pciutils, libxcomposite, libxcursor,
libxfixes, libxinerama, libxml2, libxrandr, libxslt, libxtst, mtdev, nss,
pcre, sqlite, eudev to 'inputs'.
Add bison, flex, gperf, ninja, python-2, ruby, which to 'native-inputs'.
2015-01-11 12:51:51 +01:00
|
|
|
|
#:use-module (gnu packages xdisorg)
|
|
|
|
|
#:use-module (gnu packages xorg)
|
|
|
|
|
#:use-module (gnu packages xml))
|
2013-10-04 19:10:29 +02:00
|
|
|
|
|
2013-10-08 20:49:58 +02:00
|
|
|
|
(define-public qt
|
|
|
|
|
(package
|
|
|
|
|
(name "qt")
|
2015-10-27 11:06:37 +01:00
|
|
|
|
(version "5.5.1")
|
2013-10-08 20:49:58 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2015-07-25 16:02:38 +02:00
|
|
|
|
(uri
|
|
|
|
|
(string-append
|
|
|
|
|
"http://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version)
|
|
|
|
|
"/" version
|
|
|
|
|
"/single/qt-everywhere-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
2013-10-08 20:49:58 +02:00
|
|
|
|
(sha256
|
2015-07-25 16:02:38 +02:00
|
|
|
|
(base32
|
2015-10-27 11:06:37 +01:00
|
|
|
|
"0615cn4n3n78v48lnmapqz2jizm2pzrjwvsjlnsf4awrsiiqw0kg"))
|
2015-10-04 12:56:45 +02:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
2015-10-04 19:08:13 +02:00
|
|
|
|
'(begin
|
|
|
|
|
;; Remove qtwebengine, which relies on a bundled copy of
|
|
|
|
|
;; chromium. Not only does it fail compilation in qt 5.5:
|
|
|
|
|
;; 3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc:362:10:
|
|
|
|
|
;; error: cannot convert ‘bool’ to ‘boolean’ in return
|
|
|
|
|
;; it might also pose security problems.
|
|
|
|
|
;; Alternatively, we could use the "-skip qtwebengine"
|
|
|
|
|
;; configuration option.
|
|
|
|
|
(delete-file-recursively "qtwebengine")
|
|
|
|
|
;; Remove one of the two bundled harfbuzz copies in addition
|
|
|
|
|
;; to passing "-system-harfbuzz".
|
2015-10-04 20:00:28 +02:00
|
|
|
|
(delete-file-recursively "qtbase/src/3rdparty/harfbuzz-ng")
|
|
|
|
|
;; Remove the bundled sqlite copy in addition to
|
|
|
|
|
;; passing "-system-sqlite".
|
|
|
|
|
(delete-file-recursively "qtbase/src/3rdparty/sqlite")))))
|
2013-10-08 20:49:58 +02:00
|
|
|
|
(build-system gnu-build-system)
|
2013-10-10 20:54:25 +02:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("mesa" ,mesa)))
|
2013-10-08 20:49:58 +02:00
|
|
|
|
(inputs
|
|
|
|
|
`(("alsa-lib" ,alsa-lib)
|
|
|
|
|
("dbus" ,dbus)
|
2015-06-16 17:27:10 +02:00
|
|
|
|
("cups" ,cups)
|
gnu: qt: Add more inputs.
* gnu/packages/qt.scm (qt): Add expat, pciutils, libxcomposite, libxcursor,
libxfixes, libxinerama, libxml2, libxrandr, libxslt, libxtst, mtdev, nss,
pcre, sqlite, eudev to 'inputs'.
Add bison, flex, gperf, ninja, python-2, ruby, which to 'native-inputs'.
2015-01-11 12:51:51 +01:00
|
|
|
|
("expat" ,expat)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
("fontconfig" ,fontconfig)
|
|
|
|
|
("freetype" ,freetype)
|
|
|
|
|
("glib" ,glib)
|
2015-07-25 16:02:38 +02:00
|
|
|
|
("harfbuzz" ,harfbuzz)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
("icu4c" ,icu4c)
|
2013-12-14 23:16:46 +01:00
|
|
|
|
("libjpeg" ,libjpeg)
|
2015-06-16 17:27:10 +02:00
|
|
|
|
("libmng" ,libmng)
|
gnu: qt: Add more inputs.
* gnu/packages/qt.scm (qt): Add expat, pciutils, libxcomposite, libxcursor,
libxfixes, libxinerama, libxml2, libxrandr, libxslt, libxtst, mtdev, nss,
pcre, sqlite, eudev to 'inputs'.
Add bison, flex, gperf, ninja, python-2, ruby, which to 'native-inputs'.
2015-01-11 12:51:51 +01:00
|
|
|
|
("libpci" ,pciutils)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
("libpng" ,libpng)
|
|
|
|
|
("libx11" ,libx11)
|
gnu: qt: Add more inputs.
* gnu/packages/qt.scm (qt): Add expat, pciutils, libxcomposite, libxcursor,
libxfixes, libxinerama, libxml2, libxrandr, libxslt, libxtst, mtdev, nss,
pcre, sqlite, eudev to 'inputs'.
Add bison, flex, gperf, ninja, python-2, ruby, which to 'native-inputs'.
2015-01-11 12:51:51 +01:00
|
|
|
|
("libxcomposite" ,libxcomposite)
|
|
|
|
|
("libxcursor" ,libxcursor)
|
|
|
|
|
("libxfixes" ,libxfixes)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
("libxi" ,libxi)
|
gnu: qt: Add more inputs.
* gnu/packages/qt.scm (qt): Add expat, pciutils, libxcomposite, libxcursor,
libxfixes, libxinerama, libxml2, libxrandr, libxslt, libxtst, mtdev, nss,
pcre, sqlite, eudev to 'inputs'.
Add bison, flex, gperf, ninja, python-2, ruby, which to 'native-inputs'.
2015-01-11 12:51:51 +01:00
|
|
|
|
("libxinerama" ,libxinerama)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
("libxkbcommon" ,libxkbcommon)
|
gnu: qt: Add more inputs.
* gnu/packages/qt.scm (qt): Add expat, pciutils, libxcomposite, libxcursor,
libxfixes, libxinerama, libxml2, libxrandr, libxslt, libxtst, mtdev, nss,
pcre, sqlite, eudev to 'inputs'.
Add bison, flex, gperf, ninja, python-2, ruby, which to 'native-inputs'.
2015-01-11 12:51:51 +01:00
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
|
("libxrandr" ,libxrandr)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
("libxrender" ,libxrender)
|
gnu: qt: Add more inputs.
* gnu/packages/qt.scm (qt): Add expat, pciutils, libxcomposite, libxcursor,
libxfixes, libxinerama, libxml2, libxrandr, libxslt, libxtst, mtdev, nss,
pcre, sqlite, eudev to 'inputs'.
Add bison, flex, gperf, ninja, python-2, ruby, which to 'native-inputs'.
2015-01-11 12:51:51 +01:00
|
|
|
|
("libxslt" ,libxslt)
|
|
|
|
|
("libxtst" ,libxtst)
|
|
|
|
|
("mtdev" ,mtdev)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
("mysql" ,mysql)
|
gnu: qt: Add more inputs.
* gnu/packages/qt.scm (qt): Add expat, pciutils, libxcomposite, libxcursor,
libxfixes, libxinerama, libxml2, libxrandr, libxslt, libxtst, mtdev, nss,
pcre, sqlite, eudev to 'inputs'.
Add bison, flex, gperf, ninja, python-2, ruby, which to 'native-inputs'.
2015-01-11 12:51:51 +01:00
|
|
|
|
("nss" ,nss)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
("openssl" ,openssl)
|
2015-06-16 17:27:10 +02:00
|
|
|
|
("postgresql" ,postgresql)
|
2013-10-10 14:24:51 +02:00
|
|
|
|
("pulseaudio" ,pulseaudio)
|
gnu: qt: Add more inputs.
* gnu/packages/qt.scm (qt): Add expat, pciutils, libxcomposite, libxcursor,
libxfixes, libxinerama, libxml2, libxrandr, libxslt, libxtst, mtdev, nss,
pcre, sqlite, eudev to 'inputs'.
Add bison, flex, gperf, ninja, python-2, ruby, which to 'native-inputs'.
2015-01-11 12:51:51 +01:00
|
|
|
|
("pcre" ,pcre)
|
|
|
|
|
("sqlite" ,sqlite)
|
|
|
|
|
("udev" ,eudev)
|
2015-06-16 17:27:10 +02:00
|
|
|
|
("unixodbc" ,unixodbc)
|
2013-10-08 20:49:58 +02:00
|
|
|
|
("xcb-util" ,xcb-util)
|
|
|
|
|
("xcb-util-image" ,xcb-util-image)
|
|
|
|
|
("xcb-util-keysyms" ,xcb-util-keysyms)
|
|
|
|
|
("xcb-util-renderutil" ,xcb-util-renderutil)
|
|
|
|
|
("xcb-util-wm" ,xcb-util-wm)
|
|
|
|
|
("zlib" ,zlib)))
|
gnu: Move numerous "inputs" which should be "native-inputs".
* gnu/packages/avahi.scm, gnu/packages/cdrom.scm, gnu/packages/cryptsetup.scm,
gnu/packages/curl.scm, gnu/packages/emacs.scm, gnu/packages/fontutils.scm,
gnu/packages/gdb.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/glib.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm, gnu/packages/graphviz.scm,
gnu/packages/groff.scm, gnu/packages/gstreamer.scm, gnu/packages/gtk.scm,
gnu/packages/gv.scm, gnu/packages/imagemagick.scm, gnu/packages/irssi.scm,
gnu/packages/kde.scm, gnu/packages/libcanberra.scm, gnu/packages/libtiff.scm,
gnu/packages/linux.scm, gnu/packages/lvm.scm, gnu/packages/mp3.scm,
gnu/packages/netpbm.scm, gnu/packages/parted.scm, gnu/packages/pdf.scm,
gnu/packages/pulseaudio.scm, gnu/packages/qemu.scm, gnu/packages/qt.scm,
gnu/packages/ratpoison.scm, gnu/packages/rdf.scm, gnu/packages/slim.scm,
gnu/packages/texlive.scm, gnu/packages/version-control.scm,
gnu/packages/video.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/xml.scm, gnu/packages/xnee.scm, gnu/packages/xorg.scm,
gnu/packages/zip.scm: Move some build-time dependencies from `inputs' to
`native-inputs'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2013-12-15 12:01:56 +01:00
|
|
|
|
(native-inputs
|
gnu: qt: Add more inputs.
* gnu/packages/qt.scm (qt): Add expat, pciutils, libxcomposite, libxcursor,
libxfixes, libxinerama, libxml2, libxrandr, libxslt, libxtst, mtdev, nss,
pcre, sqlite, eudev to 'inputs'.
Add bison, flex, gperf, ninja, python-2, ruby, which to 'native-inputs'.
2015-01-11 12:51:51 +01:00
|
|
|
|
`(("bison" ,bison)
|
|
|
|
|
("flex" ,flex)
|
|
|
|
|
("gperf" ,gperf)
|
|
|
|
|
("perl" ,perl)
|
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
|
("python" ,python-2)
|
|
|
|
|
("ruby" ,ruby)
|
gnu: Move 'which' to (gnu packages base).
* gnu/packages/which.scm: Remove.
* gnu-system.am (GNU_SYSTEM_MODULES): Remove it.
* gnu/packages/base.scm (which): New variable.
* gnu/packages/aspell.scm, gnu/packages/audio.scm,
gnu/packages/autogen.scm, gnu/packages/cdrom.scm,
gnu/packages/compression.scm, gnu/packages/datamash.scm,
gnu/packages/games.scm, gnu/packages/glib.scm,
gnu/packages/gnu-pw-mgr.scm, gnu/packages/gnutls.scm,
gnu/packages/gps.scm, gnu/packages/guile.scm,
gnu/packages/java.scm, gnu/packages/libevent.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/node.scm, gnu/packages/ntp.scm,
gnu/packages/orpheus.scm, gnu/packages/pciutils.scm,
gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/sawfish.scm,
gnu/packages/scheme.scm, gnu/packages/ssh.scm,
gnu/packages/statistics.scm, gnu/packages/texlive.scm,
gnu/packages/wdiff.scm: Adjust accordingly.
2015-03-04 17:21:21 +01:00
|
|
|
|
("which" ,(@ (gnu packages base) which))))
|
2013-10-08 20:49:58 +02:00
|
|
|
|
(arguments
|
2016-01-25 23:33:54 +01:00
|
|
|
|
`(;; FIXME: Disabling parallel building is a quick hack to avoid the
|
|
|
|
|
;; failure described in
|
|
|
|
|
;; https://lists.gnu.org/archive/html/guix-devel/2016-01/msg00837.html
|
|
|
|
|
;; A more structural fix is needed.
|
|
|
|
|
#:parallel-build? #f
|
|
|
|
|
#:phases
|
2016-07-29 14:34:43 +02:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(substitute* '("configure" "qtbase/configure")
|
|
|
|
|
(("/bin/pwd") (which "pwd")))
|
|
|
|
|
(substitute* "qtbase/src/corelib/global/global.pri"
|
|
|
|
|
(("/bin/ls") (which "ls")))
|
|
|
|
|
;; do not pass "--enable-fast-install", which makes the
|
|
|
|
|
;; configure process fail
|
|
|
|
|
(zero? (system*
|
|
|
|
|
"./configure"
|
|
|
|
|
"-verbose"
|
|
|
|
|
"-prefix" out
|
|
|
|
|
"-opensource"
|
|
|
|
|
"-confirm-license"
|
|
|
|
|
;; Most "-system-..." are automatic, but some use
|
|
|
|
|
;; the bundled copy by default.
|
|
|
|
|
"-system-sqlite"
|
|
|
|
|
"-system-harfbuzz"
|
|
|
|
|
;; explicitly link with openssl instead of dlopening it
|
|
|
|
|
"-openssl-linked"
|
|
|
|
|
;; explicitly link with dbus instead of dlopening it
|
|
|
|
|
"-dbus-linked"
|
|
|
|
|
;; drop special machine instructions not supported
|
|
|
|
|
;; on all instances of the target
|
|
|
|
|
,@(if (string-prefix? "x86_64"
|
|
|
|
|
(or (%current-target-system)
|
|
|
|
|
(%current-system)))
|
|
|
|
|
'()
|
|
|
|
|
'("-no-sse2"))
|
|
|
|
|
"-no-sse3"
|
|
|
|
|
"-no-ssse3"
|
|
|
|
|
"-no-sse4.1"
|
|
|
|
|
"-no-sse4.2"
|
|
|
|
|
"-no-avx"
|
|
|
|
|
"-no-avx2"
|
|
|
|
|
"-no-mips_dsp"
|
|
|
|
|
"-no-mips_dspr2"))))))))
|
2013-10-08 20:49:58 +02:00
|
|
|
|
(home-page "http://qt-project.org/")
|
|
|
|
|
(synopsis "Cross-platform GUI library")
|
|
|
|
|
(description "Qt is a cross-platform application and UI framework for
|
|
|
|
|
developers using C++ or QML, a CSS & JavaScript like language.")
|
2014-10-28 01:14:34 +01:00
|
|
|
|
(license lgpl2.1)
|
|
|
|
|
|
|
|
|
|
;; Qt 4: 'QBasicAtomicPointer' leads to build failures on MIPS;
|
|
|
|
|
;; see <http://hydra.gnu.org/build/112828>.
|
|
|
|
|
;; Qt 5: assembler error; see <http://hydra.gnu.org/build/112526>.
|
|
|
|
|
(supported-systems (delete "mips64el-linux" %supported-systems))))
|
2013-10-12 14:48:52 +02:00
|
|
|
|
|
|
|
|
|
(define-public qt-4
|
|
|
|
|
(package (inherit qt)
|
2015-06-14 08:40:07 +02:00
|
|
|
|
(version "4.8.7")
|
2013-10-12 14:48:52 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://download.qt-project.org/official_releases/qt/"
|
|
|
|
|
(string-copy version 0 (string-rindex version #\.))
|
|
|
|
|
"/" version
|
2013-10-23 23:32:24 +02:00
|
|
|
|
"/qt-everywhere-opensource-src-"
|
2013-10-12 14:48:52 +02:00
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-06-14 08:40:07 +02:00
|
|
|
|
"183fca7n7439nlhxyg1z7aky0izgbyll3iwakw4gwivy16aj5272"))
|
2016-04-08 14:18:13 +02:00
|
|
|
|
(patches (search-patches "qt4-ldflags.patch"))
|
2015-10-04 00:51:21 +02:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
;; Remove webkit module, which is not built.
|
|
|
|
|
'(delete-file-recursively "src/3rdparty/webkit"))))
|
2015-07-25 16:02:38 +02:00
|
|
|
|
(inputs `(,@(alist-delete "harfbuzz"
|
|
|
|
|
(alist-delete "libjpeg" (package-inputs qt)))
|
2014-05-14 14:30:28 +02:00
|
|
|
|
("libjepg" ,libjpeg-8)
|
|
|
|
|
("libsm" ,libsm)))
|
2015-04-15 18:13:38 +02:00
|
|
|
|
|
|
|
|
|
;; Note: there are 37 MiB of examples and a '-exampledir' configure flags,
|
|
|
|
|
;; but we can't make them a separate output because "out" and "examples"
|
|
|
|
|
;; would refer to each other.
|
|
|
|
|
(outputs '("out" ;112MiB core + 37MiB examples
|
|
|
|
|
"doc")) ;280MiB of HTML + code
|
2013-10-12 14:48:52 +02:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
2015-06-27 10:17:27 +02:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace
|
2013-10-12 14:48:52 +02:00
|
|
|
|
'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2015-04-15 18:13:38 +02:00
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
|
(doc (assoc-ref outputs "doc")))
|
2013-10-12 14:48:52 +02:00
|
|
|
|
(substitute* '("configure")
|
2015-04-15 13:30:25 +02:00
|
|
|
|
(("/bin/pwd") (which "pwd")))
|
|
|
|
|
|
2013-11-11 19:16:03 +01:00
|
|
|
|
(zero? (system*
|
|
|
|
|
"./configure"
|
|
|
|
|
"-verbose"
|
|
|
|
|
"-prefix" out
|
2015-06-27 21:37:50 +02:00
|
|
|
|
;; Note: Don't pass '-docdir' since 'qmake' and
|
|
|
|
|
;; libQtCore would record its value, thereby defeating
|
|
|
|
|
;; the whole point of having a separate output.
|
2015-06-27 19:30:05 +02:00
|
|
|
|
"-datadir" (string-append out "/share/qt-" ,version
|
|
|
|
|
"/data")
|
|
|
|
|
"-importdir" (string-append out "/lib/qt-4"
|
|
|
|
|
"/imports")
|
|
|
|
|
"-plugindir" (string-append out "/lib/qt-4"
|
|
|
|
|
"/plugins")
|
|
|
|
|
"-translationdir" (string-append out "/share/qt-" ,version
|
|
|
|
|
"/translations")
|
2015-04-15 18:13:38 +02:00
|
|
|
|
"-demosdir" (string-append out "/share/qt-" ,version
|
|
|
|
|
"/demos")
|
|
|
|
|
"-examplesdir" (string-append out "/share/qt-" ,version
|
|
|
|
|
"/examples")
|
2013-11-11 19:16:03 +01:00
|
|
|
|
"-opensource"
|
|
|
|
|
"-confirm-license"
|
2014-11-04 15:41:20 +01:00
|
|
|
|
;; explicitly link with dbus instead of dlopening it
|
|
|
|
|
"-dbus-linked"
|
2015-10-04 00:51:21 +02:00
|
|
|
|
;; Skip the webkit module; it fails to build on armhf
|
|
|
|
|
;; and, apart from that, may pose security risks.
|
|
|
|
|
"-no-webkit"
|
2013-11-11 19:16:03 +01:00
|
|
|
|
;; drop special machine instructions not supported
|
|
|
|
|
;; on all instances of the target
|
|
|
|
|
,@(if (string-prefix? "x86_64"
|
|
|
|
|
(or (%current-target-system)
|
|
|
|
|
(%current-system)))
|
|
|
|
|
'()
|
|
|
|
|
'("-no-mmx"
|
2013-10-12 14:48:52 +02:00
|
|
|
|
"-no-3dnow"
|
|
|
|
|
"-no-sse"
|
2013-11-11 19:16:03 +01:00
|
|
|
|
"-no-sse2"))
|
|
|
|
|
"-no-sse3"
|
|
|
|
|
"-no-ssse3"
|
|
|
|
|
"-no-sse4.1"
|
|
|
|
|
"-no-sse4.2"
|
2015-07-10 20:52:45 +02:00
|
|
|
|
"-no-avx")))))
|
2015-06-27 21:37:50 +02:00
|
|
|
|
(add-after
|
|
|
|
|
'install 'move-doc
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
;; Because of qt4-documentation-path.patch, documentation ends up
|
|
|
|
|
;; being installed in OUT. Move it to the right place.
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(doc (assoc-ref outputs "doc"))
|
|
|
|
|
(olddoc (string-append out "/doc"))
|
|
|
|
|
(docdir (string-append doc "/share/doc/qt-" ,version)))
|
|
|
|
|
(mkdir-p (dirname docdir))
|
|
|
|
|
|
|
|
|
|
;; Note: We can't use 'rename-file' here because OUT and DOC are
|
|
|
|
|
;; different "devices" due to bind-mounts.
|
|
|
|
|
(copy-recursively olddoc docdir)
|
|
|
|
|
(delete-file-recursively olddoc)
|
|
|
|
|
#t))))))))
|
2015-01-24 20:17:33 +01:00
|
|
|
|
|
2016-06-02 20:46:32 +02:00
|
|
|
|
(define-public qtbase
|
|
|
|
|
(package
|
|
|
|
|
(name "qtbase")
|
2016-06-26 16:47:23 +02:00
|
|
|
|
(version "5.6.1-1")
|
2016-06-02 20:46:32 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
2016-06-26 16:47:23 +02:00
|
|
|
|
(base32
|
|
|
|
|
"0fbwprlhqmdyhh2wb9122fcpq7pbil530iak482b9sy5gqs7i5ij"))
|
2016-06-02 20:46:32 +02:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
;; Remove one of the two bundled harfbuzz copies in addition
|
|
|
|
|
;; to passing "-system-harfbuzz".
|
|
|
|
|
(delete-file-recursively "src/3rdparty/harfbuzz-ng")
|
|
|
|
|
;; Remove the bundled sqlite copy in addition to
|
|
|
|
|
;; passing "-system-sqlite".
|
|
|
|
|
(delete-file-recursively "src/3rdparty/sqlite")))))
|
|
|
|
|
(build-system gnu-build-system)
|
2016-06-28 08:17:54 +02:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("mesa" ,mesa)))
|
2016-06-02 20:46:32 +02:00
|
|
|
|
(inputs
|
|
|
|
|
`(("alsa-lib" ,alsa-lib)
|
|
|
|
|
("cups" ,cups)
|
|
|
|
|
("dbus" ,dbus)
|
2016-06-26 18:54:59 +02:00
|
|
|
|
("eudev" ,eudev)
|
2016-06-02 20:46:32 +02:00
|
|
|
|
("expat" ,expat)
|
|
|
|
|
("fontconfig" ,fontconfig)
|
|
|
|
|
("freetype" ,freetype)
|
|
|
|
|
("glib" ,glib)
|
|
|
|
|
("harfbuzz" ,harfbuzz)
|
|
|
|
|
("icu4c" ,icu4c)
|
2016-06-26 18:54:59 +02:00
|
|
|
|
("libinput" ,libinput)
|
2016-06-02 20:46:32 +02:00
|
|
|
|
("libjpeg" ,libjpeg)
|
|
|
|
|
("libmng" ,libmng)
|
|
|
|
|
("libpng" ,libpng)
|
|
|
|
|
("libx11" ,libx11)
|
|
|
|
|
("libxcomposite" ,libxcomposite)
|
|
|
|
|
("libxcursor" ,libxcursor)
|
|
|
|
|
("libxfixes" ,libxfixes)
|
|
|
|
|
("libxi" ,libxi)
|
|
|
|
|
("libxinerama" ,libxinerama)
|
|
|
|
|
("libxkbcommon" ,libxkbcommon)
|
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
|
("libxrandr" ,libxrandr)
|
|
|
|
|
("libxrender" ,libxrender)
|
|
|
|
|
("libxslt" ,libxslt)
|
|
|
|
|
("libxtst" ,libxtst)
|
|
|
|
|
("mtdev" ,mtdev)
|
|
|
|
|
("mysql" ,mysql)
|
|
|
|
|
("nss" ,nss)
|
|
|
|
|
("openssl" ,openssl)
|
|
|
|
|
("pcre" ,pcre)
|
|
|
|
|
("postgresql" ,postgresql)
|
|
|
|
|
("pulseaudio" ,pulseaudio)
|
|
|
|
|
("sqlite" ,sqlite)
|
|
|
|
|
("unixodbc" ,unixodbc)
|
|
|
|
|
("xcb-util" ,xcb-util)
|
|
|
|
|
("xcb-util-image" ,xcb-util-image)
|
|
|
|
|
("xcb-util-keysyms" ,xcb-util-keysyms)
|
|
|
|
|
("xcb-util-renderutil" ,xcb-util-renderutil)
|
|
|
|
|
("xcb-util-wm" ,xcb-util-wm)
|
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("bison" ,bison)
|
|
|
|
|
("flex" ,flex)
|
|
|
|
|
("gperf" ,gperf)
|
|
|
|
|
("perl" ,perl)
|
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
|
("python" ,python-2)
|
|
|
|
|
("ruby" ,ruby)
|
|
|
|
|
("which" ,(@ (gnu packages base) which))))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'configure 'patch-bin-sh
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* '("config.status"
|
|
|
|
|
"configure"
|
|
|
|
|
"mkspecs/features/qt_functions.prf"
|
|
|
|
|
"qmake/library/qmakebuiltins.cpp")
|
|
|
|
|
(("/bin/sh") (which "sh")))
|
|
|
|
|
#t))
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(substitute* "configure"
|
|
|
|
|
(("/bin/pwd") (which "pwd")))
|
|
|
|
|
(substitute* "src/corelib/global/global.pri"
|
|
|
|
|
(("/bin/ls") (which "ls")))
|
2016-08-01 23:54:43 +02:00
|
|
|
|
;; The configuration files for other Qt5 packages are searched
|
|
|
|
|
;; through a call to "find_package" in Qt5Config.cmake, which
|
|
|
|
|
;; disables the use of CMAKE_PREFIX_PATH via the parameter
|
|
|
|
|
;; "NO_DEFAULT_PATH". Re-enable it so that the different
|
|
|
|
|
;; components can be installed in different places.
|
|
|
|
|
(substitute* (find-files "." ".*\\.cmake")
|
|
|
|
|
(("NO_DEFAULT_PATH") ""))
|
2016-06-02 20:46:32 +02:00
|
|
|
|
;; do not pass "--enable-fast-install", which makes the
|
|
|
|
|
;; configure process fail
|
|
|
|
|
(zero? (system*
|
|
|
|
|
"./configure"
|
|
|
|
|
"-verbose"
|
|
|
|
|
"-prefix" out
|
|
|
|
|
"-opensource"
|
|
|
|
|
"-confirm-license"
|
|
|
|
|
;; Do not build examples; if desired, these could go
|
|
|
|
|
;; into a separate output, but for the time being, we
|
|
|
|
|
;; prefer to save the space and build time.
|
|
|
|
|
"-nomake" "examples"
|
|
|
|
|
;; Most "-system-..." are automatic, but some use
|
|
|
|
|
;; the bundled copy by default.
|
|
|
|
|
"-system-sqlite"
|
|
|
|
|
"-system-harfbuzz"
|
|
|
|
|
;; explicitly link with openssl instead of dlopening it
|
|
|
|
|
"-openssl-linked"
|
|
|
|
|
;; explicitly link with dbus instead of dlopening it
|
|
|
|
|
"-dbus-linked"
|
|
|
|
|
;; drop special machine instructions not supported
|
|
|
|
|
;; on all instances of the target
|
|
|
|
|
,@(if (string-prefix? "x86_64"
|
|
|
|
|
(or (%current-target-system)
|
|
|
|
|
(%current-system)))
|
|
|
|
|
'()
|
|
|
|
|
'("-no-sse2"))
|
|
|
|
|
"-no-sse3"
|
|
|
|
|
"-no-ssse3"
|
|
|
|
|
"-no-sse4.1"
|
|
|
|
|
"-no-sse4.2"
|
|
|
|
|
"-no-avx"
|
|
|
|
|
"-no-avx2"
|
|
|
|
|
"-no-mips_dsp"
|
|
|
|
|
"-no-mips_dspr2"))))))))
|
|
|
|
|
(home-page "https://www.qt.io/")
|
|
|
|
|
(synopsis "Cross-platform GUI library")
|
|
|
|
|
(description "Qt is a cross-platform application and UI framework for
|
|
|
|
|
developers using C++ or QML, a CSS & JavaScript like language.")
|
|
|
|
|
(license (list lgpl2.1 lgpl3))))
|
|
|
|
|
|
2016-05-20 12:14:50 +02:00
|
|
|
|
(define-public qtsvg
|
|
|
|
|
(package (inherit qtbase)
|
|
|
|
|
(name "qtsvg")
|
2016-06-26 16:48:15 +02:00
|
|
|
|
(version "5.6.1-1")
|
2016-05-20 12:14:50 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-26 16:48:15 +02:00
|
|
|
|
"1w0jvhgaiddafcms2nv8wl1klg07lncmjwm1zhdw3l6rxi9071sw"))))
|
2016-06-28 08:17:54 +02:00
|
|
|
|
(propagated-inputs `())
|
2016-05-20 12:14:50 +02:00
|
|
|
|
(native-inputs `(("perl" ,perl)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("mesa" ,mesa)
|
|
|
|
|
("qtbase" ,qtbase)
|
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(zero? (system* "qmake" (string-append "PREFIX=" out))))))
|
|
|
|
|
(add-before 'install 'fix-Makefiles
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
|
(qtbase (assoc-ref inputs "qtbase")))
|
|
|
|
|
(substitute* (find-files "." "Makefile")
|
|
|
|
|
(((string-append "INSTALL_ROOT)" qtbase))
|
|
|
|
|
(string-append "INSTALL_ROOT)" out)))))))))))
|
|
|
|
|
|
2016-06-03 17:39:18 +02:00
|
|
|
|
(define-public qtimageformats
|
|
|
|
|
(package (inherit qtsvg)
|
|
|
|
|
(name "qtimageformats")
|
2016-06-26 16:49:05 +02:00
|
|
|
|
(version "5.6.1-1")
|
2016-06-03 17:39:18 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-26 16:49:05 +02:00
|
|
|
|
"1p98acvsm3azka2by1ph4gdb31qbnndrr5k5wns4xk2d760y8ifc"))))
|
2016-06-03 17:39:18 +02:00
|
|
|
|
(native-inputs `())
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libmng" ,libmng)
|
|
|
|
|
("libtiff" ,libtiff)
|
|
|
|
|
("libwebp" ,libwebp)
|
|
|
|
|
("mesa" ,mesa)
|
|
|
|
|
("qtbase" ,qtbase)
|
|
|
|
|
("zlib" ,zlib)))))
|
|
|
|
|
|
2016-06-05 00:06:22 +02:00
|
|
|
|
(define-public qtx11extras
|
|
|
|
|
(package (inherit qtsvg)
|
|
|
|
|
(name "qtx11extras")
|
2016-06-26 16:49:59 +02:00
|
|
|
|
(version "5.6.1-1")
|
2016-06-05 00:06:22 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-26 16:49:59 +02:00
|
|
|
|
"0yj5yg2dqkrwbgbicmk2rpqsagmi8dsffkrprpsj0fmkx4awhv5y"))))
|
2016-06-05 00:06:22 +02:00
|
|
|
|
(native-inputs `(("perl" ,perl)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("mesa" ,mesa)
|
|
|
|
|
("qtbase" ,qtbase)))))
|
|
|
|
|
|
2016-06-05 05:55:24 +02:00
|
|
|
|
(define-public qtxmlpatterns
|
|
|
|
|
(package (inherit qtsvg)
|
|
|
|
|
(name "qtxmlpatterns")
|
2016-06-26 16:50:49 +02:00
|
|
|
|
(version "5.6.1-1")
|
2016-06-05 05:55:24 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-26 16:50:49 +02:00
|
|
|
|
"1966rrk7f6c55k57j33rffdjs77kk4mawrnnl8yv1ckcirxc3np1"))))
|
2016-06-05 05:55:24 +02:00
|
|
|
|
(native-inputs `(("perl" ,perl)))
|
|
|
|
|
(inputs `(("qtbase" ,qtbase)))))
|
|
|
|
|
|
2016-06-06 15:30:22 +02:00
|
|
|
|
(define-public qtdeclarative
|
|
|
|
|
(package (inherit qtsvg)
|
|
|
|
|
(name "qtdeclarative")
|
2016-06-26 16:51:52 +02:00
|
|
|
|
(version "5.6.1-1")
|
2016-06-06 15:30:22 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-26 16:51:52 +02:00
|
|
|
|
"094gx5mzqzcga97y7ihf052b6i5iv512lh7m0702m5q94nsn1pqw"))))
|
2016-06-06 15:30:22 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("perl" ,perl)
|
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
|
("python" ,python-2)
|
|
|
|
|
("qtsvg" ,qtsvg)
|
|
|
|
|
("qtxmlpatterns" ,qtxmlpatterns)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("mesa" ,mesa)
|
|
|
|
|
("qtbase" ,qtbase)))))
|
|
|
|
|
|
2016-06-06 18:43:59 +02:00
|
|
|
|
(define-public qtconnectivity
|
|
|
|
|
(package (inherit qtsvg)
|
|
|
|
|
(name "qtconnectivity")
|
2016-06-26 16:53:13 +02:00
|
|
|
|
(version "5.6.1-1")
|
2016-06-06 18:43:59 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-26 16:53:13 +02:00
|
|
|
|
"0sr6sxp0q45pacs25knr28139xdrphcjgrwlksdhdpsryfw19mzi"))))
|
2016-06-06 18:43:59 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("perl" ,perl)
|
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
|
("qtdeclarative" ,qtdeclarative)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("bluez" ,bluez)
|
|
|
|
|
("qtbase" ,qtbase)))))
|
|
|
|
|
|
2016-06-06 19:05:47 +02:00
|
|
|
|
(define-public qtwebsockets
|
|
|
|
|
(package (inherit qtsvg)
|
|
|
|
|
(name "qtwebsockets")
|
2016-06-26 16:54:32 +02:00
|
|
|
|
(version "5.6.1-1")
|
2016-06-06 19:05:47 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-26 16:54:32 +02:00
|
|
|
|
"1fz0x8570zxc00a22skd848svma3p2g3xyxj14jq10559jihqqil"))))
|
2016-06-06 19:05:47 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("perl" ,perl)
|
|
|
|
|
("qtdeclarative" ,qtdeclarative)))
|
|
|
|
|
(inputs `(("qtbase" ,qtbase)))))
|
|
|
|
|
|
2016-06-06 19:14:45 +02:00
|
|
|
|
(define-public qtsensors
|
|
|
|
|
(package (inherit qtsvg)
|
|
|
|
|
(name "qtsensors")
|
2016-06-26 16:55:24 +02:00
|
|
|
|
(version "5.6.1-1")
|
2016-06-06 19:14:45 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-26 16:55:24 +02:00
|
|
|
|
"0kcrvf6vzn6g2v2m70f9r3raalzmfp48rwjlqhss3w84jfz3y04r"))))
|
2016-06-06 19:14:45 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("perl" ,perl)
|
|
|
|
|
("qtdeclarative" ,qtdeclarative)))
|
|
|
|
|
(inputs `(("qtbase" ,qtbase)))))
|
|
|
|
|
|
2016-06-06 20:50:41 +02:00
|
|
|
|
(define-public qtmultimedia
|
|
|
|
|
(package (inherit qtsvg)
|
|
|
|
|
(name "qtmultimedia")
|
2016-06-26 16:56:08 +02:00
|
|
|
|
(version "5.6.1-1")
|
2016-06-06 20:50:41 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-26 16:56:08 +02:00
|
|
|
|
"0paffx0614ivjbf87lr9klpbqik6r1pzbc14l41np6d9jv3dqa2f"))))
|
2016-06-06 20:50:41 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("perl" ,perl)
|
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
|
("python" ,python-2)
|
|
|
|
|
("qtdeclarative" ,qtdeclarative)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("alsa-lib" ,alsa-lib)
|
|
|
|
|
("mesa" ,mesa)
|
|
|
|
|
("pulseaudio" ,pulseaudio)
|
|
|
|
|
("qtbase" ,qtbase)))))
|
|
|
|
|
|
2016-06-08 19:21:16 +02:00
|
|
|
|
(define-public qtwayland
|
|
|
|
|
(package (inherit qtsvg)
|
|
|
|
|
(name "qtwayland")
|
2016-06-26 16:56:53 +02:00
|
|
|
|
(version "5.6.1-1")
|
2016-06-08 19:21:16 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-26 16:56:53 +02:00
|
|
|
|
"1fnvgpi49ilds3ah9iizxj9qhhb5rnwqd9h03bhkwf0ydywv52c4"))))
|
2016-06-08 19:21:16 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("glib" ,glib)
|
|
|
|
|
("perl" ,perl)
|
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
|
("qtdeclarative" ,qtdeclarative)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("fontconfig" ,fontconfig)
|
|
|
|
|
("freetype" ,freetype)
|
|
|
|
|
("libx11" ,libx11)
|
|
|
|
|
("libxcomposite" ,libxcomposite)
|
|
|
|
|
("libxext" ,libxext)
|
|
|
|
|
("libxkbcommon" ,libxkbcommon)
|
|
|
|
|
("libxrender" ,libxrender)
|
|
|
|
|
("mesa" ,mesa)
|
|
|
|
|
("mtdev" ,mtdev)
|
|
|
|
|
("qtbase" ,qtbase)
|
|
|
|
|
("wayland" ,wayland)))))
|
|
|
|
|
|
2016-06-09 22:41:39 +02:00
|
|
|
|
(define-public qtserialport
|
|
|
|
|
(package (inherit qtsvg)
|
|
|
|
|
(name "qtserialport")
|
2016-06-26 16:57:51 +02:00
|
|
|
|
(version "5.6.1-1")
|
2016-06-09 22:41:39 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-26 16:57:51 +02:00
|
|
|
|
"135cbgghxk0c6dblmyyrw6znfb9m8sac9hhyc2dm6vq7vzy8id52"))))
|
2016-06-09 22:41:39 +02:00
|
|
|
|
(native-inputs `(("perl" ,perl)))
|
2016-06-26 16:57:51 +02:00
|
|
|
|
(inputs
|
|
|
|
|
`(("qtbase" ,qtbase)
|
|
|
|
|
("eudev" ,eudev)))))
|
2016-06-09 22:41:39 +02:00
|
|
|
|
|
2016-06-09 22:56:18 +02:00
|
|
|
|
(define-public qtwebchannel
|
|
|
|
|
(package (inherit qtsvg)
|
|
|
|
|
(name "qtwebchannel")
|
2016-06-26 16:58:42 +02:00
|
|
|
|
(version "5.6.1-1")
|
2016-06-09 22:56:18 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-26 16:58:42 +02:00
|
|
|
|
"10kys3ppjkj60fs1s335fdcpdsbxsjn6ibvm6zph9gqbncabd2l7"))))
|
2016-06-09 22:56:18 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("perl" ,perl)
|
|
|
|
|
("qtdeclarative" ,qtdeclarative)
|
|
|
|
|
("qtwebsockets" ,qtwebsockets)))
|
|
|
|
|
(inputs `(("qtbase" ,qtbase)))))
|
|
|
|
|
|
2016-06-10 06:49:43 +02:00
|
|
|
|
(define-public qtlocation
|
|
|
|
|
(package (inherit qtsvg)
|
|
|
|
|
(name "qtlocation")
|
2016-06-26 16:59:28 +02:00
|
|
|
|
(version "5.6.1-1")
|
2016-06-10 06:49:43 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-26 16:59:28 +02:00
|
|
|
|
"0my4pbcxa58yzvdh65l5qx99ln03chjr5c3ml5v37wfk7nx23k69"))))
|
2016-06-10 06:49:43 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("perl" ,perl)
|
|
|
|
|
("qtdeclarative" ,qtdeclarative)
|
|
|
|
|
;("qtquickcontrols" ,qtquickcontrols)
|
|
|
|
|
("qtserialport" ,qtserialport)))
|
|
|
|
|
(inputs `(("qtbase" ,qtbase)))))
|
|
|
|
|
|
2016-06-10 13:36:30 +02:00
|
|
|
|
(define-public qttools
|
|
|
|
|
(package (inherit qtsvg)
|
|
|
|
|
(name "qttools")
|
2016-06-26 17:00:10 +02:00
|
|
|
|
(version "5.6.1-1")
|
2016-06-10 13:36:30 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-26 17:00:10 +02:00
|
|
|
|
"0haic027a2d7p7k8xz83fbvci4a4dln34360rlwgy7hlyy5m4nip"))))
|
2016-06-10 13:36:30 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("perl" ,perl)
|
|
|
|
|
("qtdeclarative" ,qtdeclarative)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("mesa" ,mesa)
|
|
|
|
|
("qtbase" ,qtbase)))))
|
|
|
|
|
|
2016-06-30 11:22:30 +02:00
|
|
|
|
(define-public qtscript
|
|
|
|
|
(package (inherit qtsvg)
|
|
|
|
|
(name "qtscript")
|
|
|
|
|
(version "5.6.1-1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.qt.io/official_releases/qt/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/submodules/" name "-opensource-src-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1gini9483flqa9q4a4bl81bh7g5s408bycqykqhgbklmfd29y5lx"))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("perl" ,perl)
|
|
|
|
|
("qttools" ,qttools)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("qtbase" ,qtbase)))))
|
|
|
|
|
|
2016-02-22 21:05:06 +01:00
|
|
|
|
(define-public qjson
|
|
|
|
|
(package
|
|
|
|
|
(name "qjson")
|
|
|
|
|
(version "0.8.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/flavio/qjson/archive/"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"163fspi0xc705irv79qw861fmh68pjyla9vx3kqiq6xrdhb9834j"))))
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("qt" ,qt-4)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ; no test target
|
|
|
|
|
(home-page "http://qjson.sourceforge.net/")
|
|
|
|
|
(synopsis "Qt-based library for handling JSON")
|
|
|
|
|
(description "QJson is a Qt-based library that maps JSON data to QVariant
|
|
|
|
|
objects and vice versa. JSON arrays are mapped to QVariantList instances,
|
|
|
|
|
while JSON objects are mapped to QVariantMap.")
|
|
|
|
|
(license lgpl2.1+)))
|
|
|
|
|
|
2015-01-24 20:17:33 +01:00
|
|
|
|
(define-public python-sip
|
|
|
|
|
(package
|
|
|
|
|
(name "python-sip")
|
2016-06-05 22:08:00 +02:00
|
|
|
|
(version "4.18")
|
2015-01-24 20:17:33 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(string-append "mirror://sourceforge/pyqt/sip/"
|
2016-06-05 22:08:00 +02:00
|
|
|
|
"sip-" version "/sip-" version ".tar.gz"))
|
2015-01-24 20:17:33 +01:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-05 22:08:00 +02:00
|
|
|
|
"1dlw4kyiwd9bzmd1djm79c121r219abaz86lvizdk6ksq20mrp7i"))))
|
2015-01-24 20:17:33 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python" ,python-wrapper)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; no check target
|
2015-08-11 15:41:35 +02:00
|
|
|
|
#:modules ((srfi srfi-1)
|
|
|
|
|
,@%gnu-build-system-modules)
|
2015-01-24 20:17:33 +01:00
|
|
|
|
#:phases
|
2016-06-05 22:10:34 +02:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(include (string-append out "/include"))
|
|
|
|
|
(python (assoc-ref inputs "python"))
|
|
|
|
|
(python-version
|
|
|
|
|
(last (string-split python #\-)))
|
|
|
|
|
(python-major+minor
|
|
|
|
|
(string-join
|
|
|
|
|
(take (string-split python-version #\.) 2)
|
|
|
|
|
"."))
|
|
|
|
|
(lib (string-append out "/lib/python"
|
|
|
|
|
python-major+minor
|
|
|
|
|
"/site-packages")))
|
|
|
|
|
(zero?
|
|
|
|
|
(system* "python" "configure.py"
|
|
|
|
|
"--bindir" bin
|
|
|
|
|
"--destdir" lib
|
|
|
|
|
"--incdir" include))))))))
|
|
|
|
|
(home-page "https://www.riverbankcomputing.com/software/sip/intro")
|
2015-01-24 20:17:33 +01:00
|
|
|
|
(synopsis "Python binding creator for C and C++ libraries")
|
|
|
|
|
(description
|
|
|
|
|
"SIP is a tool to create Python bindings for C and C++ libraries. It
|
|
|
|
|
was originally developed to create PyQt, the Python bindings for the Qt
|
|
|
|
|
toolkit, but can be used to create bindings for any C or C++ library.
|
|
|
|
|
|
|
|
|
|
SIP comprises a code generator and a Python module. The code generator
|
|
|
|
|
processes a set of specification files and generates C or C++ code, which
|
|
|
|
|
is then compiled to create the bindings extension module. The SIP Python
|
|
|
|
|
module provides support functions to the automatically generated code.")
|
|
|
|
|
;; There is a choice between a python like license, gpl2 and gpl3.
|
|
|
|
|
;; For compatibility with pyqt, we need gpl3.
|
|
|
|
|
(license gpl3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-sip
|
|
|
|
|
(package (inherit python-sip)
|
|
|
|
|
(name "python2-sip")
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python" ,python-2)))))
|
2015-01-25 20:07:08 +01:00
|
|
|
|
|
|
|
|
|
(define-public python-pyqt
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyqt")
|
2016-06-05 22:12:38 +02:00
|
|
|
|
(version "5.6")
|
2015-01-25 20:07:08 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(string-append "mirror://sourceforge/pyqt/PyQt5/"
|
2016-06-05 22:12:38 +02:00
|
|
|
|
"PyQt-" version "/PyQt5_gpl-"
|
2015-01-25 20:07:08 +01:00
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-05 22:12:38 +02:00
|
|
|
|
"1qgh42zsr9jppl9k7fcdbhxcd1wrb7wyaj9lng9nxfa19in1lj1f"))
|
2016-04-08 14:18:13 +02:00
|
|
|
|
(patches (search-patches "pyqt-configure.patch"))))
|
2015-01-25 20:07:08 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-sip" ,python-sip)
|
2016-06-05 22:12:38 +02:00
|
|
|
|
("qtbase" ,qtbase))) ; for qmake
|
2015-01-25 20:07:08 +01:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python" ,python-wrapper)))
|
|
|
|
|
(arguments
|
2015-08-11 15:41:35 +02:00
|
|
|
|
`(#:modules ((srfi srfi-1)
|
|
|
|
|
,@%gnu-build-system-modules)
|
|
|
|
|
#:phases
|
2016-06-05 22:14:29 +02:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(sip (string-append out "/share/sip"))
|
|
|
|
|
(plugins (string-append out "/plugins"))
|
|
|
|
|
(designer (string-append plugins "/designer"))
|
|
|
|
|
(qml (string-append plugins "/PyQt5"))
|
|
|
|
|
(python (assoc-ref inputs "python"))
|
|
|
|
|
(python-version
|
|
|
|
|
(last (string-split python #\-)))
|
|
|
|
|
(python-major+minor
|
|
|
|
|
(string-join
|
|
|
|
|
(take (string-split python-version #\.) 2)
|
|
|
|
|
"."))
|
|
|
|
|
(lib (string-append out "/lib/python"
|
|
|
|
|
python-major+minor
|
|
|
|
|
"/site-packages")))
|
|
|
|
|
(zero? (system* "python" "configure.py"
|
|
|
|
|
"--confirm-license"
|
|
|
|
|
"--bindir" bin
|
|
|
|
|
"--destdir" lib
|
|
|
|
|
"--designer-plugindir" designer
|
|
|
|
|
"--qml-plugindir" qml
|
|
|
|
|
"--sipdir" sip))))))))
|
|
|
|
|
(home-page "https://www.riverbankcomputing.com/software/pyqt/intro")
|
2015-01-25 20:07:08 +01:00
|
|
|
|
(synopsis "Python bindings for Qt")
|
|
|
|
|
(description
|
|
|
|
|
"PyQt is a set of Python v2 and v3 bindings for the Qt application
|
|
|
|
|
framework. The bindings are implemented as a set of Python modules and
|
|
|
|
|
contain over 620 classes.")
|
|
|
|
|
(license gpl3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pyqt
|
|
|
|
|
(package (inherit python-pyqt)
|
|
|
|
|
(name "python2-pyqt")
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-sip" ,python2-sip)
|
2016-06-05 22:12:38 +02:00
|
|
|
|
("qtbase" ,qtbase)))
|
2015-01-25 20:07:08 +01:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python" ,python-2)))))
|
2015-02-16 21:15:24 +01:00
|
|
|
|
|
2016-07-25 23:19:01 +02:00
|
|
|
|
(define-public python-pyqt-5.5
|
|
|
|
|
(package (inherit python-pyqt)
|
|
|
|
|
(version "5.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(string-append "mirror://sourceforge/pyqt/PyQt5/"
|
|
|
|
|
"PyQt-" version "/PyQt-gpl-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"056qmkv02wdcfblqdaxiswrgn4wa88sz22i1x58dpb1iniavplfd"))
|
|
|
|
|
(patches (search-patches "pyqt-configure.patch"))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-sip" ,python-sip)
|
|
|
|
|
("qt" ,qt)))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pyqt-5.5
|
|
|
|
|
(package (inherit python-pyqt-5.5)
|
|
|
|
|
(name "python2-pyqt")
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-sip" ,python2-sip)
|
|
|
|
|
("qt" ,qt)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python" ,python-2)))))
|
|
|
|
|
|
2015-02-16 21:15:24 +01:00
|
|
|
|
(define-public python-pyqt-4
|
|
|
|
|
(package (inherit python-pyqt)
|
|
|
|
|
(name "python-pyqt")
|
2015-08-10 15:59:37 +02:00
|
|
|
|
(version "4.11.4")
|
2015-02-16 21:15:24 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(string-append "mirror://sourceforge/pyqt/PyQt4/"
|
|
|
|
|
"PyQt-" version "/PyQt-x11-gpl-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-08-10 15:59:37 +02:00
|
|
|
|
"01zlviy5lq8g6db84wnvvpsrfnip9lbcpxagsyqa6as3jmsff7zw"))))
|
2015-02-16 21:15:24 +01:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-sip" ,python-sip)
|
|
|
|
|
("qt" ,qt-4)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; no check target
|
2015-08-11 15:41:35 +02:00
|
|
|
|
#:modules ((srfi srfi-1)
|
|
|
|
|
,@%gnu-build-system-modules)
|
2015-02-16 21:15:24 +01:00
|
|
|
|
#:phases
|
|
|
|
|
(alist-replace
|
|
|
|
|
'configure
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(sip (string-append out "/share/sip"))
|
2015-08-11 15:41:35 +02:00
|
|
|
|
(python (assoc-ref inputs "python"))
|
2015-02-16 21:15:24 +01:00
|
|
|
|
(python-version
|
2015-08-11 15:41:35 +02:00
|
|
|
|
(last (string-split python #\-)))
|
|
|
|
|
(python-major+minor
|
|
|
|
|
(string-join
|
|
|
|
|
(take (string-split python-version #\.) 2)
|
|
|
|
|
"."))
|
2015-02-16 21:15:24 +01:00
|
|
|
|
(lib (string-append out "/lib/python"
|
2015-08-11 15:41:35 +02:00
|
|
|
|
python-major+minor
|
2015-02-16 21:15:24 +01:00
|
|
|
|
"/site-packages")))
|
|
|
|
|
(zero? (system* "python" "configure.py"
|
|
|
|
|
"--confirm-license"
|
|
|
|
|
"--bindir" bin
|
|
|
|
|
"--destdir" lib
|
|
|
|
|
"--sipdir" sip))))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(license (list gpl2 gpl3)))) ; choice of either license
|
|
|
|
|
|
2015-09-16 14:24:27 +02:00
|
|
|
|
(define-public qtkeychain
|
|
|
|
|
(package
|
|
|
|
|
(name "qtkeychain")
|
2016-06-06 12:01:26 +02:00
|
|
|
|
(version "0.7.0")
|
2015-09-16 14:24:27 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/frankosterfeld/qtkeychain/"
|
|
|
|
|
"archive/v" version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
2016-06-06 12:01:26 +02:00
|
|
|
|
(base32 "0fka5q5cdzlf79igcjgbnb2smvwbwfasqawkzkbr34whispgm6lz"))))
|
2015-09-16 14:24:27 +02:00
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(inputs
|
gnu: Fix misplaced commas (unquote).
Fix many occurrences of comma (unquote) being placed immediately after the
previous list item, e.g. ("ncurses", ncurses) in the inputs.
* gnu/packages/base.scm (patch, gnu-make),
gnu/packages/bioinformatics.scm (hmmer),
gnu/packages/bittorrent.scm (aria2),
gnu/packages/compression.scm (pbzip2),
gnu/packages/databases.scm (recutils),
gnu/packages/fonts.scm (font-terminus),
gnu/packages/freedesktop.scm (xdg-utils, elogind),
gnu/packages/games.scm (gnujump),
gnu/packages/gnome.scm (libidl, gnumeric, eog, gedit),
gnu/packages/gnunet.scm (gnunet),
gnu/packages/gnuzilla.scm (mozjs, nspr),
gnu/packages/gtk.scm (gtksourceview, gdk-pixbuf),
gnu/packages/lua.scm (lua),
gnu/packages/openstack.scm (python-swiftclient),
gnu/packages/perl.scm (perl-json-any),
gnu/packages/polkit.scm (polkit-qt),
gnu/packages/python.scm (wrap-python3, python-oauthlib)
(python-mccabe-0.2.1, python-contextlib2, python2-rauth),
gnu/packages/qt.scm (qtkeychain),
gnu/packages/ruby.scm (ruby-nokogiri),
gnu/packages/screen.scm (screen),
gnu/packages/ssh.scm (libssh),
gnu/packages/video.scm (ffmpeg, mplayer),
gnu/packages/vim.scm (vim),
gnu/packages/xdisorg.scm (redshift),
gnu/packages/xfce.scm (xfce4-panel, xfce4-settings),
gnu/packages/xnee.scm (xnee),
gnu/packages/xorg.scm (font-adobe100dpi, font-adobe75dpi),
gnu/packages/zsh.scm (zsh): Fix misplaced commas (unquote).
2016-02-27 14:37:28 +01:00
|
|
|
|
`(("qt" ,qt)))
|
2015-09-16 14:24:27 +02:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; No tests included
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before
|
|
|
|
|
'configure 'set-qt-trans-dir
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
|
(("\\$\\{qt_translations_dir\\}")
|
|
|
|
|
"${CMAKE_INSTALL_PREFIX}/share/qt/translations")))))))
|
|
|
|
|
(home-page "https://github.com/frankosterfeld/qtkeychain")
|
|
|
|
|
(synopsis "Qt API to store passwords")
|
|
|
|
|
(description
|
|
|
|
|
"QtKeychain is a Qt library to store passwords and other secret data
|
|
|
|
|
securely. It will not store any data unencrypted unless explicitly requested.")
|
|
|
|
|
(license bsd-3)))
|