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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python25 1.0 |
---|
6 | |
---|
7 | name py25-pymvpa |
---|
8 | version 0.4.1 |
---|
9 | categories python |
---|
10 | |
---|
11 | platforms darwin |
---|
12 | maintainers jameskyle@ucla.edu |
---|
13 | description PyMVPA is a Python module intended to ease pattern classification analyses of large datasets. |
---|
14 | |
---|
15 | 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. |
---|
16 | |
---|
17 | homepage http://www.pymvpa.org |
---|
18 | fetch.type git |
---|
19 | git.url git://git.debian.org/git/pkg-exppsy/pymvpa.git |
---|
20 | git.branch upstream/0.4.1 |
---|
21 | |
---|
22 | depends_lib port:py25-numpy \ |
---|
23 | port:git-core \ |
---|
24 | port:py25-setuptools |
---|
25 | configure.args |
---|
26 | |
---|
27 | build.env CFLAGS='-I${prefix}/include -L${prefix}/lib' |
---|
28 | |
---|
29 | patch.pre_args -p1 |
---|
30 | patchfiles patch-mvpa.diff |
---|
31 | |
---|
32 | default_variants +pywavelet +libsvm +hcluster +pynifti +shogun +scipy |
---|
33 | |
---|
34 | variant scipy description {Add support for scipy libraries} { |
---|
35 | depends_lib-append port:py25-scipy |
---|
36 | } |
---|
37 | |
---|
38 | variant pynifti description {Add support for the Nifti file format} { |
---|
39 | depends_lib-append port:py25-pynifti |
---|
40 | } |
---|
41 | |
---|
42 | variant hcluster description {perform cluster analysis and plot dendograms of results} { |
---|
43 | depends_lib-append port:py25-hcluster |
---|
44 | } |
---|
45 | |
---|
46 | variant libsvm description {compile the libsvm classifier extension} { |
---|
47 | depends_lib-append port:libsvm \ |
---|
48 | port:swig |
---|
49 | configure.args --with-libsvm |
---|
50 | } |
---|
51 | |
---|
52 | variant matplotlib description {include support for the matplotlib library} { |
---|
53 | ui_msg "The default matplotlib build may fail to compile." |
---|
54 | ui_msg "If this is the case, please build with +wxpython variant." |
---|
55 | depends_lib-append port:py25-matplotlib |
---|
56 | } |
---|
57 | |
---|
58 | variant pywavelet description {include support for pywavelet module} { |
---|
59 | depends_lib-append port:py25-pywavelets |
---|
60 | } |
---|
61 | |
---|
62 | variant shogun description {compile support for the py25-shogun classifiers} { |
---|
63 | depends_lib-append port:py25-shogun |
---|
64 | } |
---|
65 | build { |
---|
66 | system "cd ${worksrcpath} && ${build.env} python2.5 setup.py build_ext ${configure.args}" |
---|
67 | system "cd ${worksrcpath} && ${build.env} python2.5 setup.py build ${configure.args}" |
---|
68 | } |
---|
69 | |
---|
70 | post-destroot { |
---|
71 | xinstall -m 755 -d "${destroot}${prefix}/share/doc/" |
---|
72 | file delete ${worksrcpath}/doc/todo.txt |
---|
73 | file delete ${worksrcpath}/doc/legal.txt |
---|
74 | file delete ${worksrcpath}/doc/changelog.txt |
---|
75 | |
---|
76 | file copy ${worksrcpath}/TODO ${worksrcpath}/doc/ |
---|
77 | file copy ${worksrcpath}/COPYING ${worksrcpath}/doc/ |
---|
78 | file copy ${worksrcpath}/Changelog ${worksrcpath}/doc/ |
---|
79 | file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/mvpa |
---|
80 | } |
---|