python-sqlparse: use alternatives
This commit is contained in:
parent
b45bb2e3b7
commit
40c490cbd7
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-sqlparse'
|
# Template file for 'python-sqlparse'
|
||||||
pkgname=python-sqlparse
|
pkgname=python-sqlparse
|
||||||
version=0.1.19
|
version=0.1.19
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
wrksrc="sqlparse-${version}"
|
wrksrc="sqlparse-${version}"
|
||||||
|
@ -15,9 +15,9 @@ homepage="https://github.com/andialbrecht/sqlparse"
|
||||||
license="3-clause-BSD"
|
license="3-clause-BSD"
|
||||||
distfiles="${PYPI_SITE}/s/sqlparse/sqlparse-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/s/sqlparse/sqlparse-${version}.tar.gz"
|
||||||
checksum=d896be1a1c7f24bffe08d7a64e6f0176b260e281c5f3685afe7826f8bada4ee8
|
checksum=d896be1a1c7f24bffe08d7a64e6f0176b260e281c5f3685afe7826f8bada4ee8
|
||||||
|
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat2.7"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vbin build-3.4/scripts-3.4/sqlformat sqlformat3.4
|
|
||||||
vlicense COPYING LICENSE
|
vlicense COPYING LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ python3.4-sqlparse_package() {
|
||||||
pycompile_version="3.4"
|
pycompile_version="3.4"
|
||||||
pycompile_module="sqlparse"
|
pycompile_module="sqlparse"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
|
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat3.4"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/sqlformat3.4
|
vmove usr/bin/sqlformat3.4
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
|
|
Loading…
Reference in New Issue