void-packages/srcpkgs/python-Babel/template
2017-09-18 11:10:42 +02:00

42 lines
1.1 KiB
Bash

# Template file for 'python-Babel'
pkgname=python-Babel
version=2.5.1
revision=1
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-pytz"
pycompile_module="babel"
short_desc="Tools for internationalizing Python applications (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://babel.pocoo.org/"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz"
checksum=6007daf714d0cd5524bbe436e2d42b3c20e68da66289559341e48d2cd6d25811
alternatives="babel:pybabel:/usr/bin/pybabel2"
post_install() {
vlicense LICENSE
}
python3-Babel_package() {
noarch=yes
depends="python3-setuptools python3-pytz"
pycompile_module="babel"
replaces="python3.4-Babel>=0"
short_desc="${short_desc/Python2/Python3}"
alternatives="babel:pybabel:/usr/bin/pybabel3"
pkg_install() {
vmove usr/bin/pybabel3
vmove usr/lib/python3*
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}"
}