python-Babel: revbump for rebuild
While I'm here, clean it up a little.
This commit is contained in:
parent
394e7d8d3a
commit
a91fd2f235
|
@ -1,58 +1,52 @@
|
||||||
# Template file for 'python-Babel'
|
# Template file for 'python-Babel'
|
||||||
pkgname=python-Babel
|
pkgname=python-Babel
|
||||||
version=1.3
|
version=1.3
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="${pkgname#*-}-${version}"
|
wrksrc="${pkgname#*-}-${version}"
|
||||||
python_versions="2.7 3.4"
|
python_versions="2.7 3.4"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
makedepends="python-devel python3.4-devel python-pytz python3.4-pytz"
|
depends="python-setuptools python-pytz"
|
||||||
depends="python python-pytz"
|
|
||||||
replaces="python-babel>=0"
|
|
||||||
pycompile_module="babel"
|
pycompile_module="babel"
|
||||||
short_desc="Tools for internationalizing Python applications (Python2)"
|
short_desc="Tools for internationalizing Python applications (Python2)"
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
homepage="http://babel.pocoo.org/"
|
homepage="http://babel.pocoo.org/"
|
||||||
license="BSD"
|
license="BSD"
|
||||||
distfiles="https://pypi.python.org/packages/source/B/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz"
|
||||||
checksum=9f02d0357184de1f093c10012b52e7454a1008be6a5c185ab7a3307aceb1d12e
|
checksum=9f02d0357184de1f093c10012b52e7454a1008be6a5c185ab7a3307aceb1d12e
|
||||||
|
|
||||||
post_extract() {
|
|
||||||
cp -a ${wrksrc} /tmp/python2.7-build
|
|
||||||
cp -a ${wrksrc} /tmp/python3.4-build
|
|
||||||
mv /tmp/python{2.7,3.4}-build ${wrksrc}
|
|
||||||
}
|
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
cd ${wrksrc}/python3.4-build
|
cp -a ${wrksrc} /tmp/babel-2.7
|
||||||
sed -i 's,pybabel,pybabel3,' setup.py
|
cp -a ${wrksrc} /tmp/babel-3.4
|
||||||
}
|
mv /tmp/babel-{2.7,3.4} ${wrksrc}
|
||||||
|
|
||||||
|
cd babel-3.4
|
||||||
|
sed -i 's|\(pybabel\) =|\13 =|' setup.py
|
||||||
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
cd ${wrksrc}/python2.7-build
|
for pyver in $python_versions; do
|
||||||
python setup.py build
|
cd ${wrksrc}/babel-${pyver}
|
||||||
|
python${pyver} setup.py build
|
||||||
cd ${wrksrc}/python3.4-build
|
done
|
||||||
python3.4 setup.py build
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
cd ${wrksrc}/python2.7-build
|
for pyver in $python_versions; do
|
||||||
python setup.py install --root=${DESTDIR}
|
cd ${wrksrc}/babel-${pyver}
|
||||||
|
python${pyver} setup.py install --root=${DESTDIR}
|
||||||
cd ${wrksrc}/python3.4-build
|
done
|
||||||
python3.4 setup.py install --root=${DESTDIR}
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-Babel_package() {
|
python3.4-Babel_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="python3.4 python3.4-pytz"
|
depends="python3.4-setuptools python3.4-pytz"
|
||||||
pycompile_version="3.4"
|
pycompile_version="3.4"
|
||||||
pycompile_module="babel"
|
pycompile_module="babel"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/pybabel3
|
vmove usr/bin/pybabel3
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue