[46344] trunk/dports/python

blb at macports.org blb at macports.org
Mon Feb 2 21:08:38 PST 2009


Revision: 46344
          http://trac.macports.org/changeset/46344
Author:   blb at macports.org
Date:     2009-02-02 21:08:38 -0800 (Mon, 02 Feb 2009)
Log Message:
-----------
New port - python/py25-pymvpa, PyMVPA is a Python module intended to ease
pattern classification analyses of large datasets
Ticket #17935

Added Paths:
-----------
    trunk/dports/python/py25-pymvpa/
    trunk/dports/python/py25-pymvpa/Portfile
    trunk/dports/python/py25-pymvpa/files/
    trunk/dports/python/py25-pymvpa/files/patch-mvpa.diff

Added: trunk/dports/python/py25-pymvpa/Portfile
===================================================================
--- trunk/dports/python/py25-pymvpa/Portfile	                        (rev 0)
+++ trunk/dports/python/py25-pymvpa/Portfile	2009-02-03 05:08:38 UTC (rev 46344)
@@ -0,0 +1,64 @@
+# -*- 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
+# $Id$
+
+PortSystem              1.0
+PortGroup               python25 1.0
+
+name                    py25-pymvpa
+version                 current
+#version                 0.4
+categories              python
+
+platforms               darwin
+maintainers             ucla.edu:jameskyle
+description             PyMVPA is a Python module intended to ease pattern classification analyses of large datasets.
+
+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. 
+
+homepage                http://www.pymvpa.org
+fetch.type              git
+git.url                 git://git.debian.org/git/pkg-exppsy/pymvpa.git
+#git.branch              origin/maint/0.4
+
+depends_lib             port:py25-numpy \
+                        port:git-core
+configure.args                                  
+
+build.env               CFLAGS='-I${prefix}/include -L${prefix}/lib'
+
+patch.pre_args          -p1
+patchfiles              patch-mvpa.diff
+
+default_variants        +pywavelets +libsvm +hcluster +pynifti
+
+variant scipy description {Add support for scipy libraries} {
+    depends_lib-append port:py25-scipy
+}
+
+variant pynifti description {Add support for the Nifti file format} {
+    depends_lib-append port:py25-pynifti
+}
+
+variant hcluster description {perform cluster analysis and plot dendograms of results} {
+    depends_lib-append port:py25-hcluster
+}
+
+variant libsvm description {compile the libsvm classifier extension} {
+    depends_lib-append port:libsvm \
+                       port:swig
+    configure.args          --with-libsvm
+}
+
+variant matplotlib description {include support for the matplotlib library} {
+    ui_msg "The default matplotlib build may fail to compile."
+    ui_msg "If this is the case, please build with +wxpython variant."
+    depends_lib-append port:py25-matplotlib
+}
+
+variant pywavelet description {include support for pywavelet module} {
+    depends_lib-append port:py25-PyWavelets
+}
+build {
+    system "cd ${worksrcpath} && ${build.env} python2.5 setup.py build_ext ${configure.args}"
+    system "cd ${worksrcpath} && ${build.env} python2.5 setup.py build ${configure.args}"
+}


Property changes on: trunk/dports/python/py25-pymvpa/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/py25-pymvpa/files/patch-mvpa.diff
===================================================================
--- trunk/dports/python/py25-pymvpa/files/patch-mvpa.diff	                        (rev 0)
+++ trunk/dports/python/py25-pymvpa/files/patch-mvpa.diff	2009-02-03 05:08:38 UTC (rev 46344)
@@ -0,0 +1,14 @@
+diff --git a/mvpa/clfs/libsvmc/svmc.i b/mvpa/clfs/libsvmc/svmc.i
+index 2b50c85..16bfa5d 100644
+--- a/mvpa/clfs/libsvmc/svmc.i
++++ b/mvpa/clfs/libsvmc/svmc.i
+@@ -146,9 +146,6 @@ struct svm_model
+ 				// 0 if svm_model is created by svm_train
+ };
+ 
+-/* one really wants to configure verbosity within python! */
+-void svm_set_verbosity(int verbosity_flag);
+-
+ struct svm_model *svm_train(const struct svm_problem *prob, const struct svm_parameter *param);
+ 
+ void svm_cross_validation(const struct svm_problem *prob, const struct svm_parameter *param, int nr_fold, double *target);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090202/95693522/attachment.html>


More information about the macports-changes mailing list