python-Flask: update to 0.11, cleanup

This commit is contained in:
Alessio Sergi 2016-05-30 07:00:00 +02:00
parent 0fd9ca09a0
commit ccdc2f7d30
1 changed files with 23 additions and 15 deletions

View File

@ -1,29 +1,37 @@
# Template file for 'python-Flask'
pkgname=python-Flask
version=0.10.1
revision=2
version=0.11
revision=1
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="flask"
hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="python-devel python3.4-devel"
depends="python python-Jinja2>=2.4 python-Werkzeug>=0.7 python-itsdangerous>=0.21"
short_desc="A microframework based on Werkzeug, Jinja2 and good intentions"
depends="python-Jinja2 python-Werkzeug python-itsdangerous python-click"
short_desc="Python2 web microframework"
maintainer="Markus Berger <pulux@pf4sh.de>"
homepage="http://flask.pocoo.org"
license="BSD"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/F/Flask/Flask-${version}.tar.gz"
checksum=4c83829ff83d408b5e1d4995472265411d2c414112298f2eb4b359d9e4563373
checksum=29a7405a7f0de178232fe48cd9b2a2403083bf03bd34eabe12168863d4cdb493
alternatives="flask:flask:/usr/bin/flask2.7"
post_install() {
vlicense LICENSE
}
python3.4-Flask_package() {
noarch=yes
depends="python3.4 python3.4-Jinja2>=2.4 python3.4-Werkzeug>=0.7 python3.4-itsdangerous>=0.21"
pycompile_version="3.4"
pycompile_module="flask"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
}
noarch=yes
pycompile_version="3.4"
pycompile_module="flask"
depends="python3.4-Jinja2 python3.4-Werkzeug python3.4-itsdangerous
python3.4-click"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="flask:flask:/usr/bin/flask3.4"
pkg_install() {
vmove usr/bin/flask3.4
vmove usr/lib/python3.4
vlicense LICENSE
}
}