# -*- 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
description PyMVPA is a Python module intended to ease pattern classification analyses of large datasets.
long_description ${description}. In the neuroimaging contexts such analysis techniques are also known as decoding or MVPA analysis. PyMVPA provides high-level abstraction of typical processing steps and a number of implementations of some popular algorithms.
homepage http://www.pymvpa.org
git.url https://github.com/PyMVPA/PyMVPA.git
git.branch maint/${version}
depends_lib port:py26-numpy \
depends_build port:git-core
configure.args --with-system-libsvm
build.args --with-system-libsvm
if {[file exists ${prefix}/share/doc/mvpa]} {
ui_error "It appears the 2.5 version of mvpa is installed"
ui_error "Only one version of pymvpa can be installed at one time"
return -code error "multiple mvpa installs detected"
if {![variant_isset no_shogun]} {
if {![file exists ${python.pkgd}/sg.so]} {
ui_error "To install pymvpa with the shogun variant, shogun must be installed with the python variant."
return -code error "incompatible shogun installation"
variant no_shogun description {Do not build shogun} {
depends_lib-delete port:shogun
variant gcc43 conflicts gcc44 description {build with gcc 4.3} {
depends_build-append port:gcc43
variant gcc44 conflicts gcc43 description {build with gcc 4.4} {
depends_build-append port:gcc44
variant gcc45 conflicts gcc43 gcc44 description {build with gcc 4.5} {
depends_build-append port:gcc45
if {[variant_isset gcc43]} {
} elseif {[variant_isset gcc45]} {
set gccnumber [join [split ${gccversion} .] ""]
configure.compiler macports-gcc-${gccversion}
configure.env CC=${prefix}/bin/gcc-mp-${gccversion} \
CPP=${prefix}/bin/g++-mp-${gccversion}
build.env-append CC=${prefix}/bin/gcc-mp-${gccversion} \
CPP=${prefix}/bin/g++-mp-${gccversion} \
CCFLAGS="-I${prefix}/include -L${prefix}/lib" \