summaryrefslogtreecommitdiffstats
path: root/package/python-pyqt/0002-configure-set-qws.patch
diff options
context:
space:
mode:
authorGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>2015-04-19 10:03:53 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-04-19 19:19:11 +0200
commitecb26b1add5b4b97e86c0fb60b56bcc44576aa6f (patch)
tree21270d79794dd638522ed67159dc7b534a81d133 /package/python-pyqt/0002-configure-set-qws.patch
parent32574fe118377511c51bfea20a7bf3e2a9c0bfb2 (diff)
downloadbuildroot-ecb26b1add5b4b97e86c0fb60b56bcc44576aa6f.tar.gz
buildroot-ecb26b1add5b4b97e86c0fb60b56bcc44576aa6f.zip
python-pyqt: new package
[Thomas: - Remove dependency on python (already a dependency of python-sip), and add a dependency on host-python-sip, since python-sip no longer depends on host-python-sip. - Make the code Python 2 / Python 3 compatible (both have been tested). - Fix indentation all over the place. - Remove double quotes when defining variable values, not needed. - Add <pkg>_BUILD_CMDS to do the build process separately from the installation. - Create a PYTHON_PYQT_CONF_OPTS variable with all the config options, since some of them are now conditional. - Use 'compileall' to byte-compile the dummy __init__.py.] Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Cc: Sergey Kostanbaev <sergey.kostanbaev@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/python-pyqt/0002-configure-set-qws.patch')
-rw-r--r--package/python-pyqt/0002-configure-set-qws.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/package/python-pyqt/0002-configure-set-qws.patch b/package/python-pyqt/0002-configure-set-qws.patch
new file mode 100644
index 0000000000..33a5648bee
--- /dev/null
+++ b/package/python-pyqt/0002-configure-set-qws.patch
@@ -0,0 +1,43 @@
+Add support for several Qt flavors
+
+Qt has two flavors: X11 and embedded (QWS). QWS has some limitations
+compared to X11. This patch adds an option to select which version to
+use.
+
+Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
+---
+Index: PyQt-x11-gpl-4.11.3/configure-ng.py
+===================================================================
+--- PyQt-x11-gpl-4.11.3.orig/configure-ng.py
++++ PyQt-x11-gpl-4.11.3/configure-ng.py
+@@ -960,6 +960,9 @@ int main(int argc, char **argv)
+ if opts.vendlibdir is not None:
+ self.vend_lib_dir = opts.vendlibdir
+
++ if opts.qtflavor is not None:
++ self.qt_flavor = opts.qtflavor
++
+ # Handle any conflicts.
+ if self.qt_shared:
+ if len(self.static_plugins) != 0:
+@@ -1177,6 +1180,11 @@ def create_optparser(target_config):
+ dest="notools",
+ help="disable the building of pyuic5, pyrcc5 and pylupdate5 "
+ "[default: enabled]")
++ g.add_option("--qt-flavor", dest='qtflavor', type='string',
++ default="WS_X11", metavar='QTFLAVOR', action='store',
++ help="select Qt flavor beetween WS_X11 and WS_QWS "
++ "only available on Linux)"
++ "[default: WS_X11]")
+ p.add_option_group(g)
+
+ # Vendor ID.
+@@ -2088,7 +2096,7 @@ def get_sip_flags(target_config):
+ elif target_config.py_platform == 'darwin':
+ plattag = 'WS_MACX'
+ else:
+- plattag = 'WS_X11'
++ plattag = target_config.qt_flavor
+
+ sip_flags.append('-t')
+ sip_flags.append(plattag)
OpenPOWER on IntegriCloud