[113889] trunk/dports/python

stromnov at macports.org stromnov at macports.org
Sun Nov 24 22:33:03 PST 2013


Revision: 113889
          https://trac.macports.org/changeset/113889
Author:   stromnov at macports.org
Date:     2013-11-24 22:33:03 -0800 (Sun, 24 Nov 2013)
Log Message:
-----------
py-pymvpa: new port

Added Paths:
-----------
    trunk/dports/python/py-pymvpa/
    trunk/dports/python/py-pymvpa/Portfile
    trunk/dports/python/py-pymvpa/files/
    trunk/dports/python/py-pymvpa/files/patch-setup.py.diff

Added: trunk/dports/python/py-pymvpa/Portfile
===================================================================
--- trunk/dports/python/py-pymvpa/Portfile	                        (rev 0)
+++ trunk/dports/python/py-pymvpa/Portfile	2013-11-25 06:33:03 UTC (rev 113889)
@@ -0,0 +1,52 @@
+# -*- 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           github 1.0
+PortGroup           python 1.0
+
+github.setup        PyMVPA PyMVPA 2.2.0 upstream/
+
+name                py-pymvpa
+revision            0
+categories-append   science math
+platforms           darwin
+license             MIT
+
+python.versions     27
+
+maintainers         stromnov openmaintainer
+
+description         MultiVariate Pattern Analysis (MVPA) in Python.
+
+long_description    PyMVPA is a Python package intended to ease statistical \
+                    learning analyses of large datasets. It offers \
+                    an extensible framework with a high-level interface \
+                    to a broad range of algorithms for classification, \
+                    regression, feature selection, data import and export. \
+                    While it is not limited to the neuroimaging domain, \
+                    it is eminently suited for such datasets.
+
+homepage            http://www.pymvpa.org
+
+checksums           rmd160  419d02f6d83104fa5dd0be0c2823f96afd3f5a10 \
+                    sha256  3b1393886776e10f1b97b5a661d878b6943e759f969dfc054e40e867c37d4df5
+
+if {$subport != $name} {
+    depends_build-append \
+                        port:py${python.version}-setuptools
+    depends_lib-append  port:py${python.version}-numpy \
+                        port:libsvm
+
+    patchfiles-append   patch-setup.py.diff
+
+    post-patch {
+        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
+    }
+
+    build.args-append   --with-system-libsvm
+
+    livecheck.type      none
+} else {
+    livecheck.regex     "archive/upstream/(\[^\"\]+)${extract.suffix}"
+}


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

Added: trunk/dports/python/py-pymvpa/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-pymvpa/files/patch-setup.py.diff	                        (rev 0)
+++ trunk/dports/python/py-pymvpa/files/patch-setup.py.diff	2013-11-25 06:33:03 UTC (rev 113889)
@@ -0,0 +1,25 @@
+--- setup.py.orig	2013-03-30 17:53:02.000000000 +0400
++++ setup.py	2013-03-30 17:54:16.000000000 +0400
+@@ -15,7 +15,7 @@
+ from glob import glob
+ 
+ # some config settings
+-bind_libsvm = 'local' # choices: 'local', 'system', None
++bind_libsvm = 'system' # choices: 'local', 'system', None
+ 
+ libsvmc_extra_sources = []
+ libsvmc_include_dirs = []
+@@ -63,12 +63,7 @@
+     libsvmc_libraries += ['svm']
+     if not sys.platform.startswith('win'):
+         libsvmc_include_dirs += [
+-            '/usr/include/libsvm-3.0/libsvm',
+-            '/usr/include/libsvm-2.0/libsvm',
+-            '/usr/include/libsvm',
+-            '/usr/local/include/libsvm',
+-            '/usr/local/include/libsvm-2.0/libsvm',
+-            '/usr/local/include']
++            '@@PREFIX@@/include']
+     else:
+         # no clue on windows
+         pass
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131124/f3b2098b/attachment.html>


More information about the macports-changes mailing list