From 922e8adb3b3db27526453fca8a1b2800b9bfcb1a Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Wed, 11 Apr 2018 19:40:11 +0200 Subject: [PATCH] python-PyQt5: update to 5.10.1 --- ...hon-PyQt5-doc => python-PyQt5-networkauth} | 0 .../python-PyQt5/patches/configure.py.patch | 20 -- srcpkgs/python-PyQt5/template | 184 +++++++++--------- srcpkgs/python3-PyQt5-networkauth | 1 + 4 files changed, 94 insertions(+), 111 deletions(-) rename srcpkgs/{python-PyQt5-doc => python-PyQt5-networkauth} (100%) delete mode 100644 srcpkgs/python-PyQt5/patches/configure.py.patch create mode 120000 srcpkgs/python3-PyQt5-networkauth diff --git a/srcpkgs/python-PyQt5-doc b/srcpkgs/python-PyQt5-networkauth similarity index 100% rename from srcpkgs/python-PyQt5-doc rename to srcpkgs/python-PyQt5-networkauth diff --git a/srcpkgs/python-PyQt5/patches/configure.py.patch b/srcpkgs/python-PyQt5/patches/configure.py.patch deleted file mode 100644 index ffa325ccda..0000000000 --- a/srcpkgs/python-PyQt5/patches/configure.py.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- configure.py.orig 2017-03-30 10:46:57.000000000 +0200 -+++ configure.py 2017-12-17 14:51:45.159142941 +0100 -@@ -2276,6 +2276,7 @@ - name_pro = name + '.pro' - name_makefile = name + '.mk' - name_source = name + '.cpp' -+ name_inc = name + '.inc' - - # Create the .pro file. - pro_lines = [] -@@ -2283,6 +2284,9 @@ - pro_lines.append('TARGET = %s' % name) - pro_lines.append('SOURCES = %s' % name_source) - -+ if (os.path.isfile(name_inc)): -+ pro_lines.append('include(%s)' % name_inc) -+ - f = open_for_writing(name_pro) - f.write('\n'.join(pro_lines)) - f.close() diff --git a/srcpkgs/python-PyQt5/template b/srcpkgs/python-PyQt5/template index 521971653d..2ac873b77d 100644 --- a/srcpkgs/python-PyQt5/template +++ b/srcpkgs/python-PyQt5/template @@ -1,33 +1,26 @@ # Template file for 'python-PyQt5' pkgname=python-PyQt5 -version=5.8.2 -revision=3 +version=5.10.1 +revision=1 +_sipver=4.19.4 lib32disabled=yes wrksrc="PyQt5_gpl-${version}" -replaces="python-PyQt5-enginio<5.7_1" -hostmakedepends="pkg-config" -makedepends=" +replaces="python-PyQt5-doc<5.10.1" +pycompile_module="PyQt5" +hostmakedepends="pkg-config python-devel python3-devel python-sip-devel python3-sip-devel python-dbus-devel qt5-tools-devel qt5-connectivity-devel qt5-declarative-devel qt5-location-devel qt5-multimedia-devel qt5-sensors-devel qt5-serialport-devel qt5-svg-devel qt5-webchannel-devel qt5-webengine-devel qt5-webkit-devel qt5-websockets-devel - qt5-x11extras-devel qt5-xmlpatterns-devel pulseaudio-devel" -depends="python-sip" -pycompile_module="PyQt5" + qt5-x11extras-devel qt5-xmlpatterns-devel qt5-networkauth-devel pulseaudio-devel" +makedepends="${hostmakedepends/pkg-config/}" +depends="python-sip>=${_sipver}" short_desc="Python2 bindings for the Qt5 toolkit" maintainer="Alessio Sergi " -homepage="http://www.riverbankcomputing.co.uk/software/pyqt/intro" +homepage="https://riverbankcomputing.com/software/pyqt/intro" license="GPL-3" distfiles="${SOURCEFORGE_SITE}/pyqt/PyQt5_gpl-${version}.tar.gz" -checksum=ebd70515b30bbd6098fee29e6271a6696b1183c5530ee30e6ba9aaab195536e8 - -if [ -n "$CROSS_BUILD" ]; then - hostmakedepends+=" python python3 sip python-dbus-devel - qt5-tools-devel qt5-connectivity-devel qt5-declarative-devel qt5-location-devel - qt5-multimedia-devel qt5-sensors-devel qt5-serialport-devel qt5-svg-devel - qt5-webchannel-devel qt5-webengine-devel qt5-webkit-devel qt5-websockets-devel - qt5-x11extras-devel qt5-xmlpatterns-devel" -fi +checksum=9932e971e825ece4ea08f84ad95017837fa8f3f29c6b0496985fa1093661e9ef pre_build() { mkdir -p pyqt5-${py2_ver} @@ -37,40 +30,40 @@ pre_build() { rm -rf pyqt5-${py3_ver}/pyuic/uic/port_v2 } do_build() { - local tools= - + local _sysroot= _configuration= py_abiver= for pyver in $py2_ver $py3_ver; do - cd $wrksrc/pyqt5-$pyver - - if [ -n "$CROSS_BUILD" ]; then -cat > qtdetail.inc << END -QMAKE_CC="$CC_host" -QMAKE_CFLAGS="$CFLAGS_host" -QMAKE_CXX="$CXX_host" -QMAKE_CXXFLAGS="$CXXFLAGS_host" -QMAKE_LINK="$CXX_host" -QMAKE_LINK_SHLIB= -QMAKE_LFLAGS= -END - - # target opengl features aren’t detected when cross compiling - case "$XBPS_TARGET_MACHINE" in - arm*|aarch64*) sed -i -e "/self.pyqt_disabled_features = lines\[1:-1\]/a \ - \ self.pyqt_disabled_features.append('PyQt_Desktop_OpenGL')" configure.py ;; - esac - - # configure.py stops when $XBPS_CROSS_BASE is empty in a - # native build; so only set sysroot when cross compiling - _sysroot="--sysroot=$XBPS_CROSS_BASE" - else - unset _sysroot + if [ "$pyver" = "$py3_ver" ]; then + py_abiver="$py3_abiver" fi - python${pyver} configure.py --confirm-license --assume-shared $_sysroot \ + cd $wrksrc/pyqt5-$pyver + if [ "$CROSS_BUILD" ]; then +cat > pyqt5_${XBPS_CROSS_TRIPLET}.cfg <