# -*- 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 0.8.11 v
github.tarball_from archive
name                py-docx
revision            1

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  99bc52a17948452ca5d848bd8a6eb54e112e05fe \
                    sha256  4549c780904d4455ac4098cb6c2a09c363bd082b50adbb88ddf4e5e6c212cba0 \
                    size    45227065

python.versions     39 310 311

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

    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.rst \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
