[56334] trunk/dports/python/py26-pymvpa/Portfile

jameskyle at macports.org jameskyle at macports.org
Tue Aug 25 23:35:09 PDT 2009


Revision: 56334
          http://trac.macports.org/changeset/56334
Author:   jameskyle at macports.org
Date:     2009-08-25 23:35:09 -0700 (Tue, 25 Aug 2009)
Log Message:
-----------
Removed smaller variants and made them part of default build.
Added check for python 2.5 installed version of mvpa.
Added no_shogun variant.

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

Modified: trunk/dports/python/py26-pymvpa/Portfile
===================================================================
--- trunk/dports/python/py26-pymvpa/Portfile	2009-08-26 06:35:06 UTC (rev 56333)
+++ trunk/dports/python/py26-pymvpa/Portfile	2009-08-26 06:35:09 UTC (rev 56334)
@@ -22,7 +22,15 @@
 
 depends_lib             port:py26-numpy \
                         port:git-core \
-                        port:py26-setuptools
+                        port:py26-setuptools \
+                        port:py26-scipy \
+                        port:py26-pynifti \
+                        port:py26-hcluster \
+                        port:libsvm \
+                        port:swig \
+                        port:py26-pywavelets \
+                        port:shogun \
+                        port:py26-matplotlib
 
 depends_build           port:git-core
 
@@ -34,49 +42,26 @@
 
 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"
+pre-fetch {
+    if {[file exists ${prefix}/share/doc/mvpa]} {
+        ui_error "It appears the 2.5 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"
     }
-  }
+    
+    
+    if {![variant_isset no_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"
+      }
+    }
+    
 }
 
+variant no_shogun description {Do not build shogun} {
+    depends_lib-delete port:shogun
+}
 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/aeb8d897/attachment.html>


More information about the macports-changes mailing list