# -*- 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
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 \
long_description ${description}
homepage https://nedbatchelder.com/code/cog/
master_sites pypi:c/${python.rootname}
distname ${python.rootname}-${version}
checksums rmd160 705f49591837155f5f29d42e7780cbb09f836509 \
sha256 5e5da2bcfc4e4750c66cecb80ea4eaed1ef4fddd3787c989d4f5bfffb1152d6a \
python.versions 27 34 35 36 37
if {${name} ne ${subport}} {
if {${python.version} in "27 34"} {
distname ${python.rootname}-${version}
checksums rmd160 253834c2612eca68ac38d5618716768360e830dd \
sha256 f8cf2288fb5a2087eb4a00d8b347ddc86e9058d4ab26b8c868433eb401adfe1c \
port:py${python.version}-setuptools
port:py${python.version}-pytest
test.cmd py.test-${python.branch}
test.env PYTHONPATH=${worksrcpath}/build/lib
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
if {${python.version} in "27 34"} {
xinstall -m 0644 -W ${worksrcpath} README.txt LICENSE.txt \
xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE.txt \