mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
python-Babel: update to 2.3.2
This commit is contained in:
parent
a9620a3ed3
commit
764fab27ef
1 changed files with 6 additions and 22 deletions
|
@ -1,11 +1,11 @@
|
||||||
# Template file for 'python-Babel'
|
# Template file for 'python-Babel'
|
||||||
pkgname=python-Babel
|
pkgname=python-Babel
|
||||||
version=2.2.0
|
version=2.3.2
|
||||||
revision=1
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="${pkgname#*-}-${version}"
|
wrksrc="${pkgname#*-}-${version}"
|
||||||
python_versions="2.7 3.4"
|
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
python_versions="2.7 3.4"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
depends="python-setuptools python-pytz"
|
depends="python-setuptools python-pytz"
|
||||||
pycompile_module="babel"
|
pycompile_module="babel"
|
||||||
|
@ -14,27 +14,11 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
homepage="http://babel.pocoo.org/"
|
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=d8cb4c0e78148aee89560f9fe21587aa57739c975bb89ff66b1e842cc697428f
|
checksum=9c0e011d2b5fd67e154be01ebec5eebf472e1277a34ec0856e97b77041bc834c
|
||||||
|
|
||||||
pre_build() {
|
post_install() {
|
||||||
cp -a ${wrksrc} /tmp/babel-2.7
|
cp -f ${DESTDIR}/usr/bin/pybabel{,3.4}
|
||||||
cp -a ${wrksrc} /tmp/babel-3.4
|
replace_interpreter python ${DESTDIR}/usr/bin/pybabel
|
||||||
mv /tmp/babel-{2.7,3.4} ${wrksrc}
|
|
||||||
|
|
||||||
cd babel-3.4
|
|
||||||
sed -i 's|\(pybabel\) =|\13.4 =|' setup.py
|
|
||||||
}
|
|
||||||
do_build() {
|
|
||||||
for pyver in $python_versions; do
|
|
||||||
cd ${wrksrc}/babel-${pyver}
|
|
||||||
python${pyver} setup.py build
|
|
||||||
done
|
|
||||||
}
|
|
||||||
do_install() {
|
|
||||||
for pyver in $python_versions; do
|
|
||||||
cd ${wrksrc}/babel-${pyver}
|
|
||||||
python${pyver} setup.py install --root=${DESTDIR}
|
|
||||||
done
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue