[56329] trunk/dports/python/py25-pymvpa/Portfile

jameskyle at macports.org jameskyle at macports.org
Tue Aug 25 23:34:56 PDT 2009


Revision: 56329
          http://trac.macports.org/changeset/56329
Author:   jameskyle at macports.org
Date:     2009-08-25 23:34:51 -0700 (Tue, 25 Aug 2009)
Log Message:
-----------
Changed many dependency libraries from variants to required.
Added a check for multiple mvpa installs (causes conflict).
Switched shogun variant to part of default build.
Added no_shogun variant to disable shogun building.

Modified Paths:
--------------
    trunk/dports/python/py25-pymvpa/Portfile

Modified: trunk/dports/python/py25-pymvpa/Portfile
===================================================================
--- trunk/dports/python/py25-pymvpa/Portfile	2009-08-26 06:05:32 UTC (rev 56328)
+++ trunk/dports/python/py25-pymvpa/Portfile	2009-08-26 06:34:51 UTC (rev 56329)
@@ -22,11 +22,19 @@
 
 depends_lib             port:py25-numpy \
                         port:git-core \
-                        port:py25-setuptools
+                        port:py25-setuptools \
+                        port:py25-scipy \
+                        port:py25-pynifti \
+                        port:py25-hcluster \
+                        port:libsvm \
+                        port:swig \
+                        port:py25-pywavelets \
+                        port:shogun \
+                        port:py25-matplotlib
 
 depends_build           port:git-core
 
-configure.args
+configure.args          --with-libsvm
 
 patch.pre_args          -p1
 
@@ -34,49 +42,29 @@
 
 build.target            build_ext
 
-default_variants        +pywavelet +libsvm +hcluster +pynifti +shogun +scipy
-
-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-append --with-libsvm
-}
-
-variant matplotlib description {include support for the matplotlib library} {
+pre-extract {
+    if {[file exists ${prefix}/share/doc/mvpa]} {
+        ui_error "It appears antother version of mvpa is installed"
+        ui_error "Only one version of pymvpa can be installed at one time"
+        return -code error "multiple mvpa installs detected"
+    }
+    
     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
+    ui_msg "If this is the case, please manually install with +wxpython variant."
+    
+    if {![variant_isset no_shogun]} {
+      if {![file exists ${prefix}/lib/python2.5/site-packages/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"
+      }
+    }
+    
 }
 
-variant pywavelet description {include support for pywavelet module} {
-    depends_lib-append port:py25-pywavelets
+variant no_shogun description {Do not build shogun} {
+    depends_lib-delete port:shogun
 }
 
-variant shogun description {compile support for the py25-shogun classifiers} {
-    depends_lib-append port:shogun
-}
-
-pre-extract {
-  if {[variant_isset shogun]} {
-    if {![file exists ${prefix}/lib/python2.5/site-packages/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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090825/4cba3f91/attachment.html>


More information about the macports-changes mailing list