# -*- 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-pyslides
version             0.9.38
platforms           {darwin any}
supported_archs     noarch
license             GPL-2
maintainers         {dstrubbe @dstrubbe} openmaintainer
categories-append   graphics

description         Python-based tool for presentation-ready slides
long_description    {*}${description}

homepage            https://pypi.org/project/pyslides

checksums           md5     558b56742c9ce13d40a44d10949b242f \
                    rmd160  7103d3be8da4352ba2a5dd953bf3effdcaa7d322 \
                    sha256  b29bc1248812db899a601869bd9166ccd73b0310d96b9ceef78ada1c532e3773 \
                    size    6067

python.versions     27
#36 would work but some dependencies don't have py36 versions.

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-setuptools
    depends_lib-append  port:py${python.version}-matplotlib port:py${python.version}-pypdf2 \
                        port:py${python.version}-pybtex port:py${python.version}-future \
                        port:py${python.version}-Pillow
    depends_run-append  port:texlive-latex-extra
    # needs latex package type1cm in there
}
