# -*- 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
name                py-$base_name
version             1.6.1
python.versions     27 35 36 37
revision            1
platforms           darwin
maintainers         {gmail.com:esafak @esafak} openmaintainer
license             MIT

description         A Python data analysis library that is optimized for humans instead of machines
long_description    \
    agate is a Python data analysis library that is optimized for humans instead of machines. \
    It is an alternative to numpy and pandas that solves real-world problems with readable code.

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

checksums           rmd160  fa5b201c56cd0208192a9bd0adc5d72f755c1105 \
                    sha256  c93aaa500b439d71e4a5cf088d0006d2ce2c76f1950960c8843114e5f361dfd3 \
                    size    137280

distname            $base_name-${version}

if {${name} ne ${subport}} {
    livecheck.type      none

    depends_build-append \
                        port:py${python.version}-coverage \
                        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}-babel \
                        port:py${python.version}-cssselect \
                        port:py${python.version}-isodate \
                        port:py${python.version}-leather \
                        port:py${python.version}-lxml \
                        port:py${python.version}-parsedatetime \
                        port:py${python.version}-slugify \
                        port:py${python.version}-pytimeparse \
                        port:py${python.version}-six \
                        port:py${python.version}-tz
} else {
    livecheck.type      regex
    livecheck.url       ${homepage}
    livecheck.regex     $base_name (\\d+(\\.\\d+)+)
}
