# -*- 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-scikits-ann
version             0.2
revision            1
maintainers         nomaintainer

categories-append   science
license             LGPL-2.1+
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            https://pypi.org/project/scikits.ann
master_sites        pypi:s/scikits.ann/
distname            scikits.ann-${version}.dev-r803

checksums           rmd160  b51135fd25cdcd3b4d229186153589f08e8dfa36 \
                    sha256  9330333e7b6cf0653d9396437ee7f8f676eda863568e168623071a19c76d8aaf \
                    size    20444

python.versions     27

if {${subport} ne ${name}} {
    patchfiles          patch-ann_init.diff

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

    depends_lib-append  port:py${python.version}-numpy \
                        port:py${python.version}-scikits-module \
                        port:swig-python \
                        port:libANN

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

    post-destroot {
        # scikits/__init__.py is provided by scikits-module
        file delete ${destroot}${python.pkgd}/scikits/__init__.py
    }
    livecheck.type      none
} else {
    livecheck.version   ${version}.dev-r803
}
