# -*- 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

name                bact
version             0.13
categories          math
platforms           darwin
maintainers         nomaintainer
license             GPL

description         a Boosting Algorithm for Classification of Trees

long_description    BACT is a machine learning tool for labeled ordered trees. \
                    The important characteristic is that the input example x  \
                    is represented not in a numerical feature vector (bag-of-words) \
                    but in a labeled ordered tree.

homepage            http://chasen.org/~taku/software/bact/
master_sites        ${homepage}

checksums           sha1    cdc8815e9258868699d98449598058011e993218 \
                    rmd160  b78eae7179833accd683dccab6a148058b5f47ab

use_configure       no

variant universal   {}

build.args          CXX="${configure.cxx} [get_canonical_archflags cxx]"

test.run            yes

destroot {
    xinstall -m 755 -W ${worksrcpath} bact_learn bact_classify bact_mkmodel \
                       ${destroot}${prefix}/bin
    file mkdir ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING README bact.css index.html \
                       ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9.\]+)\\.
