[56254] trunk/dports/python
jameskyle at macports.org
jameskyle at macports.org
Tue Aug 25 12:51:53 PDT 2009
Revision: 56254
http://trac.macports.org/changeset/56254
Author: jameskyle at macports.org
Date: 2009-08-25 12:51:52 -0700 (Tue, 25 Aug 2009)
Log Message:
-----------
Added python 2.6 version of pymvpa
Added Paths:
-----------
trunk/dports/python/py26-pymvpa/
trunk/dports/python/py26-pymvpa/Portfile
trunk/dports/python/py26-pymvpa/files/
trunk/dports/python/py26-pymvpa/files/patch-mvpa.diff
trunk/dports/python/py26-pymvpa/files/setup-py.diff
Added: trunk/dports/python/py26-pymvpa/Portfile
===================================================================
--- trunk/dports/python/py26-pymvpa/Portfile (rev 0)
+++ trunk/dports/python/py26-pymvpa/Portfile 2009-08-25 19:51:52 UTC (rev 56254)
@@ -0,0 +1,93 @@
+# -*- 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 python26 1.0
+
+name py26-pymvpa
+version 0.4.2
+categories python
+
+platforms darwin
+maintainers 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 upstream/${version}
+
+depends_lib port:py26-numpy \
+ port:git-core \
+ port:py26-setuptools
+
+depends_build port:git-core
+
+configure.args
+
+patch.pre_args -p1
+
+patchfiles patch-mvpa.diff setup-py.diff
+
+build.target build_ext
+
+default_variants +pywavelet +libsvm +hcluster +pynifti +shogun +scipy
+
+variant scipy description {Add support for scipy libraries} {
+ depends_lib-append port:py26-scipy
+}
+
+variant pynifti description {Add support for the Nifti file format} {
+ depends_lib-append port:py26-pynifti
+}
+
+variant hcluster description {perform cluster analysis and plot dendograms of results} {
+ depends_lib-append port:py26-hcluster
+}
+
+variant libsvm description {compile the libsvm classifier extension} {
+ depends_lib-append port:libsvm \
+ port:swig
+ configure.args-append --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:py26-matplotlib
+}
+
+variant pywavelet description {include support for pywavelet module} {
+ depends_lib-append port:py26-pywavelets
+}
+
+variant shogun description {compile support for the python shogun classifiers} {
+ depends_lib-append port:shogun
+}
+
+pre-extract {
+ if {[variant_isset shogun]} {
+ if {![file exists ${python.pkgd}/sg.so]} {
+ ui_error "To install pymvpa with the shogun variant, shogun must be installed with the python variant."
+ return -code error "incompatible shogun installation"
+ }
+ }
+}
+
+post-destroot {
+ xinstall -m 755 -d "${destroot}${prefix}/share/doc/"
+ file delete ${worksrcpath}/doc/todo.txt
+ file delete ${worksrcpath}/doc/legal.txt
+ file delete ${worksrcpath}/doc/changelog.txt
+
+ file copy ${worksrcpath}/TODO ${worksrcpath}/doc/
+ file copy ${worksrcpath}/COPYING ${worksrcpath}/doc/
+ file copy ${worksrcpath}/Changelog ${worksrcpath}/doc/
+ file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/mvpa
+}
+
+livecheck.url http://git.debian.org/?p=pkg-exppsy/pymvpa.git
+livecheck.regex {upstream\/([0-9.]+)}
Property changes on: trunk/dports/python/py26-pymvpa/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/py26-pymvpa/files/patch-mvpa.diff
===================================================================
--- trunk/dports/python/py26-pymvpa/files/patch-mvpa.diff (rev 0)
+++ trunk/dports/python/py26-pymvpa/files/patch-mvpa.diff 2009-08-25 19:51:52 UTC (rev 56254)
@@ -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);
Added: trunk/dports/python/py26-pymvpa/files/setup-py.diff
===================================================================
--- trunk/dports/python/py26-pymvpa/files/setup-py.diff (rev 0)
+++ trunk/dports/python/py26-pymvpa/files/setup-py.diff 2009-08-25 19:51:52 UTC (rev 56254)
@@ -0,0 +1,21 @@
+--- py25-pymvpa-0.4.2/setup.py.old 2009-05-27 20:12:50.000000000 -0700
++++ py25-pymvpa-0.4.2/setup.py 2009-05-27 20:14:12.000000000 -0700
+@@ -38,17 +38,7 @@
+ if sys.argv.count('--with-libsvm'):
+ # clean argv if necessary (or distutils will complain)
+ sys.argv.remove('--with-libsvm')
+- # look for libsvm in some places, when local one is not used
+- if not have_libsvm:
+- if not sys.platform.startswith('win'):
+- include_dirs += ['/usr/include/libsvm-2.0/libsvm',
+- '/usr/include/libsvm',
+- '/usr/local/include/libsvm',
+- '/usr/local/include/libsvm-2.0/libsvm',
+- '/usr/local/include']
+- else:
+- # no clue on windows
+- pass
++
+ have_libsvm = True
+
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090825/2dc36b13/attachment-0001.html>
More information about the macports-changes
mailing list