# -*- 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 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           github 1.0

github.setup        scikit-image scikit-image 0.8.2 v
name                py-${name}
revision            1
categories-append   science
platforms           darwin
license             BSD

python.versions     26 27 32 33

maintainers         stromnov openmaintainer

description         Image processing algorithms for SciPy.

long_description    Image processing algorithms for SciPy, including IO, \
                    morphology, filtering, warping, color manipulation, \
                    object detection, etc.

homepage            http://scikit-image.org/

checksums           rmd160  a759f6a55c8556f9677b7d67d0bad3c69a385c4e \
                    sha256  158e77a2f1169caf8ee48c0b8f0e0263a3a3e93636a7805dda5457e6006ea42d

if {$subport != $name} {
    patchfiles          patch-skimage__build.py.diff

    depends_build-append \
                        port:py${python.version}-cython

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

    depends_run-append  port:py${python.version}-scipy

    post-patch {
        reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/skimage/_build.py
        reinplace "s|@python.branch@|${python.branch}|g" ${worksrcpath}/skimage/_build.py
    }

    livecheck.type      none
}
