Ticket #17935: Portfile.2

File Portfile.2, 1.8 KB (added by krunk7@…, 15 years ago)

Portfile

Line 
1# -*- 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
2# $Id: Portfile 44414 2008-12-28 05:42:53Z mcalhoun@macports.org $
3
4PortSystem              1.0
5PortGroup               python25 1.0
6
7name                    py25-pymvpa
8version                 current
9categories              python
10platforms               darwin
11maintainers             jameskyle@ucla.edu
12description             PyMVPA is a Python module intended to ease pattern classification analyses of large datasets.
13long_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.
14
15homepage                http://www.pymvpa.org
16fetch.type              git
17git.url                 git://git.debian.org/git/pkg-exppsy/pymvpa.git
18
19depends_lib             port:py25-numpy
20configure.args                                 
21
22build.env               CFLAGS='-I${prefix}/include -L${prefix}/lib'
23
24patch.pre_args          -p1
25patchfiles              patch-mvpa.diff
26
27variant scipy description {Add support for scipy libraries} {
28    depends_lib-append port:py25-scipy
29}
30
31variant pynifti description {Add support for the Nifti file format} {
32    depends_lib-append port:py25-pynifti
33}
34
35variant hcluster description {perform cluster analysis and plot dendograms of results} {
36    depends_lib-append port:py25-hcluster
37}
38
39variant libsvm description {compile the libsvm classifier extension} {
40    depends_lib-append port:libsvm \
41                       port:swig
42    configure.args          --with-libsvm
43}
44
45build {
46    system "cd ${worksrcpath} && ${build.env} python2.5 setup.py build_ext ${configure.args}"
47}