# -*- 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        scanny python-pptx 1.0.2 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-pptx
python.versions     310 311 312 313 314
license             MIT
maintainers         {eborisch @eborisch} \
                    openmaintainer
supported_archs     noarch
platforms           {darwin any}

description         Python module for creating and updating PowerPoint files.

long_description    A typical use would be generating a customized PowerPoint \
                    presentation from database content, downloadable by\
                    clicking a link in a web application. Several developers\
                    have used it to automate production of presentation-ready\
                    engineering status reports based on information held in\
                    their work management system. It could also be used for\
                    making bulk updates to a library of presentations or\
                    simply to automate the production of a slide or two that\
                    would be tedious to get right by hand.

checksums           rmd160  3c27dede242ed5fd7a3ffd48902f51e5b60285fa \
                    sha256  edccd96b257268d4a8761d899a814aaea4f1aaccef3babe9edc315d12bd694b7 \
                    size    50268082

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

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