python-pyserial: 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 19:30:48 +02:00
parent c8ab07e163
commit 53713bdf65
2 changed files with 17 additions and 11 deletions

View file

@ -1,12 +1,11 @@
# Template file for 'python-pyserial'
pkgname=python-pyserial
version=3.1.1
revision=1
revision=2
noarch=yes
wrksrc="pyserial-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="serial"
short_desc="Python2 module providing access for the serial port"
@ -15,22 +14,28 @@ homepage="https://github.com/pyserial/pyserial"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/p/pyserial/pyserial-${version}.tar.gz"
checksum=d657051249ce3cbd0446bcfb2be07a435e1029da4d63f53ed9b4cdde7373364c
alternatives="pyserial:miniterm:/usr/bin/miniterm.py2.7"
alternatives="pyserial:miniterm:/usr/bin/miniterm.py2"
post_install() {
vlicense LICENSE.txt LICENSE
}
python3.4-pyserial_package() {
python3-pyserial_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
depends="python3"
pycompile_module="serial"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="pyserial:miniterm:/usr/bin/miniterm.py3.4"
replaces="python3.4-pyserial>=0"
short_desc="${short_desc/Python2/Python3}"
alternatives="pyserial:miniterm:/usr/bin/miniterm.py3"
pkg_install() {
vmove usr/bin/miniterm.py3.4
vmove usr/lib/python3.4
vmove usr/bin/miniterm.py3
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}
python3.4-pyserial_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-pyserial>=${version}_${revision}"
}

1
srcpkgs/python3-pyserial Symbolic link
View file

@ -0,0 +1 @@
python-pyserial