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

set base_name       agate-excel
name                py-agate-excel
version             0.2.3
python.versions     27 35 36 37
platforms           darwin
maintainers         {gmail.com:esafak @esafak} openmaintainer
license             MIT

description         Adds read support for Excel files (xls and xlsx) to agate
long_description    ${description}

homepage            https://pypi.python.org/pypi/$base_name
master_sites        pypi:a/$base_name

checksums           rmd160  1e8bc5c720e70f1d7246a2bf358e8fb734e08c00 \
                    sha256  8f255ef2c87c436b7132049e1dd86c8e08bf82d8c773aea86f3069b461a17d52 \
                    size    153880

distname            $base_name-${version}

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-nose \
                        port:py${python.version}-setuptools \
                        port:py${python.version}-sphinx \
                        port:py${python.version}-sphinx_rtd_theme \
                        port:py${python.version}-tox

    depends_lib-append  port:py${python.version}-agate \
                        port:py${python.version}-openpyxl \
                        port:py${python.version}-xlrd

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${homepage}
    livecheck.regex     $base_name (\\d+(\\.\\d+)+)
}
