Ticket #17935: Portfile.3

File Portfile.3, 2.2 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
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
27default_variants        +pywavelets +libsvm +hcluster +pynifti
28
29variant scipy description {Add support for scipy libraries} {
30    depends_lib-append port:py25-scipy
31}
32
33variant pynifti description {Add support for the Nifti file format} {
34    depends_lib-append port:py25-pynifti
35}
36
37variant hcluster description {perform cluster analysis and plot dendograms of results} {
38    depends_lib-append port:py25-hcluster
39}
40
41variant libsvm description {compile the libsvm classifier extension} {
42    depends_lib-append port:libsvm \
43                       port:swig
44    configure.args          --with-libsvm
45}
46
47variant matplotlib description {include support for the matplotlib library} {
48    ui_msg "The default build may fail to build."
49    ui_msg "If this is the case, please build with +wspython variant."
50    depends_lib-append port:matplotlib
51}
52
53variant pywavelet description {include support for pywavelet module} {
54    depends_lib-append port:py25-PyWavelet
55}
56build {
57    system "cd ${worksrcpath} && ${build.env} python2.5 setup.py build_ext ${configure.args}"
58}