python-polib: 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-17 00:43:52 +02:00
parent cebe7e7bdd
commit 013e10fbc7
2 changed files with 14 additions and 8 deletions

View File

@ -1,12 +1,11 @@
# Template file for 'python-polib' # Template file for 'python-polib'
pkgname=python-polib pkgname=python-polib
version=1.0.7 version=1.0.7
revision=2 revision=3
noarch=yes noarch=yes
wrksrc="polib-${version}" wrksrc="polib-${version}"
build_style=python-module build_style=python-module
python_versions="2.7 3.4" hostmakedepends="python-setuptools python3-setuptools"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python" depends="python"
pycompile_module="polib.py" pycompile_module="polib.py"
short_desc="Python2 library to manipulate gettext files" short_desc="Python2 library to manipulate gettext files"
@ -16,13 +15,19 @@ license="MIT"
distfiles="${PYPI_SITE}/p/polib/polib-${version}.tar.gz" distfiles="${PYPI_SITE}/p/polib/polib-${version}.tar.gz"
checksum=43ce60d05ffa442ba9d3c5722193aadb93c38174b9fb471c8ea7ccbf8349bbca checksum=43ce60d05ffa442ba9d3c5722193aadb93c38174b9fb471c8ea7ccbf8349bbca
python3.4-polib_package() { python3-polib_package() {
noarch=yes noarch=yes
depends="python3.4" depends="python3"
pycompile_version="3.4"
pycompile_module="polib.py" pycompile_module="polib.py"
short_desc="${short_desc/Python2/Python3.4}" replaces="python3.4-polib>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() { pkg_install() {
vmove usr/lib/python3.4 vmove usr/lib/python3*
} }
} }
python3.4-polib_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-polib>=${version}_${revision}"
}

1
srcpkgs/python3-polib Symbolic link
View File

@ -0,0 +1 @@
python-polib