40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'python-CherryPy'
|
|
pkgname=python-CherryPy
|
|
version=17.3.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="CherryPy-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-six python-Cheroot python-portend"
|
|
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=c3e4d76232ade4c47666b9008f92556465df517b8dca833ece3bed027028ae7d
|
|
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() {
|
|
vlicense LICENSE.md
|
|
}
|
|
|
|
python3-CherryPy_package() {
|
|
noarch=yes
|
|
depends="python3-setuptools python3-six python3-Cheroot python3-portend"
|
|
pycompile_module="cherrypy"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="cherrypy:cherryd:/usr/bin/cherryd3"
|
|
pkg_install() {
|
|
vmove usr/bin/cherryd3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.md
|
|
}
|
|
}
|