void-packages/srcpkgs/python-tornado/template

33 lines
916 B
Bash
Raw Normal View History

2014-10-31 19:00:00 +00:00
# Template file for 'python-tornado'
pkgname=python-tornado
2015-02-10 11:31:10 +00:00
version=4.1
revision=1
2014-10-31 19:00:00 +00:00
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"
2014-10-31 19:00:00 +00:00
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"
2015-02-10 11:31:10 +00:00
checksum=99abd3aede45c93739346ee7384e710120121c3744da155d5cff1c0101702228
2014-10-31 19:00:00 +00:00
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
}
}