# $Id: Portfile 60005 2009-10-29 01:30:17Z jmr@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-scikits-ann
version             0.2
revision 			1
maintainers         mnick

categories-append   science
description         scikits.ann is a SWIG python wrapper for the Approximate Nearest Neighbor (ANN) Library
long_description    ${description} \
                    scikits.ann provides an immutable kdtree implementation (via ANN) which can \
                    perform k-nearest neighbor and approximate k-nearest neighbor searches.

platforms           darwin

homepage            http://scikits.appspot.com/ann
master_sites        http://pypi.python.org/packages/source/s/scikits.ann/
distname            scikits.ann-${version}.dev-r803

checksums           md5     a0380cdc31fd705c15eb50f483bbe5fb \
                    sha1    731113c04686b5178cae58df90e7f7b511206305 \
                    rmd160  b51135fd25cdcd3b4d229186153589f08e8dfa36

patchfiles          patch-ann_init.diff

depends_lib         port:py26-numpy \
                    port:py26-scikits-module \
                    port:swig-python \
                    port:libANN

build.env-append    CFLAGS=-I${prefix}/include

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     <i>version (\[\.\\d\]+\\d)

post-destroot {
    # scikits/__init__.py is provided by scikits-module
    file delete ${destroot}${python.pkgd}/scikits/__init__.py
}
