29 lines
913 B
Bash
29 lines
913 B
Bash
# Template file for 'python-CherryPy'
|
|
pkgname=python-CherryPy
|
|
reverts="18.0.1_1 18.0.0_1"
|
|
version=17.4.0
|
|
revision=3
|
|
noarch=yes
|
|
wrksrc="CherryPy-${version}"
|
|
build_style=python2-module
|
|
hostmakedepends="python-setuptools"
|
|
depends="python-setuptools python-six python-Cheroot python-portend python-contextlib2 python-zc.lockfile"
|
|
pycompile_module="cherrypy"
|
|
short_desc="Object-oriented HTTP framework (Python2)"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://cherrypy.org/"
|
|
distfiles="${PYPI_SITE}/C/CherryPy/CherryPy-${version}.tar.gz"
|
|
checksum=6479e269c30207cc1d480b10984ff3bfdbd093eaf8791634516b2714e34a5bcf
|
|
alternatives="cherrypy:cherryd:/usr/bin/cherryd2"
|
|
|
|
pre_build() {
|
|
sed -i setup.py \
|
|
-e '/setuptools_scm/d' \
|
|
-e "s|use_scm_version=True|version='${version}'|"
|
|
}
|
|
post_install() {
|
|
mv ${DESTDIR}/usr/bin/cherryd ${DESTDIR}/usr/bin/cherryd2
|
|
vlicense LICENSE.md
|
|
}
|