36 lines
1,017 B
Bash
36 lines
1,017 B
Bash
# Template file for 'python-CherryPy'
|
|
pkgname=python-CherryPy
|
|
version=7.1.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="CherryPy-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-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=64dca80ccadae4ed8e4ea94119bf76ed9746743c2bd57ec40af534680cbef021
|
|
alternatives="cherrypy:cherryd:/usr/bin/cherryd2.7"
|
|
|
|
post_install() {
|
|
vlicense cherrypy/LICENSE.txt
|
|
}
|
|
|
|
python3.4-CherryPy_package() {
|
|
noarch=yes
|
|
depends="python3.4-six"
|
|
pycompile_version="3.4"
|
|
pycompile_module="cherrypy"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
alternatives="cherrypy:cherryd:/usr/bin/cherryd3.4"
|
|
pkg_install() {
|
|
vmove usr/bin/cherryd3.4
|
|
vmove usr/lib/python3.4
|
|
vlicense cherrypy/LICENSE.txt
|
|
}
|
|
}
|