# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-cherrypy
version             18.10.0
revision            0

categories-append   www
platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         {gmail.com:freespace @freespace} openmaintainer

description         Object-Oriented HTTP framework
long_description    CherryPy is a pythonic, object-oriented web \
                    development framework. CherryPy allows developers \
                    to build web applications in much the same way \
                    they would build any other object-oriented Python \
                    program. This usually results in smaller source \
                    code developed in less time.

homepage            https://www.cherrypy.org/

checksums           rmd160  def508878e86d483bc22027680e6d0311e445fc7 \
                    sha256  6c70e78ee11300e8b21c0767c542ae6b102a49cac5cfd4e3e313d7bb907c5891 \
                    size    633708

python.versions     310

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools_scm

    depends_lib-append \
                    port:py${python.version}-cheroot \
                    port:py${python.version}-jaraco.collections \
                    port:py${python.version}-more-itertools \
                    port:py${python.version}-portend \
                    port:py${python.version}-zc-lockfile

    post-destroot {
        xinstall -m 0644 -W ${worksrcpath} \
            CHANGES.rst README.rst LICENSE.md \
            ${destroot}${prefix}/share/doc/${subport}
        move ${destroot}${python.pkgd}/cherrypy/tutorial \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
