mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-05 12:22:57 +02:00
python-PyQt4: split dbus into -dbus subpkgs
This commit is contained in:
parent
cdcc14962c
commit
651115b540
3 changed files with 37 additions and 33 deletions
1
srcpkgs/python-PyQt4-dbus
Symbolic link
1
srcpkgs/python-PyQt4-dbus
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-PyQt4
|
|
@ -1,12 +1,12 @@
|
||||||
# Template file for 'python-PyQt4'
|
# Template file for 'python-PyQt4'
|
||||||
pkgname=python-PyQt4
|
pkgname=python-PyQt4
|
||||||
version=4.11.3
|
version=4.11.3
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="PyQt-x11-gpl-${version}"
|
wrksrc="PyQt-x11-gpl-${version}"
|
||||||
hostmakedepends="pkg-config python-devel python3.4-devel"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="${hostmakedepends} python-sip-devel python3.4-sip-devel
|
makedepends="python-devel python3.4-devel python-sip-devel python3.4-sip-devel
|
||||||
qt-qmake qt-devel dbus-devel python-dbus-devel MesaLib-devel phonon-devel"
|
qt-devel dbus-devel python-dbus-devel MesaLib-devel phonon-devel"
|
||||||
depends="python-sip python-dbus"
|
depends="python-sip"
|
||||||
replaces="python-PyQt4<4.11.1_2"
|
replaces="python-PyQt4<4.11.1_2"
|
||||||
short_desc="Python2 bindings for the Qt4 toolkit"
|
short_desc="Python2 bindings for the Qt4 toolkit"
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
|
@ -17,70 +17,60 @@ distfiles="${SOURCEFORGE_SITE}/pyqt/PyQt-x11-gpl-${version}.tar.gz"
|
||||||
checksum=853780dcdbe2e6ba785d703d059b096e1fc49369d3e8d41a060be874b8745686
|
checksum=853780dcdbe2e6ba785d703d059b096e1fc49369d3e8d41a060be874b8745686
|
||||||
|
|
||||||
_do_pyqt4_build() {
|
_do_pyqt4_build() {
|
||||||
local pyver=${1:-2.7} pysufx= tools=
|
local pyver=${1:-2.7} tools=
|
||||||
|
|
||||||
if [ "$pyver" != "2.7" ]; then
|
if [ "$pyver" != "2.7" ]; then
|
||||||
pysufx="m"
|
|
||||||
tools="--no-tools"
|
tools="--no-tools"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
python${pyver} configure-ng.py --confirm-license --assume-shared $tools \
|
python${pyver} configure-ng.py --confirm-license --assume-shared $tools \
|
||||||
CC="${CC}" CFLAGS="${CFLAGS}" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
CC="${CC}" CFLAGS="${CFLAGS}" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
||||||
LINK="${CXX}" LINK_SHLIB="${CXX}" LFLAGS="${LDFLAGS}" STRIP="" \
|
LINK="${CXX}" LINK_SHLIB="${CXX}" LFLAGS="${LDFLAGS}" STRIP=""
|
||||||
INCDIR="${XBPS_CROSS_BASE}/usr/include/python${pyver}${pysufx}"
|
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
}
|
}
|
||||||
|
|
||||||
post_extract() {
|
|
||||||
cp -a ${wrksrc} /tmp/python3.4-PyQt4-build
|
|
||||||
mv /tmp/python3.4-PyQt4-build ${wrksrc}
|
|
||||||
}
|
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
rm -rf pyuic/uic/port_v3
|
mkdir -p pyqt4
|
||||||
cd ${wrksrc}/python3.4-PyQt4-build
|
mv * pyqt4 || true
|
||||||
rm -rf pyuic/uic/port_v2
|
cp -a pyqt4 pyqt4-3.4
|
||||||
|
rm -rf ${wrksrc}/pyqt4/pyuic/uic/port_v3
|
||||||
|
rm -rf ${wrksrc}/pyqt4-3.4/pyuic/uic/port_v2
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
# build python-pyqt4
|
# build python-pyqt4
|
||||||
cd ${wrksrc}
|
cd ${wrksrc}/pyqt4
|
||||||
_do_pyqt4_build
|
_do_pyqt4_build
|
||||||
|
|
||||||
# build python3.4-pyqt4
|
# build python3.4-pyqt4
|
||||||
cd ${wrksrc}/python3.4-PyQt4-build
|
cd ${wrksrc}/pyqt4-3.4
|
||||||
_do_pyqt4_build 3.4
|
_do_pyqt4_build 3.4
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
# install python-pyqt4
|
# install python-pyqt4
|
||||||
make DESTDIR=${DESTDIR} INSTALL_ROOT=${DESTDIR} install
|
make -C pyqt4 DESTDIR=${DESTDIR} INSTALL_ROOT=${DESTDIR} install
|
||||||
|
|
||||||
# install python3.4-pyqt4
|
# install python3.4-pyqt4
|
||||||
cd ${wrksrc}/python3.4-PyQt4-build
|
make -C pyqt4-3.4 DESTDIR=${DESTDIR} INSTALL_ROOT=${DESTDIR} install
|
||||||
make DESTDIR=${DESTDIR} INSTALL_ROOT=${DESTDIR} install
|
|
||||||
|
|
||||||
# install doc
|
# install doc
|
||||||
|
cd ${wrksrc}/pyqt4
|
||||||
vmkdir usr/share/doc/${pkgname}
|
vmkdir usr/share/doc/${pkgname}
|
||||||
vcopy "doc/html examples" usr/share/doc/${pkgname}
|
vcopy "doc/html examples" usr/share/doc/${pkgname}
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# install python3-pyuic4 wrapper
|
# install python3-pyuic4 wrapper
|
||||||
|
cd ${wrksrc}/pyqt4
|
||||||
sed -i 's,python2.7,python3.4,g' pyuic4
|
sed -i 's,python2.7,python3.4,g' pyuic4
|
||||||
vbin pyuic4 python3-pyuic4
|
vbin pyuic4 python3-pyuic4
|
||||||
}
|
}
|
||||||
|
|
||||||
python-PyQt4-devel-tools_package() {
|
python-PyQt4-devel-tools_package() {
|
||||||
replaces="python-PyQt4<4.11.1_2"
|
replaces="python-PyQt4<4.11.1_2"
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
|
||||||
short_desc+=" - development tools"
|
short_desc+=" - development tools"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/pylupdate4
|
vmove usr/bin/pylupdate4
|
||||||
vmove usr/bin/pyrcc4
|
vmove usr/bin/pyrcc4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
python-PyQt4-devel_package() {
|
python-PyQt4-devel_package() {
|
||||||
replaces="python-PyQt4<4.11.1_2"
|
replaces="python-PyQt4<4.11.1_2"
|
||||||
depends="python-sip-devel python3.4-sip-devel
|
depends="python-sip-devel python3.4-sip-devel
|
||||||
|
@ -90,7 +80,14 @@ python-PyQt4-devel_package() {
|
||||||
vmove usr/share/sip
|
vmove usr/share/sip
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
python-PyQt4-dbus_package() {
|
||||||
|
replaces="python-PyQt4<4.11.3_1"
|
||||||
|
depends="${sourcepkg}>=${version}_${revision} python-dbus"
|
||||||
|
short_desc+=" - D-Bus support for PyQt4"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/python2.7/site-packages/dbus/mainloop/qt.so
|
||||||
|
}
|
||||||
|
}
|
||||||
python-PyQt4-phonon_package() {
|
python-PyQt4-phonon_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - Python2 bindings for Phonon"
|
short_desc+=" - Python2 bindings for Phonon"
|
||||||
|
@ -98,7 +95,6 @@ python-PyQt4-phonon_package() {
|
||||||
vmove usr/lib/python2.7/site-packages/PyQt4/phonon.so
|
vmove usr/lib/python2.7/site-packages/PyQt4/phonon.so
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
python-PyQt4-doc_package() {
|
python-PyQt4-doc_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
replaces="python-PyQt4<4.11.1_2"
|
replaces="python-PyQt4<4.11.1_2"
|
||||||
|
@ -107,17 +103,23 @@ python-PyQt4-doc_package() {
|
||||||
vmove usr/share/doc
|
vmove usr/share/doc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-PyQt4_package() {
|
python3.4-PyQt4_package() {
|
||||||
replaces="python3.4-PyQt4<4.11.1_2"
|
replaces="python3.4-PyQt4<4.11.1_2"
|
||||||
depends="python3.4-sip python3.4-dbus"
|
depends="python3.4-sip"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/python3-pyuic4
|
vmove usr/bin/python3-pyuic4
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
python3.4-PyQt4-dbus_package() {
|
||||||
|
replaces="python3.4-PyQt4<4.11.3_1"
|
||||||
|
depends="python3.4-PyQt4>=${version}_${revision} python3.4-dbus"
|
||||||
|
short_desc+=" - D-Bus support for PyQt4 with Python3.4"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/python3.4/site-packages/dbus/mainloop/qt.so
|
||||||
|
}
|
||||||
|
}
|
||||||
python3.4-PyQt4-phonon_package() {
|
python3.4-PyQt4-phonon_package() {
|
||||||
depends="python3.4-PyQt4>=${version}_${revision}"
|
depends="python3.4-PyQt4>=${version}_${revision}"
|
||||||
short_desc+=" - Python3.4 bindings for Phonon"
|
short_desc+=" - Python3.4 bindings for Phonon"
|
||||||
|
|
1
srcpkgs/python3.4-PyQt4-dbus
Symbolic link
1
srcpkgs/python3.4-PyQt4-dbus
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-PyQt4
|
Loading…
Add table
Reference in a new issue