python-pyside: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkgs into dummy pkgs.
This commit is contained in:
parent
29032cfb18
commit
4c19a10fca
|
@ -0,0 +1 @@
|
||||||
|
python-pyside
|
|
@ -0,0 +1 @@
|
||||||
|
python-pyside
|
|
@ -1,16 +1,14 @@
|
||||||
# Template file for 'python-pyside'
|
# Template file for 'python-pyside'
|
||||||
pkgname=python-pyside
|
pkgname=python-pyside
|
||||||
version=1.2.2
|
version=1.2.2
|
||||||
revision=4
|
revision=5
|
||||||
wrksrc="pyside-qt4.8+${version}"
|
wrksrc="pyside-qt4.8+${version}"
|
||||||
python_versions="2.7 3.4"
|
|
||||||
hostmakedepends="cmake"
|
hostmakedepends="cmake"
|
||||||
makedepends="python-devel python3.4-devel libshiboken-python-devel
|
makedepends="python-devel python3-devel libshiboken-python-devel
|
||||||
libshiboken-python3.4-devel qt-devel qt-webkit-devel MesaLib-devel phonon-devel"
|
libshiboken-python3-devel qt-devel qt-webkit-devel MesaLib-devel phonon-devel"
|
||||||
depends="python-shiboken"
|
depends="python-shiboken"
|
||||||
pycompile_module="PySide"
|
pycompile_module="PySide"
|
||||||
short_desc="LGPL-licensed Python2 bindings for the Qt4 toolkit"
|
short_desc="LGPL-licensed Python2 bindings for the Qt4 toolkit"
|
||||||
_short_desc="${short_desc/Python2/Python3.4}"
|
|
||||||
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
||||||
homepage="http://www.pyside.org/"
|
homepage="http://www.pyside.org/"
|
||||||
license="LGPL-2.1"
|
license="LGPL-2.1"
|
||||||
|
@ -28,10 +26,10 @@ do_build() {
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBUILD_TESTS=OFF"
|
-DBUILD_TESTS=OFF"
|
||||||
|
|
||||||
for pyver in $python_versions; do
|
for pyver in $py2_ver $py3_ver; do
|
||||||
unset args
|
unset args
|
||||||
if [ "$pyver" = "2.7" ]; then
|
if [ "$pyver" = "$py2_ver" ]; then
|
||||||
args="-DPYTHON_SUFFIX=-python2.7"
|
args="-DPYTHON_SUFFIX=-python$py2_ver"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -d build-${pyver} ] && mkdir build-${pyver}
|
[ ! -d build-${pyver} ] && mkdir build-${pyver}
|
||||||
|
@ -42,22 +40,20 @@ do_build() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
for pyver in $python_versions; do
|
for pyver in $py2_ver $py3_ver; do
|
||||||
cd ${wrksrc}/build-${pyver}
|
make -C build-${pyver} DESTDIR=${DESTDIR} install
|
||||||
make DESTDIR=${DESTDIR} install
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
# Fix conflict between .pc files
|
# Fix conflict between .pc files
|
||||||
rm -f ${DESTDIR}/usr/lib/pkgconfig/*
|
rm -f ${DESTDIR}/usr/lib/pkgconfig/*
|
||||||
for pyver in $python_versions; do
|
for pyver in $py2_ver $py3_ver; do
|
||||||
vinstall build-${pyver}/libpyside/pyside.pc 644 \
|
vinstall build-${pyver}/libpyside/pyside.pc 644 \
|
||||||
usr/lib/pkgconfig pyside-python${pyver}.pc
|
usr/lib/pkgconfig pyside-python${pyver}.pc
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
libpyside-common-devel_package() {
|
libpyside-common-devel_package() {
|
||||||
replaces="python-pyside-devel<1.2.2_1 python3.4-pyside-devel<1.2.2_1"
|
|
||||||
short_desc+=" - common development files"
|
short_desc+=" - common development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
|
@ -67,63 +63,82 @@ libpyside-common-devel_package() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
libpyside-python-devel_package() {
|
libpyside-python-devel_package() {
|
||||||
replaces="python-pyside-devel<1.2.2_1"
|
|
||||||
depends="libpyside-common-devel-${version}_${revision}
|
depends="libpyside-common-devel-${version}_${revision}
|
||||||
libpyside-python-${version}_${revision}"
|
libpyside-python-${version}_${revision}"
|
||||||
short_desc+=" - shared library (development files)"
|
short_desc+=" - shared library (development files)"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/cmake/PySide-${version}/PySideConfig-python2.7.cmake
|
vmove usr/lib/cmake/PySide-${version}/PySideConfig-python${py2_ver}.cmake
|
||||||
vmove usr/lib/pkgconfig/pyside-python2.7.pc
|
vmove usr/lib/pkgconfig/pyside-python${py2_ver}.pc
|
||||||
vmove usr/lib/libpyside-python2.7.so
|
vmove usr/lib/libpyside-python${py2_ver}.so
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
libpyside-python_package() {
|
libpyside-python_package() {
|
||||||
replaces="python-pyside<1.2.2_1"
|
|
||||||
short_desc+=" - shared library"
|
short_desc+=" - shared library"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/libpyside-python2.7.so.${version%.*}
|
vmove usr/lib/libpyside-python${py2_ver}.so.${version%.*}
|
||||||
vmove usr/lib/libpyside-python2.7.so.${version}
|
vmove usr/lib/libpyside-python${py2_ver}.so.${version}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
python-pyside-phonon_package() {
|
python-pyside-phonon_package() {
|
||||||
depends="${sourcepkg}-${version}_${revision}"
|
depends="${sourcepkg}-${version}_${revision}"
|
||||||
short_desc+=" - phonon bindings"
|
short_desc+=" - phonon bindings"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python2.7/site-packages/PySide/phonon.so
|
vmove ${py2_sitelib}/PySide/phonon.so
|
||||||
|
}
|
||||||
|
}
|
||||||
|
libpyside-python3-devel_package() {
|
||||||
|
replaces="libpyside-python3.4-devel>=0"
|
||||||
|
depends="libpyside-common-devel-${version}_${revision}
|
||||||
|
libpyside-python3-${version}_${revision}"
|
||||||
|
short_desc="${short_desc/Python2/Python3} - shared library (development files)"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/cmake/PySide-${version}/PySideConfig-python${py3_ver}.cmake
|
||||||
|
vmove usr/lib/pkgconfig/pyside-python${py3_ver}.pc
|
||||||
|
vmove usr/lib/libpyside-python${py3_ver}.so
|
||||||
|
}
|
||||||
|
}
|
||||||
|
libpyside-python3_package() {
|
||||||
|
replaces="libpyside-python3.4>=0"
|
||||||
|
short_desc="${short_desc/Python2/Python3} - shared library"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/libpyside-python${py3_ver}.so.${version%.*}
|
||||||
|
vmove usr/lib/libpyside-python${py3_ver}.so.${version}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
python3-pyside-phonon_package() {
|
||||||
|
replaces="python3.4pyside-phonon>=0"
|
||||||
|
depends="python3-pyside-${version}_${revision}"
|
||||||
|
short_desc="${short_desc/Python2/Python3} - phonon bindings"
|
||||||
|
pkg_install() {
|
||||||
|
vmove ${py3_sitelib}/PySide/phonon.so
|
||||||
|
}
|
||||||
|
}
|
||||||
|
python3-pyside_package() {
|
||||||
|
replaces="python3.4pyside>=0"
|
||||||
|
depends="python3-shiboken"
|
||||||
|
pycompile_module="PySide"
|
||||||
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove ${py3_sitelib}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
libpyside-python3.4-devel_package() {
|
libpyside-python3.4-devel_package() {
|
||||||
replaces="python3.4-pyside-devel<1.2.2_1"
|
build_style=meta
|
||||||
depends="libpyside-common-devel-${version}_${revision}
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||||
libpyside-python3.4-${version}_${revision}"
|
depends="libpyside-python3-devel>=${version}_${revision}"
|
||||||
short_desc="${_short_desc} - shared library (development files)"
|
|
||||||
pkg_install() {
|
|
||||||
vmove usr/lib/cmake/PySide-${version}/PySideConfig-python3.4.cmake
|
|
||||||
vmove usr/lib/pkgconfig/pyside-python3.4.pc
|
|
||||||
vmove usr/lib/libpyside-python3.4.so
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
libpyside-python3.4_package() {
|
libpyside-python3.4_package() {
|
||||||
replaces="python3.4-pyside<1.2.2_1"
|
build_style=meta
|
||||||
short_desc="${_short_desc} - shared library"
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||||
pkg_install() {
|
depends="libpyside-python3>=${version}_${revision}"
|
||||||
vmove usr/lib/libpyside-python3.4.so.${version%.*}
|
|
||||||
vmove usr/lib/libpyside-python3.4.so.${version}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
python3.4-pyside-phonon_package() {
|
python3.4-pyside-phonon_package() {
|
||||||
depends="python3.4-pyside-${version}_${revision}"
|
build_style=meta
|
||||||
short_desc="${_short_desc} - phonon bindings"
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||||
pkg_install() {
|
depends="python3-pyside-phonon>=${version}_${revision}"
|
||||||
vmove usr/lib/python3.4/site-packages/PySide/phonon.so
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
python3.4-pyside_package() {
|
python3.4-pyside_package() {
|
||||||
depends="python3.4-shiboken"
|
build_style=meta
|
||||||
pycompile_version="3.4"
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||||
pycompile_module="PySide"
|
depends="python3-pyside>=${version}_${revision}"
|
||||||
short_desc="${_short_desc}"
|
|
||||||
pkg_install() {
|
|
||||||
vmove usr/lib/python3.4
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
python-pyside
|
|
@ -0,0 +1 @@
|
||||||
|
python-pyside
|
Loading…
Reference in New Issue