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

github.setup        gitpython-developers smmap 3.0.4 v
name                py-smmap
maintainers         nomaintainer
platforms           darwin
license             BSD

description         Pure python sliding memory map manager
long_description    ${description}

checksums           rmd160  2c46988e9e422f79cf52376ae131ad34efd0f7d6 \
                    sha256  48491857fe12b7aa59504ea9efba07b056214fbc9380b8c2aa1eda1d76d1dd1f \
                    size    29227

python.versions     27 35 36 37 38 39

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

    depends_test-append \
                    port:py${python.version}-coverage \
                    port:py${python.version}-nose

    test.run        yes
    test.cmd        nosetests-${python.branch}
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
} else {
    github.livecheck.regex  {([^"dev]+)}
}
