# -*- 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-cubes
version             1.1
revision            0
categories-append   devel
platforms           darwin
license             BSD

python.versions     27 35 36

maintainers         {stromnov @stromnov} openmaintainer

description         Lightweight framework for Online Analytical Processing
long_description    ${description}

homepage            http://cubes.databrewery.org/
master_sites        pypi:c/cubes/

distname            cubes-${version}

checksums           rmd160  a01cf288ba56341abae7aba1e61810a686e6ec0b \
                    sha256  adb34a7d81f8bc30f03933f0f0906e9179cf9415cc2dcebcb9e8aa653442e085 \
                    size    128742

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

    if {${python.version} < 35} {
        version             1.0.1
        revision            0
        distname            cubes-${version}
        checksums           rmd160  56afb93f9384df3629f7c6d4a59c67b8833b9789 \
                            sha256  702381127f0baf8c7c67ac777087671b47c04fea56d4b468ac58efa5fd641002 \
                            size    158003
        depends_lib-append  port:py${python.version}-tz
    } else {
        depends_lib-append  port:py${python.version}-expressions
    }

    livecheck.type      none
}