# -*- 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

name                py-nevow
github.setup        twisted nevow 0.14.4 nevow-
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
license             MIT
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer
description         A Web Application Construction Kit
long_description    Nevow is a next-generation web application templating \
                    system, based on the ideas developed in the Twisted Woven \
                    package. Its main focus is on separating the HTML template \
                    from both the business logic and the display logic, while \
                    allowing the programmer to write pure Python code as much \
                    as possible.

checksums           rmd160  0428d943012e3f4c56764f98a6460cff8739e1ea \
                    sha256  8076ede84656f978b40a2d6668dfeff2b707ce5d03c0b75e912098bc223aa188 \
                    size    556328

python.versions     27

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

    depends_lib-append	\
                    port:py${python.version}-twisted

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} LICENSE README.rst\
            NEWS.rst ChangeLog ${destroot}${docdir}
        file delete ${destroot}${docdir}/examples
        file copy ${worksrcpath}/examples ${destroot}${docdir}
    }

    livecheck.type  none
}
