# -*- 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-cog
python.rootname     cogapp
version             3.4.1
revision            0

supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         nomaintainer

description         Cog is a code generation tool. It lets you use pieces of Python \
                    code as generators in your source files to generate whatever code \
                    you need.
long_description    {*}${description}

homepage            https://nedbatchelder.com/code/cog/

checksums           rmd160  fecd51c2bd1817d17abd64dcb241a89c0aeb5a0c \
                    sha256  a806d5db9e318a1a2d3fce988008179168e7db13e5e55b19b79763f9bb9d2982 \
                    size    53776

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    test.run        yes

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