37 lines
1019 B
Bash
37 lines
1019 B
Bash
# Template file for 'python-Babel'
|
|
pkgname=python-Babel
|
|
version=2.3.3
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-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=12dff9afa9c6cd6e2a39960d3cd4b46b2b98768cdc6646833c66b20799c1c58e
|
|
|
|
post_install() {
|
|
cp -f ${DESTDIR}/usr/bin/pybabel{,3.4}
|
|
replace_interpreter python ${DESTDIR}/usr/bin/pybabel
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3.4-Babel_package() {
|
|
noarch=yes
|
|
depends="python3.4-setuptools python3.4-pytz"
|
|
pycompile_version="3.4"
|
|
pycompile_module="babel"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/bin/pybabel3.4
|
|
vmove usr/lib/python3.4
|
|
vlicense LICENSE
|
|
}
|
|
}
|