# -*- 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-pymorph
version             0.96
license             BSD
platforms           darwin
supported_archs     noarch

maintainers         stromnov openmaintainer

description         Image morphology library.
long_description    Collection of pure python implementations of many \
                    image morphology functions.

homepage            http://luispedro.org/software/pymorph/
master_sites        pypi:p/pymorph/

distname            pymorph-${version}

checksums           md5     ed3b9b30b8b0286996e3d26eea8b4bbf \
                    sha1    48fdfa2c3d16806296ad26f4e76305976ffc7042 \
                    rmd160  fb32cb593ee195898437123027407905b6149e27

python.versions     26

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

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

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       https://pypi.python.org/pypi/pymorph/json
    livecheck.regex     "pymorph-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}