Ticket #18556: Portfile

File Portfile, 2.6 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               python26 1.0
6
7name                    py26-pymvpa
8version                 0.4.1
9categories              python
10
11platforms               darwin
12maintainers             jameskyle@ucla.edu
13description             PyMVPA is a Python module intended to ease pattern classification analyses of large datasets.
14
15long_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
17homepage                http://www.pymvpa.org
18fetch.type              git
19git.url                 git://git.debian.org/git/pkg-exppsy/pymvpa.git
20git.branch              origin/maint/0.4.1
21
22depends_lib             port:py26-numpy \
23                        port:git-core \
24                        port:py26-setuptools
25configure.args                                 
26
27build.env               CFLAGS='-I${prefix}/include -L${prefix}/lib'
28
29patch.pre_args          -p1
30patchfiles              patch-mvpa.diff
31
32default_variants        +pywavelet +libsvm +hcluster +pynifti +shogun +scipy
33
34variant scipy description {Add support for scipy libraries} {
35    depends_lib-append port:py26-scipy
36}
37
38variant pynifti description {Add support for the Nifti file format} {
39    depends_lib-append port:py26-pynifti
40}
41
42variant hcluster description {perform cluster analysis and plot dendograms of results} {
43    depends_lib-append port:py26-hcluster
44}
45
46variant libsvm description {compile the libsvm classifier extension} {
47    depends_lib-append port:libsvm \
48                       port:swig
49    configure.args          --with-libsvm
50}
51
52variant 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:py26-matplotlib
56}
57
58variant pywavelet description {include support for pywavelet module} {
59    depends_lib-append port:py26-pywavelets
60}
61
62variant shogun description {compile support for the py26-shogun classifiers} {
63    depends_lib-append port:py26-shogun
64}
65build {
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}