python-atspi: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-16 22:33:02 +02:00
parent 7ee99310ce
commit 67478b3a64
2 changed files with 30 additions and 28 deletions

View File

@ -1,16 +1,13 @@
# Template file for 'python-atspi' # Template file for 'python-atspi'
pkgname=python-atspi pkgname=python-atspi
version=2.18.0 version=2.18.0
revision=1 revision=2
noarch=yes noarch=yes
nocross=yes
wrksrc="pyatspi-${version}" wrksrc="pyatspi-${version}"
build_style=gnu-configure build_style=gnu-configure
python_versions="2.7 3.4"
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="at-spi2-core-devel python-gobject-devel" makedepends="at-spi2-core-devel python-gobject-devel"
depends="${makedepends//-devel/}" depends="${makedepends//-devel/}"
replaces="pyatspi>=0"
pycompile_module="pyatspi" pycompile_module="pyatspi"
short_desc="Python2 bindings for AT-SPI" short_desc="Python2 bindings for AT-SPI"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"
@ -19,39 +16,43 @@ license="GPL-2"
distfiles="${GNOME_SITE}/pyatspi/${version%.*}/pyatspi-${version}.tar.xz" distfiles="${GNOME_SITE}/pyatspi/${version%.*}/pyatspi-${version}.tar.xz"
checksum=f86f03ad05d0502cd60fe8b98f746f74ce3bc208e9f3798f6a2130b3c5f4ab46 checksum=f86f03ad05d0502cd60fe8b98f746f74ce3bc208e9f3798f6a2130b3c5f4ab46
pre_configure() {
mkdir -p atspi-${py2_ver}
mv * atspi-${py2_ver} || true
cp -a atspi-${py2_ver} atspi-${py3_ver}
}
do_configure() { do_configure() {
mkdir ${wrksrc}/python2-build for pyver in $py2_ver $py3_ver; do
cd ${wrksrc}/python2-build cd ${wrksrc}/atspi-${pyver}
../configure ${configure_args} --with-python=/usr/bin/python ./configure ${configure_args} --with-python=/usr/bin/python${pyver}
done
mkdir ${wrksrc}/python3.4-build
cd ${wrksrc}/python3.4-build
../configure ${configure_args} --with-python=/usr/bin/python3.4
} }
do_build() { do_build() {
cd ${wrksrc}/python2-build for pyver in $py2_ver $py3_ver; do
make ${makejobs} cd ${wrksrc}/atspi-${pyver}
cd ${wrksrc}/python3.4-build
make ${makejobs} make ${makejobs}
done
} }
do_install() { do_install() {
cd ${wrksrc}/python2-build for pyver in $py2_ver $py3_ver; do
make DESTDIR=${DESTDIR} install cd ${wrksrc}/atspi-${pyver}
cd ${wrksrc}/python3.4-build
make DESTDIR=${DESTDIR} install make DESTDIR=${DESTDIR} install
done
} }
python3.4-atspi_package() { python3-atspi_package() {
noarch=yes noarch=yes
depends="at-spi2-core>=2.10 python3.4-gobject>=3.10" replaces="python3.4-atspi>=0"
pycompile_version="3.4"
pycompile_module="pyatspi" pycompile_module="pyatspi"
short_desc="${short_desc//Python2/Python3.4}" depends="at-spi2-core python3-gobject"
short_desc="${short_desc/Python2/Python3}"
pkg_install() { pkg_install() {
vmove /usr/lib/python3.4 vmove ${py3_sitelib}
} }
} }
python3.4-atspi_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-atspi>=${version}_${revision}"
}

1
srcpkgs/python3-atspi Symbolic link
View File

@ -0,0 +1 @@
python-atspi