# -*- 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
PortGroup           github 1.0

github.setup        webpy webpy 0.39 webpy-
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-webpy
revision            0
license             Public-domain BSD
categories-append   www
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer
description         web.py is a web framework for Python that is as simple as it is powerful
long_description    {*}$description

checksums           rmd160  0d55321b61f9e3b2b636ab6a88a13a5a9142af49 \
                    sha256  e600bc4f6b7591b48caabc55830a05557f071c9d0b7f3f9fdaedddd3007c222e \
                    size    131634

python.versions     27

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

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} ChangeLog.txt LICENSE.txt README.md \
            ${destroot}${docdir}
        file copy ${worksrcpath}/experimental ${worksrcpath}/test ${worksrcpath}/tools ${destroot}${docdir}
    }

    livecheck.type      none
}
