# -*- 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 115160 2013-12-27 08:31:01Z hum@macports.org $

PortSystem          1.0

name                yakmo
version             2013-12-25
categories          math textproc
maintainers         hum openmaintainer

description         C++ implementation of robust, efficient alternative k-means clustering

long_description    Yakmo implements robust, efficient k-means clustering with \
                    triangular inequality and smart initialization, while \
                    supporting alternative clustering outputs. The use of the \
                    triangular inequality allows k-means to skip unnecessary \
                    distance calculations, while the smart initialization by \
                    randomized seeding (k-means++) not only improves solution \
                    accuracy but also accelerates the algorithm convergence. In \
                    addition, you can obtain alternative clusterings via \
                    orthogonalization.

homepage            http://www.tkl.iis.u-tokyo.ac.jp/~ynaga/yakmo/
platforms           darwin
license             {GPL-2 LGPL-2.1}

master_sites        ${homepage}
checksums           rmd160  411a443fc452a790c9dd2affaf8d2b2f62336099 \
                    sha256  0265612a41b5bc8ca0eb53aef670310d57b81061cd5cd686984b05ef62e94e47

post-destroot {
    # install additional documents.
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS GPL LGPL \
        ${destroot}${docdir}
}

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