Ticket #33242: py-mayavi_Portfile.diff

File py-mayavi_Portfile.diff, 2.8 KB (added by jjstickel (Jonathan Stickel), 12 years ago)

patch for py-mayavi portfile

  • python/py-mayavi/Portfile

    old new  
    55PortGroup           python 1.0
    66
    77name                py-mayavi
    8 version             3.4.1
     8version             4.1.0
    99categories-append   devel graphics math
    10 maintainers         vcn.com:jjstickel openmaintainer
     10maintainers         gmail.com:jjstickel openmaintainer
    1111description         The Enthought mayavi package
    1212long_description    3D Scientific Data Visualization and Plotting using VTK as the \
    1313    rendering backend and wxpython or pyqt4 for the (G)UI.
    1414
     15license             BSD
    1516platforms           darwin
    16 homepage            http://code.enthought.com/projects/mayavi/
     17homepage            https://github.com/enthought/mayavi
    1718master_sites        http://www.enthought.com/repo/ets/
    18 distname            Mayavi-${version}
     19distname            mayavi-${version}
    1920
    20 checksums           md5     a6bb49b4448478664a719c44f72de750 \
    21                     sha1    b4bf2e03bcea73dfb32a5e1052ff2df0ea618ab6 \
    22                     rmd160  669d9c90bcc9bd67a1bd7b90bbafd314b849c20c
     21checksums           sha256  53d44cf4dcd7ebf57e197e0a72002db30a74f23e5642e34b3b8f2ebe7a71bbf9 \
     22                    rmd160  db9a6bf5af9778f11ebf5c22e5c2c7f1b8dc6557
    2323
    2424python.versions        25 26 27
    25 python.default_version 25
     25python.default_version 27
    2626
    2727if {$subport != $name} {
    2828    depends_build-append    port:py${python.version}-distribute \
    2929                            port:py${python.version}-sphinx
    3030    depends_lib-append      port:py${python.version}-apptools \
    31                             port:py${python.version}-configobj \
    32                             port:py${python.version}-envisageplugins \
     31                            port:py${python.version}-envisage \
    3332                            port:py${python.version}-numpy \
    34                             port:py${python.version}-traitsgui \
     33                            port:py${python.version}-traitsui \
    3534                            port:vtk5
    3635
    3736    patch {
     
    4342   
    4443    # if variant dependencies or checking becomes possible, this can be improved
    4544    pre-configure {
     45       
    4646        ui_msg \
    4747            "Note that VTK must be installed using the same framework (cocoa
    4848        OR x11/gtk) as that used for the GUI (wxwidgets/wxpython OR
    4949        qt4/pyqt4)."
     50
     51        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"]]} {
     52            ui_error "vtk must be installed with the +python${python.version} variant"
     53            error "vtk must be installed with the +python${python.version} variant"
     54        }
    5055    }
    5156}