# -*- 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           github 1.0
PortGroup           boost 1.0

github.setup        JohnLangford vowpal_wabbit 8.3.1
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            3
categories          math
license             BSD

maintainers         {stromnov @stromnov} openmaintainer

description         a fast online learning tool

long_description    Vowpal Wabbit is the essence of speed in machine learning, able to \
                    learn from terafeature datasets with ease. Via parallel learning, \
                    it can exceed the throughput of any single machine network interface \
                    when doing linear learning, a first amongst learning algorithms.

homepage            http://hunch.net/~vw/

checksums           rmd160  f3341b16d1eb25d26fcd2222c4fca0557e273a43 \
                    sha256  b88b5bb2638ca689176903f7e30a401e11defc755a1c3f6d6b6e00a5757a8655

configure.args-append \
                    --with-boost-libdir=[boost::lib_dir] \
                    --with-boost-program-options=boost_program_options-mt

post-destroot {
    # install an additional document.
    set doc_dir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${doc_dir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        LICENSE \
        README.md \
        ${doc_dir}
}

compiler.cxx_standard 2011