# -*- 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                classias
version             1.1
categories          math textproc
maintainers         nomaintainer

description         a collection of machine-learning algorithms for classification
long_description    Classias is ${description}.

homepage            http://www.chokkan.org/software/classias/
platforms           darwin
license             BSD

master_sites        http://www.chokkan.org/software/dist/
checksums           rmd160  555ac00a2d862a154181d4a5b48738351ade861d \
                    sha256  f3902a21822259663d6d232fba090bbd011456b4c3b069da2cf8fa32961eaa28

depends_lib         port:liblbfgs

# TODO: Fix this project's buggy C++ code or at least reference an upstream bug about it
compiler.blacklist  *clang*

platform darwin {
    if {${configure.cxx_stdlib} eq "libc++"} {
        known_fail  yes
        depends_lib
        depends_run
        pre-fetch {
            ui_error "$name does not build with libc++"
            return -code error "unsupported platform"
        }
    }
}

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