# -*- 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                TinySVM
version             0.09
revision            1
categories          math
platforms           darwin
maintainers         nomaintainer
license             LGPL-2.1

description         Support Vector Machines (SVMs)
long_description    TinySVM is an implementation of Support Vector Machines (SVMs), \
                    for the problem of pattern recognition. Support Vector Machines \
                    is  a new generation learning algorithms based on recent advances \
                    in statistical learning theory, and applied to large number of \
                    real-world applications, such as text categorization, hand-written \
                    character recognition.

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

checksums           sha1    9c3c36454c475180ef6646d059376f35549cad08 \
                    rmd160  d44586810d4776a251cda4a08b1aa9148108c8e6

post-extract {
    move ${worksrcpath}/configure.in ${worksrcpath}/configure.ac
}

patchfiles          patch-aclocal.m4.diff \
                    patch-configure.ac.diff

# Teach configure script how to build modern dylibs.
use_autoreconf      yes

configure.cppflags-append -D__GNU_LIBRARY__

test.run            yes
test.target         check

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