# -*- 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             2.1.0
revision            0

maintainers         nomaintainer
supported_archs     noarch
platforms           {darwin any}
license             PSF

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

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

checksums           rmd160  389dbb9469880b11c36af3b485a080ce47b2c809 \
                    sha256  eb74d223078a28cf015fa88966c6e34f2d18d75127318d65c144bed9afc4263f \
                    size    277757

python.versions     312

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

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst \
            ${destroot}${docdir}
    }
}
