void-packages/srcpkgs/python-tornado/template
Alessio Sergi 837ed63b70 Revert "python-tornado: update to 4.3."
This reverts commit e5529b8dbe.

This commit is dedicated to committers who just update packages for the
sake of it and clearly don't know what they're doing.

Often packages are out-of-date for a reason. If don't know the reason,
please do *not* touch them.

Also, this commit is wrong on so many levels and thus the package broken.
Good job!
2016-03-27 10:08:39 +02:00

32 lines
918 B
Bash

# Template file for 'python-tornado'
pkgname=python-tornado
version=4.2.1
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="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=a16fcdc4f76b184cb82f4f9eaeeacef6113b524b26a2cb331222e4a7fa6f2969
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
}
}