mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
python-Cheroot: fix template
This commit is contained in:
parent
6771d706a3
commit
f6c00007c2
1 changed files with 13 additions and 6 deletions
|
@ -1,29 +1,36 @@
|
||||||
# Template file for 'python-Cheroot'
|
# Template file for 'python-Cheroot'
|
||||||
pkgname=python-Cheroot
|
pkgname=python-Cheroot
|
||||||
version=5.4.0
|
version=5.4.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="cheroot-$version"
|
|
||||||
noarch=yes
|
noarch=yes
|
||||||
|
wrksrc="cheroot-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
pycompile_module="cheroot"
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
|
depends="python-six"
|
||||||
short_desc="High-performance, pure-Python HTTP server"
|
short_desc="High-performance, pure-Python HTTP server"
|
||||||
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
||||||
license="BSD"
|
license="3-clause-BSD"
|
||||||
homepage="https://github.com/cherrypy/cheroot"
|
homepage="https://github.com/cherrypy/cheroot"
|
||||||
distfiles="${PYPI_SITE}/c/cheroot/cheroot-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/c/cheroot/cheroot-${version}.tar.gz"
|
||||||
checksum=f4b3d2eaa949b8a2f6676e3bca7c68cd358e4aa6bab437362b4bee6781626135
|
checksum=f4b3d2eaa949b8a2f6676e3bca7c68cd358e4aa6bab437362b4bee6781626135
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
sed -i setup.py \
|
||||||
|
-e '/setuptools_scm/d' \
|
||||||
|
-e "s|use_scm_version=True|version='${version}'|"
|
||||||
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE.md
|
vlicense LICENSE.md LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3-Cheroot_package() {
|
python3-Cheroot_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
|
depends="python3-six"
|
||||||
pycompile_module="cheroot"
|
pycompile_module="cheroot"
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
alternatives="cherrypy:cherryd:/usr/bin/cherryd3"
|
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python3*
|
vmove usr/lib/python3*
|
||||||
vlicense LICENSE.md
|
vlicense LICENSE.md LICENSE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue