python-PyQt5-webengine: mark nocross due to broken package configure script

This commit is contained in:
Andrew J. Hesford 2020-07-13 14:47:35 -04:00 committed by Andrew J. Hesford
parent bf7563e8d7
commit e42c1c1e83

View file

@ -1,14 +1,11 @@
# Template file for 'python-PyQt5-webengine'
pkgname=python-PyQt5-webengine
version=5.13.2
revision=2
revision=3
wrksrc="PyQtWebEngine-${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/}"
hostmakedepends="pkg-config qt5-qmake python python-PyQt5 python3-PyQt5"
makedepends="qt5-declarative-devel qt5-webchannel-devel qt5-location-devel
qt5-webengine-devel python-devel python3-devel python-PyQt5-devel"
depends="python-PyQt5-${version}_${revision} python-PyQt5-webchannel-${version}_${revision}"
short_desc="Python2 bindings for the Qt5 toolkit - webengine module"
maintainer="Alessio Sergi <al3hex@gmail.com>"
@ -17,12 +14,12 @@ homepage="https://www.riverbankcomputing.com/software/pyqtwebengine/intro"
distfiles="https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/${version}/PyQtWebEngine-${version}.tar.gz"
checksum=4264911b5847c75721d8c9c30af92e58a216bd25ceef37f7abf921005c1d45a9
lib32disabled=yes
nocross="configure script is broken for cross builds"
case "$XBPS_TARGET_MACHINE" in
ppc64le*) ;;
ppc*) broken="no webengine for big endian ppc";;
arm*) broken="depends on qt5-webengine";;
aarch64*) broken="https://build.voidlinux.org/builders/aarch64_builder/builds/20955/steps/shell_3/logs/stdio";;
esac
pre_build() {
@ -34,34 +31,15 @@ pre_build() {
}
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
python${pyver} configure.py --no-dist-info \
QMAKE_CC="${CC}" QMAKE_CFLAGS="${CFLAGS}" \
QMAKE_CXX="${CXX}" QMAKE_CXXFLAGS="${CXXFLAGS}" \
QMAKE_LINK="${CXX}" QMAKE_LINK_SHLIB="${CXX}"
QMAKE_LFLAGS="${LDFLAGS}" QMAKE_STRIP=""
[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
}