diff options
Diffstat (limited to 'recipes-python/pyqtchart/python3-pyqtchart_5.13.1.bb')
| -rw-r--r-- | recipes-python/pyqtchart/python3-pyqtchart_5.13.1.bb | 61 |
1 files changed, 60 insertions, 1 deletions
diff --git a/recipes-python/pyqtchart/python3-pyqtchart_5.13.1.bb b/recipes-python/pyqtchart/python3-pyqtchart_5.13.1.bb index 899f9691..04e42beb 100644 --- a/recipes-python/pyqtchart/python3-pyqtchart_5.13.1.bb +++ b/recipes-python/pyqtchart/python3-pyqtchart_5.13.1.bb | |||
| @@ -1,7 +1,66 @@ | |||
| 1 | require python-pyqtchart.inc | 1 | SUMMARY = "Python Qt Chart Bindings" |
| 2 | AUTHOR = "Adrian.Fiergolski@fastree3d.com" | ||
| 3 | SECTION = "devel/python" | ||
| 4 | LICENSE = "GPLv3" | ||
| 5 | LIC_FILES_CHKSUM = "\ | ||
| 6 | file://LICENSE;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 7 | " | ||
| 8 | SRC_URI = "\ | ||
| 9 | https://www.riverbankcomputing.com/static/Downloads/PyQtChart/${PV}/PyQtChart-${PV}.tar.gz \ | ||
| 10 | " | ||
| 11 | SRC_URI[md5sum] = "d5d37bff46b690d6318e5e5f25dd5213" | ||
| 12 | SRC_URI[sha256sum] = "49960a1483527857b38c1527f9b6328d30bdcc84521f579c0a561a892f54130e" | ||
| 2 | 13 | ||
| 14 | S = "${WORKDIR}/PyQtChart-${PV}" | ||
| 15 | |||
| 16 | inherit qmake5 | ||
| 3 | inherit python3native python3-dir | 17 | inherit python3native python3-dir |
| 4 | 18 | ||
| 19 | DEPENDS = "qtcharts" | ||
| 5 | DEPENDS += "sip3 sip3-native python3 python3-pyqt5" | 20 | DEPENDS += "sip3 sip3-native python3 python3-pyqt5" |
| 6 | 21 | ||
| 22 | export BUILD_SYS | ||
| 23 | export HOST_SYS | ||
| 24 | export STAGING_INCDIR | ||
| 25 | export STAGING_LIBDIR | ||
| 26 | |||
| 27 | PARALLEL_MAKEINST = "" | ||
| 28 | |||
| 29 | DISABLED_FEATURES = "PyQt_Desktop_OpenGL PyQt_Accessibility PyQt_SessionManager" | ||
| 30 | |||
| 31 | do_configure_prepend() { | ||
| 32 | cd ${S} | ||
| 33 | echo "[PyQt 5]" > pyqt.cfg | ||
| 34 | echo "py_platform = linux" >> pyqt.cfg | ||
| 35 | echo "py_inc_dir = %(sysroot)/$includedir/python%(py_major).%(py_minor)${PYTHON_ABI}" >> pyqt.cfg | ||
| 36 | echo "py_pylib_dir = %(sysroot)/${libdir}/python%(py_major).%(py_minor)" >> pyqt.cfg | ||
| 37 | echo "pyqt_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> pyqt.cfg | ||
| 38 | echo "py_sip_dir = ${STAGING_EXECPREFIXDIR}/share/sip" >> pyqt.cfg | ||
| 39 | echo "sip_module = PyQt5.sip" >> pyqt.cfg | ||
| 40 | echo "pyqt_disabled_features = ${DISABLED_FEATURES}" >> pyqt.cfg | ||
| 41 | echo yes | ${PYTHON} configure.py --verbose --qmake ${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME}/qmake --configuration pyqt.cfg --sysroot ${STAGING_DIR_HOST} | ||
| 42 | } | ||
| 43 | |||
| 44 | do_configure_append() { | ||
| 45 | #Fix installation paths | ||
| 46 | sed -i -e s:'$(INSTALL_ROOT)'${STAGING_EXECPREFIXDIR}:'$(INSTALL_ROOT)'${D}${exec_prefix}:g ${S}/Makefile | ||
| 47 | sed -i -e s:'$(INSTALL_ROOT)'${STAGING_EXECPREFIXDIR}:'$(INSTALL_ROOT)'${D}${exec_prefix}:g ${S}/QtChart/Makefile | ||
| 48 | #Skip installed.txt creation | ||
| 49 | sed -i -e s:" install_distinfo ":" ": ${S}/Makefile | ||
| 50 | } | ||
| 51 | |||
| 52 | do_compile() { | ||
| 53 | cd ${S} | ||
| 54 | oe_runmake | ||
| 55 | } | ||
| 56 | |||
| 57 | do_install() { | ||
| 58 | cd ${S} | ||
| 59 | oe_runmake MAKEFLAGS='-j 1' install | ||
| 60 | } | ||
| 61 | |||
| 62 | |||
| 63 | FILES_${PN} += "${libdir}/${PYTHON_DIR}/site-packages ${datadir}/" | ||
| 64 | |||
| 65 | RDEPENDS_${PN} = "qtbase qtdeclarative qtquickcontrols2 qtquickcontrols2-mkspecs qtcharts" | ||
| 7 | RDEPENDS_${PN} += "python3-core python3-sip3 python3-pyqt5" | 66 | RDEPENDS_${PN} += "python3-core python3-sip3 python3-pyqt5" |
