python3-PyQt5: update to 5.15.3.
This commit is contained in:
parent
7779138277
commit
e7014f682e
2 changed files with 31 additions and 167 deletions
|
@ -1 +0,0 @@
|
|||
python3-PyQt5
|
|
@ -1,158 +1,36 @@
|
|||
# Template file for 'python3-PyQt5'
|
||||
pkgname=python3-PyQt5
|
||||
version=5.15.2
|
||||
revision=3
|
||||
version=5.15.3
|
||||
revision=1
|
||||
_sipver=12.8.0
|
||||
wrksrc="PyQt5-${version}"
|
||||
build_helper=qemu
|
||||
hostmakedepends="pkg-config python3-PyQt-builder qt5-host-tools qt5-qmake
|
||||
build_helper="qemu qmake"
|
||||
hostmakedepends="pkg-config python3-PyQt-builder qt5-qmake qt5-host-tools
|
||||
python3-dbus"
|
||||
makedepends="qscintilla-qt5-devel python3-sip-PyQt5
|
||||
python3-devel python-dbus-devel qt5 qt5-devel qt5-tools-devel
|
||||
qt5-connectivity-devel qt5-declarative-devel qt5-location-devel
|
||||
qt5-multimedia-devel qt5-qmake qt5-sensors-devel qt5-serialport-devel
|
||||
qt5-svg-devel qt5-webchannel-devel qt5-webkit-devel qt5-websockets-devel
|
||||
qt5-x11extras-devel qt5-xmlpatterns-devel qt5-networkauth-devel pulseaudio-devel"
|
||||
qt5-x11extras-devel qt5-xmlpatterns-devel pulseaudio-devel"
|
||||
depends="python3-sip-PyQt5>=${_sipver}"
|
||||
short_desc="Python 3 bindings for the Qt5 toolkit"
|
||||
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
||||
license="GPL-3.0-only"
|
||||
homepage="https://riverbankcomputing.com/software/pyqt/intro"
|
||||
distfiles="${PYPI_SITE}/P/PyQt5/PyQt5-${version}.tar.gz"
|
||||
checksum=372b08dc9321d1201e4690182697c5e7ffb2e0770e6b4a45519025134b12e4fc
|
||||
checksum=965ba50e7029b37f218a54ace24e87c77db3e5a9f0b83baeb21fb57b4154b838
|
||||
lib32disabled=yes
|
||||
CFLAGS=-I$XBPS_CROSS_BASE/usr/include/python$py3_ver
|
||||
CXXFLAGS="$CFLAGS"
|
||||
|
||||
export INCPATH=$XBPS_CROSS_BASE/usr/include/python$py3_ver
|
||||
|
||||
post_extract() {
|
||||
rm -rf pyuic/uic/port_v2
|
||||
}
|
||||
|
||||
_cross_configure() {
|
||||
local qplatformdefs="/usr/lib/qt5/mkspecs/linux-g++/qplatformdefs.h"
|
||||
|
||||
mkdir -p "${wrksrc}/.target-spec/linux-g++"
|
||||
cat >"${wrksrc}/.target-spec/linux-g++/qmake.conf" <<-_EOF
|
||||
MAKEFILE_GENERATOR = UNIX
|
||||
CONFIG += incremental no_qt_rpath
|
||||
QMAKE_INCREMENTAL_STYLE = sublib
|
||||
|
||||
include(/usr/lib/qt5/mkspecs/common/linux.conf)
|
||||
include(/usr/lib/qt5/mkspecs/common/gcc-base-unix.conf)
|
||||
include(/usr/lib/qt5/mkspecs/common/g++-unix.conf)
|
||||
|
||||
QMAKE_TARGET_CONFIG = ${XBPS_CROSS_BASE}/usr/lib/qt5/mkspecs/qconfig.pri
|
||||
QMAKE_TARGET_MODULE = ${XBPS_CROSS_BASE}/usr/lib/qt5/mkspecs/qmodule.pri
|
||||
QMAKEMODULES = ${XBPS_CROSS_BASE}/usr/lib/qt5/mkspecs/modules
|
||||
QMAKE_CC = ${CC}
|
||||
QMAKE_CXX = ${CXX}
|
||||
QMAKE_LINK = ${CXX}
|
||||
QMAKE_LINK_C = ${CC}
|
||||
QMAKE_LINK_SHLIB = ${CXX}
|
||||
|
||||
QMAKE_AR = ${XBPS_CROSS_TRIPLET}-gcc-ar cqs
|
||||
QMAKE_OBJCOPY = ${OBJCOPY}
|
||||
QMAKE_NM = ${NM} -P
|
||||
QMAKE_STRIP = ${STRIP}
|
||||
|
||||
QMAKE_CFLAGS = ${CFLAGS}
|
||||
QMAKE_CXXFLAGS = ${CXXFLAGS}
|
||||
QMAKE_LFLAGS = ${LDFLAGS}
|
||||
INCPATH = $XBPS_CROSS_BASE/usr/include/python$py3_ver
|
||||
load(qt_config)
|
||||
_EOF
|
||||
ln -sf ${XBPS_CROSS_BASE}$qplatformdefs ${wrksrc}/.target-spec/linux-g++/
|
||||
|
||||
mkdir -p "${wrksrc}/.host-spec/linux-g++"
|
||||
cat > "${wrksrc}/.host-spec/linux-g++/qmake.conf" <<-_EOF
|
||||
MAKEFILE_GENERATOR = UNIX
|
||||
CONFIG += incremental no_qt_rpath
|
||||
QMAKE_INCREMENTAL_STYLE = sublib
|
||||
|
||||
include(/usr/lib/qt5/mkspecs/common/linux.conf)
|
||||
include(/usr/lib/qt5/mkspecs/common/gcc-base-unix.conf)
|
||||
include(/usr/lib/qt5/mkspecs/common/g++-unix.conf)
|
||||
|
||||
QMAKE_TARGET_CONFIG = ${XBPS_CROSS_BASE}/usr/lib/qt5/mkspecs/qconfig.pri
|
||||
QMAKE_TARGET_MODULE = ${XBPS_CROSS_BASE}/usr/lib/qt5/mkspecs/qmodule.pri
|
||||
QMAKE_CC = ${CC_FOR_BUILD}
|
||||
QMAKE_CXX = ${CXX_FOR_BUILD}
|
||||
QMAKE_LINK = ${CXX_FOR_BUILD}
|
||||
QMAKE_LINK_C = ${CC_FOR_BUILD}
|
||||
QMAKE_LINK_SHLIB = ${CXX_FOR_BUILD}
|
||||
|
||||
QMAKE_AR = gcc-ar cqs
|
||||
QMAKE_OBJCOPY = ${OBJCOPY_FOR_BUILD}
|
||||
QMAKE_NM = ${NM_FOR_BUILD} -P
|
||||
QMAKE_STRIP = ${STRIP_FOR_BUILD}
|
||||
|
||||
QMAKE_CFLAGS = ${CFLAGS_FOR_BUILD}
|
||||
QMAKE_CXXFLAGS = ${CXXFLAGS_FOR_BUILD}
|
||||
QMAKE_LFLAGS = ${LDFLAGS_FOR_BUILD}
|
||||
load(qt_config)
|
||||
_EOF
|
||||
ln -sf $qplatformdefs ${wrksrc}/.host-spec/linux-g++/
|
||||
|
||||
cat >"${wrksrc}/qt.conf" <<-_EOF
|
||||
[Paths]
|
||||
Sysroot=${XBPS_CROSS_BASE}
|
||||
Prefix=/usr
|
||||
ArchData=/usr/lib/qt5
|
||||
Data=/usr/share/qt5
|
||||
Documentation=/usr/share/doc/qt5
|
||||
Headers=${XBPS_CROSS_BASE}/usr/include/qt5
|
||||
Libraries=${XBPS_CROSS_BASE}/usr/lib
|
||||
LibraryExecutables=/usr/lib/qt5/libexec
|
||||
Binaries=/usr/lib/qt5/bin
|
||||
Tests=${XBPS_CROSS_BASE}/usr/tests
|
||||
Plugins=/usr/lib/qt5/plugins
|
||||
Imports=${XBPS_CROSS_BASE}/usr/lib/qt5/imports
|
||||
Qml2Imports=${XBPS_CROSS_BASE}/usr/lib/qt5/qml
|
||||
Translations=${XBPS_CROSS_BASE}/usr/share/qt5/translations
|
||||
Settings=${XBPS_CROSS_BASE}/etc/xdg
|
||||
Examples=${XBPS_CROSS_BASE}/usr/share/qt5/examples
|
||||
HostPrefix=/usr
|
||||
HostData=/usr/lib/qt5
|
||||
HostBinaries=/usr/lib/qt5/bin
|
||||
HostLibraries=/usr/lib
|
||||
Spec=$wrksrc/.host-spec/linux-g++
|
||||
TargetSpec=$wrksrc/.target-spec/linux-g++
|
||||
_EOF
|
||||
|
||||
case $XBPS_TARGET_MACHINE in
|
||||
i686*) _qt_arch=i386;;
|
||||
x86_64*) _qt_arch=x86_64;;
|
||||
aarch64*) _qt_arch=arm64;;
|
||||
arm*) _qt_arch=arm;;
|
||||
mips*) _qt_arch=mips;;
|
||||
esac
|
||||
cat >$XBPS_WRAPPERDIR/qmake <<_EOF
|
||||
#!/bin/sh
|
||||
export PREFIX=/usr
|
||||
export QT_INSTALL_PREFIX=/usr
|
||||
export LIB=/usr/lib
|
||||
export QT_TARGET_ARCH=$_qt_arch
|
||||
export PKG_CONFIG_EXECUTABLE=$XBPS_WRAPPERDIR/$PKG_CONFIG
|
||||
case " \$* " in
|
||||
" -query ")
|
||||
/usr/lib/qt5/bin/qmake "\$@" -qtconf $wrksrc/qt.conf |
|
||||
sed '/^QT_INSTALL_/s,$XBPS_CROSS_BASE,,'
|
||||
;;
|
||||
*)
|
||||
exec /usr/lib/qt5/bin/qmake -qtconf $wrksrc/qt.conf "\$@" ;;
|
||||
esac
|
||||
_EOF
|
||||
}
|
||||
|
||||
do_configure() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
_cross_configure
|
||||
else
|
||||
cat >$XBPS_WRAPPERDIR/qmake <<-'_EOF'
|
||||
#!/bin/sh
|
||||
exec /usr/lib/qt5/bin/qmake "$@" CONFIG+=no_qt_rpath
|
||||
_EOF
|
||||
fi
|
||||
chmod +x $XBPS_WRAPPERDIR/qmake
|
||||
|
||||
mkdir -p build
|
||||
sip-build --confirm-license --no-make \
|
||||
--api-dir /usr/share/qt5/qsci/api/python \
|
||||
|
@ -161,29 +39,24 @@ do_configure() {
|
|||
if [ "$CROSS_BUILD" ]; then
|
||||
# -I/usr/include/python$py3_ver is set by sip-build :(
|
||||
find build -name Makefile |
|
||||
xargs sed -i "
|
||||
s,-I\\(/usr/include\\),-I$XBPS_CROSS_BASE\\1,g
|
||||
"
|
||||
xargs sed -i "s,-I\\(/usr/include\\),-I$XBPS_CROSS_BASE\\1,g"
|
||||
fi
|
||||
}
|
||||
|
||||
do_build() {
|
||||
cd build
|
||||
make ${makejobs}
|
||||
make -C build ${makejobs}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
cd build
|
||||
make DESTDIR=${DESTDIR} INSTALL_ROOT=${DESTDIR} install
|
||||
make -C build DESTDIR=${DESTDIR} INSTALL_ROOT=${DESTDIR} install
|
||||
for f in pylupdate5 pyrcc5 pyuic5; do
|
||||
sed -i '1s,python3[.0-9]*,python3,' ${DESTDIR}/usr/bin/${f}
|
||||
mv ${DESTDIR}/usr/bin/{,python3-}${f}
|
||||
done
|
||||
}
|
||||
|
||||
python3-PyQt5-devel-tools_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc+=" - development tools"
|
||||
alternatives="
|
||||
pyqt5:pylupdate5:/usr/bin/python3-pylupdate5
|
||||
|
@ -196,7 +69,7 @@ python3-PyQt5-devel-tools_package() {
|
|||
}
|
||||
}
|
||||
python3-PyQt5-devel_package() {
|
||||
depends="sip>=6.0.0 python3-PyQt5-${version}_${revision}"
|
||||
depends="sip>=6.0.0 python3-PyQt5>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove ${py3_sitelib}/PyQt5/bindings
|
||||
|
@ -204,7 +77,7 @@ python3-PyQt5-devel_package() {
|
|||
}
|
||||
python3-PyQt5-dbus_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision} python3-dbus"
|
||||
depends="python3-PyQt5>=${version}_${revision} python3-dbus"
|
||||
short_desc="${short_desc} - dbus support"
|
||||
pkg_install() {
|
||||
vmove ${py3_sitelib}/dbus
|
||||
|
@ -212,7 +85,7 @@ python3-PyQt5-dbus_package() {
|
|||
}
|
||||
python3-PyQt5-connectivity_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc="${short_desc} - connectivity module"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtBluetooth.*"
|
||||
|
@ -221,24 +94,16 @@ python3-PyQt5-connectivity_package() {
|
|||
}
|
||||
python3-PyQt5-multimedia_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc="${short_desc} - multimedia module"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtMultimedia.*"
|
||||
vmove "${py3_sitelib}/PyQt5/QtMultimediaWidgets.*"
|
||||
}
|
||||
}
|
||||
python3-PyQt5-networkauth_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
short_desc="${short_desc} - networkauth module"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtNetworkAuth.*"
|
||||
}
|
||||
}
|
||||
python3-PyQt5-opengl_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc="${short_desc} - opengl module"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtOpenGL.*"
|
||||
|
@ -249,7 +114,7 @@ python3-PyQt5-opengl_package() {
|
|||
}
|
||||
python3-PyQt5-location_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc="${short_desc} - location module"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtLocation.*"
|
||||
|
@ -258,7 +123,7 @@ python3-PyQt5-location_package() {
|
|||
}
|
||||
python3-PyQt5-quick_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc="${short_desc} - quick module"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtQml.*"
|
||||
|
@ -269,7 +134,7 @@ python3-PyQt5-quick_package() {
|
|||
}
|
||||
python3-PyQt5-sensors_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc="${short_desc} - sensors module"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtSensors.*"
|
||||
|
@ -277,7 +142,7 @@ python3-PyQt5-sensors_package() {
|
|||
}
|
||||
python3-PyQt5-serialport_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc="${short_desc} - serialport module"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtSerialPort.*"
|
||||
|
@ -285,7 +150,7 @@ python3-PyQt5-serialport_package() {
|
|||
}
|
||||
python3-PyQt5-sql_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc="${short_desc} - sql module"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtSql.*"
|
||||
|
@ -293,7 +158,7 @@ python3-PyQt5-sql_package() {
|
|||
}
|
||||
python3-PyQt5-svg_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc="${short_desc} - svg module"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtSvg.*"
|
||||
|
@ -301,7 +166,7 @@ python3-PyQt5-svg_package() {
|
|||
}
|
||||
python3-PyQt5-tools_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc="${short_desc} - designer, help modules"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtHelp.*"
|
||||
|
@ -311,7 +176,7 @@ python3-PyQt5-tools_package() {
|
|||
}
|
||||
python3-PyQt5-webchannel_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc="${short_desc} - webchannel module"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtWebChannel.*"
|
||||
|
@ -319,7 +184,7 @@ python3-PyQt5-webchannel_package() {
|
|||
}
|
||||
python3-PyQt5-webkit_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc="${short_desc} - webkit module"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtWebKit.*"
|
||||
|
@ -328,7 +193,7 @@ python3-PyQt5-webkit_package() {
|
|||
}
|
||||
python3-PyQt5-websockets_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc="${short_desc} - websockets module"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtWebSockets.*"
|
||||
|
@ -336,7 +201,7 @@ python3-PyQt5-websockets_package() {
|
|||
}
|
||||
python3-PyQt5-x11extras_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc="${short_desc} - x11extras module"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtX11Extras.*"
|
||||
|
@ -344,7 +209,7 @@ python3-PyQt5-x11extras_package() {
|
|||
}
|
||||
python3-PyQt5-xmlpatterns_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3-PyQt5-${version}_${revision}"
|
||||
depends="python3-PyQt5>=${version}_${revision}"
|
||||
short_desc="${short_desc} - xmlpatterns module"
|
||||
pkg_install() {
|
||||
vmove "${py3_sitelib}/PyQt5/QtXmlPatterns.*"
|
||||
|
|
Loading…
Reference in a new issue