python-sqlalchemy-migrate: update to 0.9.6

This commit is contained in:
Alessio Sergi 2015-04-01 11:01:44 +02:00
parent 7d44616608
commit 63840df6f7

View file

@ -1,6 +1,6 @@
# Template file for 'python-sqlalchemy-migrate'
pkgname=python-sqlalchemy-migrate
version=0.9.5
version=0.9.6
revision=1
noarch=yes
wrksrc="${pkgname#*-}-${version}"
@ -13,7 +13,7 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/stackforge/sqlalchemy-migrate"
license="MIT"
distfiles="${PYPI_SITE}/s/sqlalchemy-migrate/sqlalchemy-migrate-${version}.tar.gz"
checksum=d36ae0879b418c4a7011c081a7b05aa9eaf2f2bc38402cdad4ad64369de31d9c
checksum=c2c73d8dbeb29a96459d8622e3bac2e97cf6f74ed0564469486fe7ffe0ef3d97
pre_build() {
cp -a ${wrksrc} /tmp/migrate-2.7
@ -22,24 +22,22 @@ pre_build() {
cd ${wrksrc}/migrate-3.4
sed -i 's,\(migrate\) =,\13 =,;s,\(migrate-repository\) =,\13 =,' setup.cfg
find . -type f -name '*.py' -exec sed -i '/^#!/s,python$,&3.4,' {} +
find migrate -type f -name '*.py' -exec sed -i '/^#!/s,python$,&3.4,' {} +
}
do_build() {
cd ${wrksrc}/migrate-2.7
python setup.py build
cd ${wrksrc}/migrate-3.4
python3.4 setup.py build
for pyver in $python_versions; do
cd ${wrksrc}/migrate-${pyver}
python${pyver} setup.py build
done
}
do_install() {
cd ${wrksrc}/migrate-2.7
python setup.py install --root=${DESTDIR}
for pyver in $python_versions; do
cd ${wrksrc}/migrate-${pyver}
python${pyver} setup.py install --root=${DESTDIR}
done
vlicense COPYING LICENSE
cd ${wrksrc}/migrate-3.4
python3.4 setup.py install --root=${DESTDIR}
}
python3.4-sqlalchemy-migrate_package() {
@ -52,6 +50,6 @@ python3.4-sqlalchemy-migrate_package() {
pkg_install() {
vmove usr/bin/migrate*3
vmove usr/lib/python3.4
vlicense ${wrksrc}/COPYING LICENSE
vlicense COPYING LICENSE
}
}