void-packages/srcpkgs/python-Cheroot/template

37 lines
937 B
Bash
Raw Normal View History

2017-04-19 23:06:14 +02:00
# Template file for 'python-Cheroot'
pkgname=python-Cheroot
2017-08-12 12:30:12 +02:00
version=5.8.3
2017-05-04 10:09:25 +02:00
revision=1
2017-04-19 23:06:14 +02:00
noarch=yes
2017-04-21 15:04:27 +02:00
wrksrc="cheroot-${version}"
2017-04-19 23:06:14 +02:00
build_style=python-module
2017-04-21 15:04:27 +02:00
pycompile_module="cheroot"
2017-04-19 23:06:14 +02:00
hostmakedepends="python-setuptools python3-setuptools"
2017-04-21 15:04:27 +02:00
depends="python-six"
2017-04-19 23:06:14 +02:00
short_desc="High-performance, pure-Python HTTP server"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
2017-04-21 15:04:27 +02:00
license="3-clause-BSD"
2017-04-19 23:06:14 +02:00
homepage="https://github.com/cherrypy/cheroot"
distfiles="${PYPI_SITE}/c/cheroot/cheroot-${version}.tar.gz"
2017-08-12 12:30:12 +02:00
checksum=5c0531fd732700b1fb3e6e7079dc3aefbdf29e9136925633d93f009cb87d70a3
2017-04-19 23:06:14 +02:00
2017-04-21 15:04:27 +02:00
pre_build() {
sed -i setup.py \
-e '/setuptools_scm/d' \
-e "s|use_scm_version=True|version='${version}'|"
}
2017-04-19 23:06:14 +02:00
post_install() {
2017-04-21 15:04:27 +02:00
vlicense LICENSE.md LICENSE
2017-04-19 23:06:14 +02:00
}
python3-Cheroot_package() {
noarch=yes
2017-04-21 15:04:27 +02:00
depends="python3-six"
2017-04-19 23:06:14 +02:00
pycompile_module="cheroot"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
2017-04-21 15:04:27 +02:00
vlicense LICENSE.md LICENSE
2017-04-19 23:06:14 +02:00
}
}