2014-07-03 18:23:26 +02:00
|
|
|
# Template file for 'python-Babel'
|
|
|
|
pkgname=python-Babel
|
2015-07-29 01:40:00 +02:00
|
|
|
version=2.0
|
|
|
|
revision=1
|
2014-07-03 18:23:26 +02:00
|
|
|
noarch=yes
|
|
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
build_style=python-module
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
2015-05-11 15:15:15 +02:00
|
|
|
depends="python-setuptools python-pytz"
|
2014-07-03 18:23:26 +02:00
|
|
|
pycompile_module="babel"
|
|
|
|
short_desc="Tools for internationalizing Python applications (Python2)"
|
|
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
|
|
homepage="http://babel.pocoo.org/"
|
|
|
|
license="BSD"
|
2015-05-11 15:15:15 +02:00
|
|
|
distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz"
|
2015-07-29 01:40:00 +02:00
|
|
|
checksum=44988df191123065af9857eca68e9151526a931c12659ca29904e4f11de7ec1b
|
2014-07-03 18:23:26 +02:00
|
|
|
|
|
|
|
pre_build() {
|
2015-05-11 15:15:15 +02:00
|
|
|
cp -a ${wrksrc} /tmp/babel-2.7
|
|
|
|
cp -a ${wrksrc} /tmp/babel-3.4
|
|
|
|
mv /tmp/babel-{2.7,3.4} ${wrksrc}
|
2014-07-03 18:23:26 +02:00
|
|
|
|
2015-05-11 15:15:15 +02:00
|
|
|
cd babel-3.4
|
|
|
|
sed -i 's|\(pybabel\) =|\13 =|' setup.py
|
|
|
|
}
|
2014-07-03 18:23:26 +02:00
|
|
|
do_build() {
|
2015-05-11 15:15:15 +02:00
|
|
|
for pyver in $python_versions; do
|
|
|
|
cd ${wrksrc}/babel-${pyver}
|
|
|
|
python${pyver} setup.py build
|
|
|
|
done
|
2014-07-03 18:23:26 +02:00
|
|
|
}
|
|
|
|
do_install() {
|
2015-05-11 15:15:15 +02:00
|
|
|
for pyver in $python_versions; do
|
|
|
|
cd ${wrksrc}/babel-${pyver}
|
|
|
|
python${pyver} setup.py install --root=${DESTDIR}
|
|
|
|
done
|
|
|
|
vlicense LICENSE
|
2014-07-03 18:23:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-Babel_package() {
|
|
|
|
noarch=yes
|
2015-05-11 15:15:15 +02:00
|
|
|
depends="python3.4-setuptools python3.4-pytz"
|
2014-07-03 18:23:26 +02:00
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="babel"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/pybabel3
|
|
|
|
vmove usr/lib/python3.4
|
2015-05-11 15:15:15 +02:00
|
|
|
vlicense LICENSE
|
2014-07-03 18:23:26 +02:00
|
|
|
}
|
|
|
|
}
|