# -*- 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           github 1.0
PortGroup           python 1.0

# version 3 is not backwards compatible, leave this at version 2
# for the tophat and xml2rfc ports that depend on it
github.setup        chaimleib intervaltree 2.1.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-intervaltree2
revision            0

platforms           {darwin any}
supported_archs     noarch
license             Apache-2
maintainers         nomaintainer

description         A mutable, self-balancing interval tree for Python 2 and 3
long_description    {*}${description}. Queries may be by point, by range overlap, \
                    or by range envelopment.

checksums           rmd160  1e90b48657b37f5e8577ba9fd58c21efa9d3df69 \
                    sha256  b2e0b08cb2a8e9ef928809465d93882a62dcfbd926dbaa3e85b1c1238e7df699 \
                    size    1237455

python.versions     27
livecheck.type      none

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

    depends_lib-append \
                    port:py${python.version}-sortedcontainers
}
