mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 00:42:58 +02:00
python-Babel: use alternatives
This commit is contained in:
parent
290f012f3b
commit
4665d43fd8
1 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-Babel'
|
# Template file for 'python-Babel'
|
||||||
pkgname=python-Babel
|
pkgname=python-Babel
|
||||||
version=2.3.4
|
version=2.3.4
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="${pkgname#*-}-${version}"
|
wrksrc="${pkgname#*-}-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
@ -13,12 +13,11 @@ 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="3-clause-BSD"
|
license="3-clause-BSD"
|
||||||
distfiles="https://pypi.python.org/packages/6e/96/ba2a2462ed25ca0e651fb7b66e7080f5315f91425a07ea5b34d7c870c114/Babel-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz"
|
||||||
checksum=c535c4403802f6eb38173cd4863e419e2274921a01a8aad8a5b497c131c62875
|
checksum=c535c4403802f6eb38173cd4863e419e2274921a01a8aad8a5b497c131c62875
|
||||||
|
alternatives="babel:pybabel:/usr/bin/pybabel2.7"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
cp -f ${DESTDIR}/usr/bin/pybabel{,3.4}
|
|
||||||
replace_interpreter python ${DESTDIR}/usr/bin/pybabel
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +27,7 @@ python3.4-Babel_package() {
|
||||||
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}"
|
||||||
|
alternatives="babel:pybabel:/usr/bin/pybabel3.4"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/pybabel3.4
|
vmove usr/bin/pybabel3.4
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
|
|
Loading…
Add table
Reference in a new issue