[89600] trunk/dports/python

macsforever2000 at macports.org macsforever2000 at macports.org
Fri Feb 3 14:07:41 PST 2012


Revision: 89600
          http://trac.macports.org/changeset/89600
Author:   macsforever2000 at macports.org
Date:     2012-02-03 14:07:39 -0800 (Fri, 03 Feb 2012)
Log Message:
-----------
py-mayavi: unify

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

Added Paths:
-----------
    trunk/dports/python/py-mayavi/

Removed Paths:
-------------
    trunk/dports/python/py26-mayavi/

Modified: trunk/dports/python/py-mayavi/Portfile
===================================================================
--- trunk/dports/python/py26-mayavi/Portfile	2012-02-03 16:46:13 UTC (rev 89588)
+++ trunk/dports/python/py-mayavi/Portfile	2012-02-03 22:07:39 UTC (rev 89600)
@@ -1,10 +1,10 @@
 # -*- 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	python26 1.0
+PortSystem          1.0
+PortGroup           python 1.0
 
-name                py26-mayavi
+name                py-mayavi
 version             3.4.1
 categories-append   devel graphics math
 maintainers         vcn.com:jjstickel openmaintainer
@@ -21,22 +21,31 @@
                     sha1    b4bf2e03bcea73dfb32a5e1052ff2df0ea618ab6 \
                     rmd160  669d9c90bcc9bd67a1bd7b90bbafd314b849c20c
 
-depends_build-append    port:py26-distribute port:py26-sphinx
-depends_lib-append      port:vtk5 \
-                        port:py26-configobj port:py26-numpy \
-                        port:py26-apptools port:py26-envisageplugins port:py26-traitsgui
+python.versions        25 26 27
+python.default_version 25
 
-patch {   
-    reinplace "s|sphinx-build|sphinx-build-2.6|g" \
-        ${worksrcpath}/docs/Makefile \
-        ${worksrcpath}/docs/MakefileMayavi \
-        ${worksrcpath}/docs/MakefileTVTK
-}
+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}-numpy \
+                            port:py${python.version}-traitsgui \
+                            port:vtk5
 
-# 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)."
+    patch {   
+        reinplace "s|sphinx-build|sphinx-build-${python.branch}|g" \
+            ${worksrcpath}/docs/Makefile \
+            ${worksrcpath}/docs/MakefileMayavi \
+            ${worksrcpath}/docs/MakefileTVTK
+    }
+    
+    # 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)."
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120203/3bd2911e/attachment.html>


More information about the macports-changes mailing list