python-PyQt5-webengine: update to 5.13.0
Introduce as separate template since the module is not longer included in PyQt5.
This commit is contained in:
parent
30b8752bd2
commit
0372e0feca
4 changed files with 92 additions and 2 deletions
|
@ -1 +0,0 @@
|
|||
python-PyQt5
|
90
srcpkgs/python-PyQt5-webengine/template
Normal file
90
srcpkgs/python-PyQt5-webengine/template
Normal file
|
@ -0,0 +1,90 @@
|
|||
# Template file for 'python-PyQt5'
|
||||
pkgname=python-PyQt5-webengine
|
||||
version=5.13.0
|
||||
revision=1
|
||||
lib32disabled=yes
|
||||
wrksrc="PyQtWebEngine_gpl-${version}"
|
||||
pycompile_module="PyQt5WebEngine"
|
||||
hostmakedepends="pkg-config qt5-qmake
|
||||
qt5-declarative-devel qt5-webchannel-devel qt5-location-devel
|
||||
python-devel python3-devel python-PyQt5-devel
|
||||
qt5-webengine-devel"
|
||||
makedepends="${hostmakedepends/pkg-config/}"
|
||||
depends="python-PyQt5"
|
||||
short_desc="Python2 bindings for the Qt5 toolkit - webengine module"
|
||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||
homepage="https://www.riverbankcomputing.com/software/pyqtwebengine/intro"
|
||||
license="GPL-3.0-only"
|
||||
distfiles="https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/${version}/PyQtWebEngine_gpl-${version}.tar.gz"
|
||||
checksum=bb6cabcc454ed1394aedfb42eb35dbee3ca324cf582e8c0ca5e8c8af0b00e325
|
||||
|
||||
pre_build() {
|
||||
mkdir -p pyqt5-${py2_ver}
|
||||
mv * pyqt5-${py2_ver} || true
|
||||
cp -a pyqt5-${py2_ver} pyqt5-${py3_ver}
|
||||
rm -rf pyqt5-${py2_ver}/pyuic/uic/port_v3
|
||||
rm -rf pyqt5-${py3_ver}/pyuic/uic/port_v2
|
||||
}
|
||||
do_build() {
|
||||
local _sysroot= _configuration= py_abiver= qt_version
|
||||
for pyver in $py2_ver $py3_ver; do
|
||||
if [ "$pyver" = "$py3_ver" ]; then
|
||||
py_abiver="$py3_abiver"
|
||||
fi
|
||||
|
||||
cd $wrksrc/pyqt5-$pyver
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
qt_version=$(qmake -query QT_VERSION)
|
||||
cat > pyqt5_${XBPS_CROSS_TRIPLET}.cfg <<EOF
|
||||
py_platform = linux
|
||||
py_inc_dir = %(sysroot)/usr/include/python%(py_major).%(py_minor)${py_abiver}
|
||||
py_pyshlib = python%(py_major).%(py_minor)${py_abiver}.so
|
||||
pyqt_disabled_features = PyQt_Desktop_OpenGL PyQt_qreal_double
|
||||
|
||||
qt_shared = True
|
||||
|
||||
[Qt ${qt_version}]
|
||||
pyqt_modules = QtWebEngine QtWebEngineCore QtWebEngineWidgets
|
||||
EOF
|
||||
|
||||
_sysroot="--sysroot $XBPS_CROSS_BASE"
|
||||
_configuration="--configuration $wrksrc/pyqt5-$pyver/pyqt5_${XBPS_CROSS_TRIPLET}.cfg"
|
||||
fi
|
||||
|
||||
python${pyver} configure.py --no-dist-info $_sysroot $_configuration \
|
||||
QMAKE_CC="${CC}" QMAKE_CFLAGS="${CFLAGS}" QMAKE_CXX="${CXX}" QMAKE_CXXFLAGS="${CXXFLAGS}" \
|
||||
QMAKE_LINK="${CXX}" QMAKE_LINK_SHLIB="${CXX}" QMAKE_LFLAGS="${LDFLAGS}" QMAKE_STRIP=""
|
||||
make ${makejobs}
|
||||
done
|
||||
}
|
||||
do_install() {
|
||||
# install python-pyqt5
|
||||
make -C pyqt5-${py2_ver} DESTDIR=${DESTDIR} INSTALL_ROOT=${DESTDIR} install
|
||||
|
||||
# install python3-pyqt5
|
||||
make -C pyqt5-${py3_ver} DESTDIR=${DESTDIR} INSTALL_ROOT=${DESTDIR} install
|
||||
}
|
||||
python-PyQt5-webengine_package() {
|
||||
lib32disabled=yes
|
||||
depends="${sourcepkg}-${version}_${revision}
|
||||
python-PyQt5-webchannel-${version}_${revision}"
|
||||
pkg_install() {
|
||||
vmove ${py2_sitelib}/PyQt5/QtWebEngine.so
|
||||
vmove ${py2_sitelib}/PyQt5/QtWebEngineCore.so
|
||||
vmove ${py2_sitelib}/PyQt5/QtWebEngineWidgets.so
|
||||
}
|
||||
}
|
||||
python3-PyQt5-webengine_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}
|
||||
python3-PyQt5-webchannel-${version}_${revision}"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
pkg_install() {
|
||||
vmove ${py3_sitelib}/PyQt5/QtWebEngine.pyi
|
||||
vmove ${py3_sitelib}/PyQt5/QtWebEngine.so
|
||||
vmove ${py3_sitelib}/PyQt5/QtWebEngineCore.pyi
|
||||
vmove ${py3_sitelib}/PyQt5/QtWebEngineCore.so
|
||||
vmove ${py3_sitelib}/PyQt5/QtWebEngineWidgets.pyi
|
||||
vmove ${py3_sitelib}/PyQt5/QtWebEngineWidgets.so
|
||||
}
|
||||
}
|
1
srcpkgs/python-PyQt5-webengine/update
Normal file
1
srcpkgs/python-PyQt5-webengine/update
Normal file
|
@ -0,0 +1 @@
|
|||
pkgname="PyQtWebEngine_gpl"
|
|
@ -1 +1 @@
|
|||
python-PyQt5
|
||||
python-PyQt5-webengine
|
Loading…
Reference in a new issue