# -*- 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-formencode
python.rootname     FormEncode
version             1.3.1
revision            0

maintainers         nomaintainer
platforms           darwin
supported_archs     noarch
license             PSF

description         HTML form validation, generation, and conversion package
long_description    ${description}

homepage            https://github.com/formencode/formencode

checksums           rmd160  2a9a47791bf31eec71456b6029a154223e8e4e73 \
                    sha256  ada2f51792b1b484e5bb7b6cc14acfc1bc11fafc967cf015cd57e856053ca7f6 \
                    size    197305

python.versions     27 37 38

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} README.rst \
            ${destroot}${docdir}
    }

    livecheck.type  none
}
