Created
October 23, 2019 04:32
-
-
Save mlyle/c890f2405eaefb63c6b9051c5b995106 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SUMMARY = "Python Qt Web Engine Bindings" | |
AUTHOR = "Phil Thomson @ riverbank.co.uk" | |
HOMEPAGE = "http://riverbankcomputing.co.uk" | |
SECTION = "devel/python" | |
LICENSE = "GPLv3" | |
LIC_FILES_CHKSUM = "\ | |
file://LICENSE;md5=d32239bcb673463ab874e80d47fae504 \ | |
" | |
SRC_URI = "\ | |
https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/${PV}/PyQtWebEngine_gpl-${PV}.tar.gz \ | |
" | |
SRC_URI[md5sum] = "3328d0ccc2649d65846524d70fd0d0c5" | |
SRC_URI[sha256sum] = "860704672ea1b616e1347be1f347bc1c749e64ed378370863fe209e84e9bd473" | |
S = "${WORKDIR}/PyQtWebEngine_gpl-${PV}" | |
inherit qmake5 | |
DEPENDS = "qtbase qtwebengine packagegroup-qt5-toolchain-target" | |
export BUILD_SYS | |
export HOST_SYS | |
export STAGING_INCDIR | |
export STAGING_LIBDIR | |
PARALLEL_MAKEINST = "" | |
do_configure_prepend() { | |
cd ${S} | |
QT_VERSION=`${OE_QMAKE_QMAKE} -query QT_VERSION` | |
echo "[PyQt 5.0]" > pyqt.cfg | |
echo "py_platform = linux" >> pyqt.cfg | |
echo "sip_module = PyQt5.sip" >>pyqt.cfg | |
echo "py_inc_dir = %(sysroot)/$includedir/python%(py_major).%(py_minor)${PYTHON_ABI}" >> pyqt.cfg | |
echo "py_pylib_dir = %(sysroot)/${libdir}/python%(py_major).%(py_minor)" >> pyqt.cfg | |
echo "py_pylib_lib = python$%(py_major).%(py_minor)" >> pyqt.cfg | |
echo "pyqt_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> pyqt.cfg | |
echo "py_bin_dir = ${D}/${bindir}" >> pyqt.cfg | |
# echo "py_sip_dir = ${D}/${datadir}/sip/PyQt5" >> pyqt.cfg | |
echo "py_sip_dir = %(sysroot)/${datadir}/sip" >> pyqt.cfg | |
echo "pyuic_interpreter = ${D}/${bindir}/python%(py_major).%(py_minor)" >> pyqt.cfg | |
# echo "pyqt_disabled_features = ${DISABLED_FEATURES}" >> pyqt.cfg | |
echo "qt_shared = True" >> pyqt.cfg | |
# echo "pyqt_modules = ${PYQT_MODULES}" >> pyqt.cfg | |
echo yes | ${PYTHON} configure.py --verbose --qmake ${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME}/qmake --configuration pyqt.cfg --sysroot ${STAGING_DIR_HOST} | |
} | |
do_compile() { | |
cd ${S} | |
oe_runmake | |
} | |
do_install() { | |
cd ${S} | |
oe_runmake MAKEFLAGS='-j 1' install | |
} | |
RDEPENDS_${PN} = "qtbase qtwebengine packagegroup-qt5-toolchain-target" | |
inherit python3native python3-dir | |
FILES_${PN} += "/usr/lib/python3.7/site-packages /usr/share/sip/PyQt5" | |
#FILES_${PN} += "${libdir}/${PYTHON_DIR}/site-packages ${datadir}/sip/PyQt5/" | |
DEPENDS += " sip3 sip3-native python3 python3-pyqt5 packagegroup-qt5-toolchain-target" | |
RDEPENDS_${PN} += "python3-core python3-sip3" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment