python-Babel: 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 17:22:59 +02:00
parent edac400a1e
commit 9f4697738d
2 changed files with 17 additions and 11 deletions

View file

@ -1,12 +1,11 @@
# Template file for 'python-Babel' # Template file for 'python-Babel'
pkgname=python-Babel pkgname=python-Babel
version=2.3.4 version=2.3.4
revision=2 revision=3
noarch=yes noarch=yes
wrksrc="${pkgname#*-}-${version}" wrksrc="${pkgname#*-}-${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-setuptools python-pytz" depends="python-setuptools python-pytz"
pycompile_module="babel" pycompile_module="babel"
short_desc="Tools for internationalizing Python applications (Python2)" short_desc="Tools for internationalizing Python applications (Python2)"
@ -15,22 +14,28 @@ homepage="http://babel.pocoo.org/"
license="3-clause-BSD" license="3-clause-BSD"
distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz" distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz"
checksum=c535c4403802f6eb38173cd4863e419e2274921a01a8aad8a5b497c131c62875 checksum=c535c4403802f6eb38173cd4863e419e2274921a01a8aad8a5b497c131c62875
alternatives="babel:pybabel:/usr/bin/pybabel2.7" alternatives="babel:pybabel:/usr/bin/pybabel2"
post_install() { post_install() {
vlicense LICENSE vlicense LICENSE
} }
python3.4-Babel_package() { python3-Babel_package() {
noarch=yes noarch=yes
depends="python3.4-setuptools python3.4-pytz" depends="python3-setuptools python3-pytz"
pycompile_version="3.4"
pycompile_module="babel" pycompile_module="babel"
short_desc="${short_desc/Python2/Python3.4}" replaces="python3.4-Babel>=0"
alternatives="babel:pybabel:/usr/bin/pybabel3.4" short_desc="${short_desc/Python2/Python3}"
alternatives="babel:pybabel:/usr/bin/pybabel3"
pkg_install() { pkg_install() {
vmove usr/bin/pybabel3.4 vmove usr/bin/pybabel3
vmove usr/lib/python3.4 vmove usr/lib/python3*
vlicense LICENSE vlicense LICENSE
} }
} }
python3.4-Babel_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-Babel>=${version}_${revision}"
}

1
srcpkgs/python3-Babel Symbolic link
View file

@ -0,0 +1 @@
python-Babel