32 lines
954 B
Text
32 lines
954 B
Text
# Template file for 'python-tornado'
|
|
pkgname=python-tornado
|
|
version=4.0.2
|
|
revision=1
|
|
wrksrc="tornado-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
makedepends="python-devel python3.4-devel"
|
|
depends="python-backports-ssl-match-hostname ca-certificates"
|
|
pycompile_module="tornado"
|
|
short_desc="Python2 web framework and asynchronous networking library"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="http://www.tornadoweb.org/"
|
|
license="Apache-2.0"
|
|
distfiles="${PYPI_SITE}/t/tornado/tornado-${version}.tar.gz"
|
|
checksum=900c5124ebdb6598ca8e8a0c5888f41a5f14117952d5515258e3d20222b21bfa
|
|
|
|
pre_build() {
|
|
# remove shebang
|
|
sed -i '/^#!\//,1d' tornado/*.py tornado/*/*.py
|
|
}
|
|
|
|
python3.4-tornado_package() {
|
|
depends="ca-certificates"
|
|
pycompile_version="3.4"
|
|
pycompile_module="tornado"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
}
|
|
}
|