# -*- 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
# $Id: Portfile 120330 2014-05-23 14:02:51Z stromnov@macports.org $

PortSystem          1.0
PortGroup           github 1.0
PortGroup           python 1.0

github.setup        PyMVPA PyMVPA 2.3.1 upstream/

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

python.versions     27 33 34

maintainers         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  516a6c02a0d6750e1d4ff671009f29b9dcf9075d \
                    sha256  0e8c910493b353b7bda24a1c33114fabeb61286b2a4fb86304a9b2a426e01de9

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}"
}
