[71342] trunk/dports/graphics/vtk5/Portfile
raphael at macports.org
raphael at macports.org
Thu Sep 9 11:09:12 PDT 2010
Revision: 71342
http://trac.macports.org/changeset/71342
Author: raphael at macports.org
Date: 2010-09-09 11:09:08 -0700 (Thu, 09 Sep 2010)
Log Message:
-----------
vtk5: distribute post-destroot phases among variants; undos part of r71338
Revision Links:
--------------
http://trac.macports.org/changeset/71338
Modified Paths:
--------------
trunk/dports/graphics/vtk5/Portfile
Modified: trunk/dports/graphics/vtk5/Portfile
===================================================================
--- trunk/dports/graphics/vtk5/Portfile 2010-09-09 17:38:56 UTC (rev 71341)
+++ trunk/dports/graphics/vtk5/Portfile 2010-09-09 18:09:08 UTC (rev 71342)
@@ -75,46 +75,8 @@
}
post-destroot {
- if {[variant_isset python25]} {
- file mkdir ${destroot}${prefix}/lib/python2.5/site-packages
- system "cd ${worksrcpath}/Wrapping/Python && ${prefix}/bin/python2.5 setup.py install --prefix=${prefix} --root=${destroot}"
- }
-
- if {[variant_isset python26]} {
- system "cd ${worksrcpath}/Wrapping/Python && ${prefix}/bin/python2.6 setup.py install --prefix=${frameworks_dir}/Python.framework/Versions/2.6/ --root=${destroot}"
- }
-
- if {[variant_isset qt4_mac]} {
- xinstall -d ${destroot}${prefix}/libexec/qt4-mac/plugins/designer
- move ${destroot}${prefix}/plugins/designer/libQVTKWidgetPlugin.dylib \
- ${destroot}${prefix}/libexec/qt4-mac/plugins/designer/
- }
-
set vtkdest ${destroot}${prefix}/share/doc/${name}
xinstall -d ${vtkdest}
-
- if {[variant_isset data]} {
- # Provide some examples
- file copy ${worksrcpath}/Examples ${vtkdest}
- xinstall -W ${worksrcpath}/bin \
- CommonCxxTests \
- FilteringCxxTests \
- GenericFilteringCxxTests \
- GraphicsCxxTests \
- IOCxxTests \
- ImagingCxxTests \
- RenderingCxxTests \
- TestCxxFeatures \
- TestInstantiator \
- VTKBenchMark \
- VolumeRenderingCxxTests \
- WidgetsCxxTests \
- ${vtkdest}/Examples
-
- # Provide data files
- system "tar -C ${destroot}${prefix}/share -xzvf ${distpath}/[suffix vtkdata-${version}]"
- }
-
xinstall -m 644 -W ${worksrcpath} Copyright.txt README.html Testing.txt ${vtkdest}
}
@@ -160,6 +122,11 @@
-DPYTHON_LIBRARY:FILEPATH=${prefix}/lib/libpython2.5.dylib \
-DVTK_WRAP_PYTHON:BOOL=ON \
-DVTK_INSTALL_NO_PYTHON:BOOL=ON
+
+ post-destroot {
+ file mkdir ${destroot}${prefix}/lib/python2.5/site-packages
+ system "cd ${worksrcpath}/Wrapping/Python && ${prefix}/bin/python2.5 setup.py install --prefix=${prefix} --root=${destroot}"
+ }
}
variant python26 description {Build Python 2.6 wrappers} conflicts python25 {
@@ -173,12 +140,22 @@
-DPYTHON_LIBRARY:FILEPATH=${prefix}/lib/libpython2.6.dylib \
-DVTK_WRAP_PYTHON:BOOL=ON \
-DVTK_INSTALL_NO_PYTHON:BOOL=ON
+
+ post-destroot {
+ system "cd ${worksrcpath}/Wrapping/Python && ${prefix}/bin/python2.6 setup.py install --prefix=${frameworks_dir}/Python.framework/Versions/2.6/ --root=${destroot}"
+ }
}
variant qt4_mac conflicts x11 description {Build GUI support with Qt4 (Mac)} {
depends_build-append port:qt4-mac
configure.args-append -DVTK_USE_QT:BOOL=ON \
-DVTK_USE_GUISUPPORT:BOOL=ON
+
+ post-destroot {
+ xinstall -d ${destroot}${prefix}/libexec/qt4-mac/plugins/designer
+ move ${destroot}${prefix}/plugins/designer/libQVTKWidgetPlugin.dylib \
+ ${destroot}${prefix}/libexec/qt4-mac/plugins/designer/
+ }
}
variant mysql description {Build the MySQL driver for vtkSQLDatabase} {
@@ -196,4 +173,26 @@
md5 97006362d7d67dc01289daf3e4ec4e38 \
sha1 e0aa26dafd653da1db21fc97ce15aa0599d9c5ad \
rmd160 8499816f6d714408c0f7f584fb4d781f4426e444
+
+ post-destroot {
+ # Provide some examples
+ file copy ${worksrcpath}/Examples ${vtkdest}
+ xinstall -W ${worksrcpath}/bin \
+ CommonCxxTests \
+ FilteringCxxTests \
+ GenericFilteringCxxTests \
+ GraphicsCxxTests \
+ IOCxxTests \
+ ImagingCxxTests \
+ RenderingCxxTests \
+ TestCxxFeatures \
+ TestInstantiator \
+ VTKBenchMark \
+ VolumeRenderingCxxTests \
+ WidgetsCxxTests \
+ ${vtkdest}/Examples
+
+ # Provide data files
+ system "tar -C ${destroot}${prefix}/share -xzvf ${distpath}/[suffix vtkdata-${version}]"
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100909/8859ceb4/attachment-0001.html>
More information about the macports-changes
mailing list