python-Flask: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-16 23:07:27 +02:00
parent ea8943fd0d
commit 2b3541e401
2 changed files with 17 additions and 12 deletions

View File

@ -1,13 +1,12 @@
# Template file for 'python-Flask' # Template file for 'python-Flask'
pkgname=python-Flask pkgname=python-Flask
version=0.11.1 version=0.11.1
revision=1 revision=2
noarch=yes noarch=yes
wrksrc="${pkgname#*-}-${version}" wrksrc="${pkgname#*-}-${version}"
build_style=python-module build_style=python-module
python_versions="2.7 3.4"
pycompile_module="flask" pycompile_module="flask"
hostmakedepends="python-setuptools python3.4-setuptools" hostmakedepends="python-setuptools python3-setuptools"
depends="python-Jinja2 python-Werkzeug python-itsdangerous python-click" depends="python-Jinja2 python-Werkzeug python-itsdangerous python-click"
short_desc="Python2 web microframework" short_desc="Python2 web microframework"
maintainer="Markus Berger <pulux@pf4sh.de>" maintainer="Markus Berger <pulux@pf4sh.de>"
@ -15,23 +14,28 @@ homepage="http://flask.pocoo.org"
license="3-clause-BSD" license="3-clause-BSD"
distfiles="${PYPI_SITE}/F/Flask/Flask-${version}.tar.gz" distfiles="${PYPI_SITE}/F/Flask/Flask-${version}.tar.gz"
checksum=b4713f2bfb9ebc2966b8a49903ae0d3984781d5c878591cf2f7b484d28756b0e checksum=b4713f2bfb9ebc2966b8a49903ae0d3984781d5c878591cf2f7b484d28756b0e
alternatives="flask:flask:/usr/bin/flask2.7" alternatives="flask:flask:/usr/bin/flask2"
post_install() { post_install() {
vlicense LICENSE vlicense LICENSE
} }
python3.4-Flask_package() { python3-Flask_package() {
noarch=yes noarch=yes
pycompile_version="3.4" replaces="python3.4-Flask>=0"
pycompile_module="flask" pycompile_module="flask"
depends="python3.4-Jinja2 python3.4-Werkzeug python3.4-itsdangerous depends="python3-Jinja2 python3-Werkzeug python3-itsdangerous python3-click"
python3.4-click" short_desc="${short_desc/Python2/Python3}"
short_desc="${short_desc/Python2/Python3.4}" alternatives="flask:flask:/usr/bin/flask3"
alternatives="flask:flask:/usr/bin/flask3.4"
pkg_install() { pkg_install() {
vmove usr/bin/flask3.4 vmove usr/bin/flask3
vmove usr/lib/python3.4 vmove usr/lib/python3*
vlicense LICENSE vlicense LICENSE
} }
} }
python3.4-Flask_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-Flask>=${version}_${revision}"
}

1
srcpkgs/python3-Flask Symbolic link
View File

@ -0,0 +1 @@
python-Flask