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

github.setup        PyMVPA PyMVPA 2.6.5 upstream/

name                py-pymvpa
revision            0
categories-append   science math
platforms           darwin
license             MIT

python.versions     27 34 35 36 37

maintainers         {stromnov @stromnov} openmaintainer

description         MultiVariate Pattern Analysis (MVPA) in Python.

long_description    PyMVPA is a Python package intended to ease statistical \
                    learning analyses of large datasets. It offers \
                    an extensible framework with a high-level interface \
                    to a broad range of algorithms for classification, \
                    regression, feature selection, data import and export. \
                    While it is not limited to the neuroimaging domain, \
                    it is eminently suited for such datasets.

homepage            http://www.pymvpa.org

checksums           rmd160  6d208bb32a9546a7937595e8308665448cfb9f8a \
                    sha256  729f4ed734f47cfd1dcc32c09c8623e3d1d08962803c1e90e411e8f653a5bcac \
                    size    8161313

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-setuptools
    depends_lib-append  port:py${python.version}-numpy \
                        port:libsvm

    patchfiles-append   patch-setup.py.diff

    post-patch {
        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
    }

    build.args-append   --with-system-libsvm

    livecheck.type      none
} else {
    livecheck.regex     "archive/upstream/(\[^\"\]+)${extract.suffix}"
}