# $Id: Portfile 53097 2009-06-29 14:03:12Z alakazam@macports.org $

PortSystem 1.0

name                octave-ann
version             1.0.2
categories          math science
platforms           darwin
maintainers         and.damore alakazam
description         The Octave-forge ANN package wraps the ANN library, which provides data structures and functions for computing exact and approximate nearest neighbors on an arbitrarily high dimensional point set.  
long_description    ${description}

homepage            http://octave.sourceforge.net/
master_sites        sourceforge:octave

distname            ann-$version

checksums           md5     3b383fdec459cf4f66c221e7b698aab0 \
                    sha1    5da0e67273316edbc127ab31bb3e15b89ec25a4f \
                    rmd160  4d74c6a5db17caf1d329c0fdac9fe068c0c1ddb5

depends_lib-append  port:octave 

post-destroot {
    move ${destroot}${prefix}/share/octave/octave_packages ${destroot}${prefix}/share/octave/octave_packages_${name}
}

post-activate {
    system "octave --eval \"pkg rebuild\""
}

livecheck.check regex
livecheck.url   http://octave.sourceforge.net/packages.html
livecheck.regex http://downloads\.sourceforge\.net/octave/ann-(\\d+(\\.\\d+)*)\.tar\.gz
