summaryrefslogtreecommitdiffstats
path: root/recipes-python/pyqtchart/python-pyqtchart.inc
diff options
context:
space:
mode:
authorMikko Gronoff <mikko.gronoff@qt.io>2020-03-02 14:39:52 +0200
committerMikko Gronoff <mikko.gronoff@qt.io>2020-03-02 15:28:57 +0200
commitf9a58d623762c5fd78bd6bc18d701a7aaa004567 (patch)
treecbb55ca0f320d53b82c69b1afe063b675a20147a /recipes-python/pyqtchart/python-pyqtchart.inc
parent7637ea77fa521c348da331d103ce96ed4d8b57f5 (diff)
parentabb423512d10d7554e0d62b3a593ce5e436f2756 (diff)
downloadmeta-qt5-f9a58d623762c5fd78bd6bc18d701a7aaa004567.tar.gz
Merge remote-tracking branch 'qt/upstream/master' into 5.14
* qt/upstream/master: abb42351 qtwebview: Skip if meta-python is not present caf09cd5 Add PyQtChart. f18d5948 qtbase: fix build with platform where FE macro are not defined c8cd55b0 qtwebkit: build with python3 0bbd0ebe qtwebengine: Link libatomic on x86/32bit 23914740 Revert "qtwebkit: remove" 8cadcbcb qt5: upgrade to 5.14.1 f13a3cec packagegroup-qt5-toolchain-target: Use TUNE_PKGARCH instead of MACHINE_ARCH a35403dc qtwebkit: remove a797f85c python-pyqt5, qtwebengine, qtwebkit, qt-kiosk-browser: skip without meta-python2 b1f4f1fd Revert "recipes: Use python3 during build" 47fb26de recipes: Use python3 during build 4060f68d qt-kiosk-browser: Only support arm/x86 fd376e15 qtwebengine: Fix missing headers found in build with clang 7f324f11 gstreamer1.0-plugins-good: Adjust bbappend for meson migration in core 1365691f qttools: remove ptest installation 254576f9 qt-kiosk-browser: Add recipe 47399df9 nativesdk-packagegroup: fix cmake builds using sdk Conflicts: recipes-qt/qt5/nativesdk-qtbase_git.bb recipes-qt/qt5/qt3d_git.bb recipes-qt/qt5/qt5-git.inc recipes-qt/qt5/qtbase-native_git.bb recipes-qt/qt5/qtbase/0017-qfloat16-check-for-__ARM_FP-2.patch recipes-qt/qt5/qtbase_git.bb recipes-qt/qt5/qtcharts_git.bb recipes-qt/qt5/qtcoap_git.bb recipes-qt/qt5/qtconnectivity_git.bb recipes-qt/qt5/qtdatavis3d_git.bb recipes-qt/qt5/qtdeclarative_git.bb recipes-qt/qt5/qtgamepad_git.bb recipes-qt/qt5/qtgraphicaleffects_git.bb recipes-qt/qt5/qtknx_git.bb recipes-qt/qt5/qtlocation_git.bb recipes-qt/qt5/qtlottie_git.bb recipes-qt/qt5/qtmqtt_git.bb recipes-qt/qt5/qtmultimedia_git.bb recipes-qt/qt5/qtnetworkauth_git.bb recipes-qt/qt5/qtopcua_git.bb [...] (41 conflicts) Change-Id: Ib48e50eb939e7a8d0422c0beb75863b8a4b82b15
Diffstat (limited to 'recipes-python/pyqtchart/python-pyqtchart.inc')
-rw-r--r--recipes-python/pyqtchart/python-pyqtchart.inc66
1 files changed, 66 insertions, 0 deletions
diff --git a/recipes-python/pyqtchart/python-pyqtchart.inc b/recipes-python/pyqtchart/python-pyqtchart.inc
new file mode 100644
index 00000000..e8dba18a
--- /dev/null
+++ b/recipes-python/pyqtchart/python-pyqtchart.inc
@@ -0,0 +1,66 @@
1SUMMARY = "Python Qt Chart Bindings"
2AUTHOR = "Adrian.Fiergolski@fastree3d.com"
3SECTION = "devel/python"
4LICENSE = "GPLv3"
5LIC_FILES_CHKSUM = "\
6 file://LICENSE;md5=d32239bcb673463ab874e80d47fae504 \
7"
8SRC_URI = "\
9 https://www.riverbankcomputing.com/static/Downloads/PyQtChart/${PV}/PyQtChart-${PV}.tar.gz \
10"
11SRC_URI[md5sum] = "d5d37bff46b690d6318e5e5f25dd5213"
12SRC_URI[sha256sum] = "49960a1483527857b38c1527f9b6328d30bdcc84521f579c0a561a892f54130e"
13
14S = "${WORKDIR}/PyQtChart-${PV}"
15
16inherit qmake5
17DEPENDS = "qtbase qtdeclarative qtquickcontrols2"
18
19export BUILD_SYS
20export HOST_SYS
21export STAGING_INCDIR
22export STAGING_LIBDIR
23
24PARALLEL_MAKEINST = ""
25
26DISABLED_FEATURES = "PyQt_Desktop_OpenGL PyQt_Accessibility PyQt_SessionManager"
27
28DISABLED_FEATURES_append_arm = " PyQt_qreal_double"
29
30do_configure_prepend() {
31 cd ${S}
32 echo "[PyQt 5]" > pyqt.cfg
33 echo "py_platform = linux" >> pyqt.cfg
34 echo "py_inc_dir = %(sysroot)/$includedir/python%(py_major).%(py_minor)${PYTHON_ABI}" >> pyqt.cfg
35 echo "py_pylib_dir = %(sysroot)/${libdir}/python%(py_major).%(py_minor)" >> pyqt.cfg
36 echo "pyqt_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> pyqt.cfg
37 echo "py_sip_dir = ${STAGING_EXECPREFIXDIR}/share/sip" >> pyqt.cfg
38 echo "sip_module = PyQt5.sip" >> pyqt.cfg
39 echo "pyqt_disabled_features = ${DISABLED_FEATURES}" >> pyqt.cfg
40 echo yes | ${PYTHON} configure.py --verbose --qmake ${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME}/qmake --configuration pyqt.cfg --sysroot ${STAGING_DIR_HOST}
41}
42
43do_configure_append() {
44 #Fix installation paths
45 sed -i -e s:'$(INSTALL_ROOT)'${STAGING_EXECPREFIXDIR}:'$(INSTALL_ROOT)'${D}${exec_prefix}:g ${S}/Makefile
46 sed -i -e s:'$(INSTALL_ROOT)'${STAGING_EXECPREFIXDIR}:'$(INSTALL_ROOT)'${D}${exec_prefix}:g ${S}/QtChart/Makefile
47 #Skip installed.txt creation
48 sed -i -e s:" install_distinfo ":" ": ${S}/Makefile
49}
50
51do_compile() {
52 cd ${S}
53 oe_runmake
54}
55
56do_install() {
57 cd ${S}
58 oe_runmake MAKEFLAGS='-j 1' install
59}
60
61
62FILES_${PN} += "${libdir}/${PYTHON_DIR}/site-packages ${datadir}/"
63
64DEPENDS = "qtcharts"
65
66RDEPENDS_${PN} = "qtbase qtdeclarative qtquickcontrols2 qtquickcontrols2-mkspecs qtcharts"