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

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


Revision: 56333
          http://trac.macports.org/changeset/56333
Author:   jameskyle at macports.org
Date:     2009-08-25 23:35:06 -0700 (Tue, 25 Aug 2009)
Log Message:
-----------
Added check for existing mvpa install.

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:35:02 UTC (rev 56332)
+++ trunk/dports/python/py25-pymvpa/Portfile	2009-08-26 06:35:06 UTC (rev 56333)
@@ -43,6 +43,12 @@
 build.target            build_ext
 
 pre-fetch {
+    if {[file exists ${prefix}/share/doc/mvpa]} {
+        ui_error "It appears the 2.6 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 ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/site-packages/sg.so]} {
         ui_error "To install py25-pymvpa with the shogun variant, shogun must be installed with the python25 variant."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090825/0e697fa1/attachment.html>


More information about the macports-changes mailing list