Ticket #33242: py-mayavi_Portfile.diff
File py-mayavi_Portfile.diff, 2.8 KB (added by jjstickel (Jonathan Stickel), 13 years ago) |
---|
-
python/py-mayavi/Portfile
old new 5 5 PortGroup python 1.0 6 6 7 7 name py-mayavi 8 version 3.4.18 version 4.1.0 9 9 categories-append devel graphics math 10 maintainers vcn.com:jjstickel openmaintainer10 maintainers gmail.com:jjstickel openmaintainer 11 11 description The Enthought mayavi package 12 12 long_description 3D Scientific Data Visualization and Plotting using VTK as the \ 13 13 rendering backend and wxpython or pyqt4 for the (G)UI. 14 14 15 license BSD 15 16 platforms darwin 16 homepage http ://code.enthought.com/projects/mayavi/17 homepage https://github.com/enthought/mayavi 17 18 master_sites http://www.enthought.com/repo/ets/ 18 distname Mayavi-${version}19 distname mayavi-${version} 19 20 20 checksums md5 a6bb49b4448478664a719c44f72de750 \ 21 sha1 b4bf2e03bcea73dfb32a5e1052ff2df0ea618ab6 \ 22 rmd160 669d9c90bcc9bd67a1bd7b90bbafd314b849c20c 21 checksums sha256 53d44cf4dcd7ebf57e197e0a72002db30a74f23e5642e34b3b8f2ebe7a71bbf9 \ 22 rmd160 db9a6bf5af9778f11ebf5c22e5c2c7f1b8dc6557 23 23 24 24 python.versions 25 26 27 25 python.default_version 2 525 python.default_version 27 26 26 27 27 if {$subport != $name} { 28 28 depends_build-append port:py${python.version}-distribute \ 29 29 port:py${python.version}-sphinx 30 30 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 \ 33 32 port:py${python.version}-numpy \ 34 port:py${python.version}-traits gui \33 port:py${python.version}-traitsui \ 35 34 port:vtk5 36 35 37 36 patch { … … 43 42 44 43 # if variant dependencies or checking becomes possible, this can be improved 45 44 pre-configure { 45 46 46 ui_msg \ 47 47 "Note that VTK must be installed using the same framework (cocoa 48 48 OR x11/gtk) as that used for the GUI (wxwidgets/wxpython OR 49 49 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 } 50 55 } 51 56 }