42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'python-CherryPy'
|
|
pkgname=python-CherryPy
|
|
version=8.1.3
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="CherryPy-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-six"
|
|
pycompile_module="cherrypy"
|
|
short_desc="Object-oriented HTTP framework (Python2)"
|
|
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
|
license="3-clause-BSD"
|
|
homepage="http://www.cherrypy.org"
|
|
distfiles="${PYPI_SITE}/C/CherryPy/CherryPy-${version}.tar.gz"
|
|
checksum=e75d94393ef24a47e70fb7539c07abac11be7cb76780c3151f94f6a9f5b2c3da
|
|
alternatives="cherrypy:cherryd:/usr/bin/cherryd2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
}
|
|
|
|
python3-CherryPy_package() {
|
|
noarch=yes
|
|
depends="python3-six"
|
|
pycompile_module="cherrypy"
|
|
replaces="python3.4-CherryPy>=0"
|
|
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
|
|
}
|
|
}
|
|
python3.4-CherryPy_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-CherryPy>=${version}_${revision}"
|
|
}
|