Ticket #17935: Portfile

File Portfile, 2.4 KB (added by krunk7@…, 15 years ago)

Portfile-enhanced (added support for several other libraries)

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
9#version                 0.4
10categories              python
11
12platforms               darwin
13maintainers             jameskyle@ucla.edu
14description             PyMVPA is a Python module intended to ease pattern classification analyses of large datasets.
15
16long_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.
17
18homepage                http://www.pymvpa.org
19fetch.type              git
20git.url                 git://git.debian.org/git/pkg-exppsy/pymvpa.git
21#git.branch              origin/maint/0.4
22
23depends_lib             port:py25-numpy \
24                        port:git-core
25configure.args                                 
26
27build.env               CFLAGS='-I${prefix}/include -L${prefix}/lib'
28
29patch.pre_args          -p1
30patchfiles              patch-mvpa.diff
31
32default_variants        +pywavelets +libsvm +hcluster +pynifti
33
34variant scipy description {Add support for scipy libraries} {
35    depends_lib-append port:py25-scipy
36}
37
38variant pynifti description {Add support for the Nifti file format} {
39    depends_lib-append port:py25-pynifti
40}
41
42variant hcluster description {perform cluster analysis and plot dendograms of results} {
43    depends_lib-append port:py25-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:py25-matplotlib
56}
57
58variant pywavelet description {include support for pywavelet module} {
59    depends_lib-append port:py25-PyWavelets
60}
61build {
62    system "cd ${worksrcpath} && ${build.env} python2.5 setup.py build_ext ${configure.args}"
63    system "cd ${worksrcpath} && ${build.env} python2.5 setup.py build ${configure.args}"
64}