Ticket #18557: Portfile

File Portfile, 3.0 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                 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              upstream/0.4.1
21
22depends_lib             port:py25-numpy \
23                        port:git-core \
24                        port:py25-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: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}
61
62variant shogun description {compile support for the py25-shogun classifiers} {
63    depends_lib-append port:py25-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}
69
70post-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}