python-sqlparse: update to 0.1.19
This commit is contained in:
parent
dbbde45dd7
commit
70cdcb5ea5
1 changed files with 5 additions and 23 deletions
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'python-sqlparse'
|
||||
pkgname=python-sqlparse
|
||||
version=0.1.18
|
||||
version=0.1.19
|
||||
revision=1
|
||||
noarch=yes
|
||||
build_style=python-module
|
||||
|
@ -14,28 +14,10 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|||
homepage="https://github.com/andialbrecht/sqlparse"
|
||||
license="3-clause-BSD"
|
||||
distfiles="${PYPI_SITE}/s/sqlparse/sqlparse-${version}.tar.gz"
|
||||
checksum=39b196c4a06f76d6ac82f029457ca961f662a8bbbb2694eb1dfe4f2b68a2d7cf
|
||||
checksum=d896be1a1c7f24bffe08d7a64e6f0176b260e281c5f3685afe7826f8bada4ee8
|
||||
|
||||
pre_build() {
|
||||
cp -a ${wrksrc} /tmp/${pkgname#*-}-2.7
|
||||
cp -a ${wrksrc} /tmp/${pkgname#*-}-3.4
|
||||
mv /tmp/${pkgname#*-}-{2.7,3.4} ${wrksrc}
|
||||
|
||||
cd ${pkgname#*-}-3.4
|
||||
mv bin/sqlformat{,3}
|
||||
sed -i 's,\(bin/sqlformat\),\13,' setup.py
|
||||
}
|
||||
do_build() {
|
||||
for pyver in $python_versions; do
|
||||
cd ${wrksrc}/${pkgname#*-}-${pyver}
|
||||
python${pyver} setup.py build
|
||||
done
|
||||
}
|
||||
do_install() {
|
||||
for pyver in $python_versions; do
|
||||
cd ${wrksrc}/${pkgname#*-}-${pyver}
|
||||
python${pyver} setup.py install --root=${DESTDIR}
|
||||
done
|
||||
post_install() {
|
||||
vbin build-3.4/scripts-3.4/sqlformat sqlformat3.4
|
||||
vlicense COPYING LICENSE
|
||||
}
|
||||
|
||||
|
@ -46,7 +28,7 @@ python3.4-sqlparse_package() {
|
|||
pycompile_module="sqlparse"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
pkg_install() {
|
||||
vmove usr/bin/sqlformat3
|
||||
vmove usr/bin/sqlformat3.4
|
||||
vmove usr/lib/python3.4
|
||||
vlicense COPYING LICENSE
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue