[95885] trunk/dports/python/py-mayavi/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Jul 25 13:10:42 PDT 2012


Revision: 95885
          https://trac.macports.org/changeset/95885
Author:   ryandesign at macports.org
Date:     2012-07-25 13:10:41 -0700 (Wed, 25 Jul 2012)
Log Message:
-----------
py-mayavi: maintainer update to 4.1.0 (#33242); update dependency from traitsgui to traitsui (#35312); detect if vtk5 is installed with the necessary python variant (#26132); license BSD; update default python version to 2.7; update homepage; update maintainer email address

Modified Paths:
--------------
    trunk/dports/python/py-mayavi/Portfile

Modified: trunk/dports/python/py-mayavi/Portfile
===================================================================
--- trunk/dports/python/py-mayavi/Portfile	2012-07-25 20:04:21 UTC (rev 95884)
+++ trunk/dports/python/py-mayavi/Portfile	2012-07-25 20:10:41 UTC (rev 95885)
@@ -5,33 +5,32 @@
 PortGroup           python 1.0
 
 name                py-mayavi
-version             3.4.1
+version             4.1.0
 categories-append   devel graphics math
-maintainers         vcn.com:jjstickel openmaintainer
+maintainers         gmail.com:jjstickel openmaintainer
 description         The Enthought mayavi package
 long_description    3D Scientific Data Visualization and Plotting using VTK as the \
     rendering backend and wxpython or pyqt4 for the (G)UI.
 
+license             BSD
 platforms           darwin
-homepage            http://code.enthought.com/projects/mayavi/
+homepage            https://github.com/enthought/mayavi
 master_sites        http://www.enthought.com/repo/ets/
-distname            Mayavi-${version}
+distname            mayavi-${version}
 
-checksums           md5     a6bb49b4448478664a719c44f72de750 \
-                    sha1    b4bf2e03bcea73dfb32a5e1052ff2df0ea618ab6 \
-                    rmd160  669d9c90bcc9bd67a1bd7b90bbafd314b849c20c
+checksums           sha256  53d44cf4dcd7ebf57e197e0a72002db30a74f23e5642e34b3b8f2ebe7a71bbf9 \
+                    rmd160  db9a6bf5af9778f11ebf5c22e5c2c7f1b8dc6557
 
 python.versions        25 26 27
-python.default_version 25
+python.default_version 27
 
 if {$subport != $name} {
     depends_build-append    port:py${python.version}-distribute \
                             port:py${python.version}-sphinx
     depends_lib-append      port:py${python.version}-apptools \
-                            port:py${python.version}-configobj \
-                            port:py${python.version}-envisageplugins \
+                            port:py${python.version}-envisage \
                             port:py${python.version}-numpy \
-                            port:py${python.version}-traitsgui \
+                            port:py${python.version}-traitsui \
                             port:vtk5
 
     patch {
@@ -43,9 +42,15 @@
     
     # if variant dependencies or checking becomes possible, this can be improved
     pre-configure {
+        
         ui_msg \
-            "Note that VTK must be installed using the same framework (cocoa
-        OR x11/gtk) as that used for the GUI (wxwidgets/wxpython OR
-        qt4/pyqt4)."
+            "Note that vtk5 must be installed using the same framework (cocoa\
+OR x11/gtk) as that used for the GUI (wxwidgets/wxpython OR\
+qt4/pyqt4)."
+
+        if {![catch [glob "${prefix}/Library/Frameworks/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/VTK-*-py${python.branch}.egg-info/PKG-INFO"]]} {
+            ui_error "vtk5 must be installed with the +python${python.version} variant"
+            return -code error "incompatible vtk5 installation"
+        }
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120725/a8eb4a78/attachment.html>


More information about the macports-changes mailing list