mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 23:23:51 +02:00
python3-PyQt5: update to 5.15.5.
This commit is contained in:
parent
d20e87e1b4
commit
5518ca7350
1 changed files with 6 additions and 34 deletions
|
@ -1,10 +1,12 @@
|
||||||
# Template file for 'python3-PyQt5'
|
# Template file for 'python3-PyQt5'
|
||||||
pkgname=python3-PyQt5
|
pkgname=python3-PyQt5
|
||||||
version=5.15.4
|
version=5.15.5
|
||||||
revision=2
|
revision=1
|
||||||
_sipver=12.8.0
|
_sipver=12.8.0
|
||||||
wrksrc="PyQt5-${version}"
|
wrksrc="PyQt5-${version}"
|
||||||
build_helper="qemu qmake"
|
build_style=sip-build
|
||||||
|
build_helper=qemu
|
||||||
|
configure_args="--confirm-license"
|
||||||
hostmakedepends="pkg-config python3-PyQt-builder qt5-qmake qt5-host-tools
|
hostmakedepends="pkg-config python3-PyQt-builder qt5-qmake qt5-host-tools
|
||||||
python3-dbus"
|
python3-dbus"
|
||||||
makedepends="qscintilla-qt5-devel python3-sip-PyQt5
|
makedepends="qscintilla-qt5-devel python3-sip-PyQt5
|
||||||
|
@ -19,10 +21,8 @@ maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
||||||
license="GPL-3.0-only"
|
license="GPL-3.0-only"
|
||||||
homepage="https://riverbankcomputing.com/software/pyqt/intro"
|
homepage="https://riverbankcomputing.com/software/pyqt/intro"
|
||||||
distfiles="${PYPI_SITE}/P/PyQt5/PyQt5-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/P/PyQt5/PyQt5-${version}.tar.gz"
|
||||||
checksum=2a69597e0dd11caabe75fae133feca66387819fc9bc050f547e5551bce97e5be
|
checksum=b411b7a8fa03901c9feb1dcbac7ea1fc3ce20b9ae682762b777cd5398749ca2b
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
CFLAGS=-I$XBPS_CROSS_BASE/usr/include/python$py3_ver
|
|
||||||
CXXFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
export INCPATH=$XBPS_CROSS_BASE/usr/include/python$py3_ver
|
export INCPATH=$XBPS_CROSS_BASE/usr/include/python$py3_ver
|
||||||
|
|
||||||
|
@ -30,38 +30,10 @@ post_extract() {
|
||||||
rm -rf pyuic/uic/port_v2
|
rm -rf pyuic/uic/port_v2
|
||||||
}
|
}
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
mkdir -p build
|
|
||||||
sip-build --confirm-license --no-make \
|
|
||||||
--api-dir /usr/share/qt5/qsci/api/python \
|
|
||||||
--build-dir build
|
|
||||||
|
|
||||||
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"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
do_build() {
|
|
||||||
make -C build ${makejobs}
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
make -C build DESTDIR=${DESTDIR} INSTALL_ROOT=${DESTDIR} install
|
|
||||||
for f in pylupdate5 pyrcc5 pyuic5; do
|
|
||||||
mv ${DESTDIR}/usr/bin/{,python3-}${f}
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
python3-PyQt5-devel-tools_package() {
|
python3-PyQt5-devel-tools_package() {
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
depends="python3-PyQt5>=${version}_${revision}"
|
depends="python3-PyQt5>=${version}_${revision}"
|
||||||
short_desc+=" - development tools"
|
short_desc+=" - development tools"
|
||||||
alternatives="
|
|
||||||
pyqt5:pylupdate5:/usr/bin/python3-pylupdate5
|
|
||||||
pyqt5:pyrcc5:/usr/bin/python3-pyrcc5
|
|
||||||
pyqt5:pyuic5:/usr/bin/python3-pyuic5"
|
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin
|
vmove usr/bin
|
||||||
vmove "${py3_sitelib}/PyQt5/pylupdate*"
|
vmove "${py3_sitelib}/PyQt5/pylupdate*"
|
||||||
|
|
Loading…
Add table
Reference in a new issue