void-packages/srcpkgs/python3-CherryPy/template
Lon Willett ad79fe86b4 python-CherryPy: seperate into distinct packages for python 2/3
CherryPy 18.* does not support python2. So it is necessary to have
seperate packages for python2 and python3, with python2 remaining at version
17.*.

Also add missing depenendencies (zc.locfile, contextlib2).
2018-09-30 20:50:02 +02:00

28 lines
863 B
Bash

# Template file for 'python3-CherryPy'
pkgname=python3-CherryPy
version=18.0.1
revision=2
noarch=yes
wrksrc="CherryPy-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-Cheroot python3-portend python3-zc.lockfile"
pycompile_module="cherrypy"
short_desc="Object-oriented HTTP framework (Python3)"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="BSD-3-Clause"
homepage="https://cherrypy.org/"
distfiles="${PYPI_SITE}/C/CherryPy/CherryPy-${version}.tar.gz"
checksum=3002fc47b982c3df4d08dbe5996b093fd73f85b650ab8df19e8b9b95f5c00520
alternatives="cherrypy:cherryd:/usr/bin/cherryd3"
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/cherryd3
vlicense LICENSE.md
}