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

github.setup        python-openxml python-docx 1.2.0 v
github.tarball_from archive
name                py-docx
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         nomaintainer

description         Create and update Microsoft Word .docx files
long_description    {*}${description}

checksums           rmd160  62145f7bb69d7e27769dbb5f646a3302135d4391 \
                    sha256  a0ddaa6b69027590db0813a6e8f1b84426770e59b6c00096483f04ce90b6672f \
                    size    45429027

python.versions     313

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-lxml \
                    port:py${python.version}-typing_extensions

    depends_test-append \
                    port:py${python.version}-mock \
                    port:py${python.version}-parsing

    test.run        yes

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