# -*- 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
# $Id: Portfile 92899 2012-05-10 14:01:59Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-mahotas
version             0.8
revision            0
categories          python
license             GPL
platforms           darwin

maintainers         stromnov openmaintainer

description         Python Image Processing Library
long_description    ${description}

homepage            http://luispedro.org/software/mahotas/
master_sites        http://pypi.python.org/packages/source/m/mahotas/

distname            mahotas-${version}

checksums           rmd160  ae11915aef1955901b44ea364a461b00a2b0a79c \
                    sha256  b443a054c0ab0e993276936afdd999a3b1ddf7ccff18029f44870cb3d15bc1a9

python.default_version  27
python.versions     26 27

if {$subport != $name} {
    depends_build-append    port:py${python.version}-distribute

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

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "mahotas-(\\d+(?:\\.\\d+)*)${extract.suffix}"
