--- /opt/local/var/macports/sources/svn.macports.org/trunk/dports/graphics/vtk-devel/Portfile	2009-06-17 11:58:39.000000000 -0600
+++ graphics/vtk-devel/Portfile	2009-06-30 14:33:49.000000000 -0600
@@ -51,6 +51,8 @@
 build.type      gnu
 build.dir       ${workpath}/${distname}-build
 
+use_parallel_build yes
+
 # Using this dummy stage to inspect MacPorts variables (using 'port -d fetch vtk-devel')
 #fetch { system "echo ${configure.args} " }
 
@@ -119,6 +121,10 @@
         -DVTK_REQUIRED_OBJCXX_FLAGS="-fobjc-gc"
 }
 
+# nothing done here, but the darwin_8 platform needs to be initialized
+# for use inside the post-destroot phase of the data variant
+platform darwin 8 {
+}
 
 # -----------------------------------------------------------------------------
 # VARIANTS
@@ -154,7 +160,11 @@
         -DVTK_DATA_ROOT:PATH=${vtkDataPath}
     post-destroot {
         xinstall -d -o root -g admin -m 0755 ${destroot}/${vtkDataPath}
-        system "tar --strip-components 1 -C ${destroot}/${vtkDataPath} -zxvf ${distpath}/${vtkDataFile}"
+        if {[variant_isset darwin_8]} {
+            system "tar --strip-path 1 -C ${destroot}/${vtkDataPath} -zxvf ${distpath}/${vtkDataFile}"
+        } else {
+            system "tar --strip-components 1 -C ${destroot}/${vtkDataPath} -zxvf ${distpath}/${vtkDataFile}"
+        }
     }
 }
 
@@ -166,9 +176,8 @@
                             sha1 1a8f8ff20b18bc7ac707846a8ba056b04c827392 \
                             rmd160 c657f9ce0850eca1bb0a0d7537f0bcf631132f30
     post-destroot {
-        set vtkDocPathLink ${prefix}/share/doc/${distname}
         xinstall -d -o root -g admin -m 0755 ${destroot}/${vtkDocPath}
-        xinstall -d -o root -g admin -m 0755 ${destroot}/${vtkDocPathLink}
+        xinstall -d -o root -g admin -m 0755 ${destroot}/${prefix}/share/doc/
         # Add the doxygen documentation
         system "tar -C ${destroot}/${vtkDocPath} -zxf ${distpath}/${vtkDocFile}"
         # Add basic documentation
@@ -178,14 +187,12 @@
         # Create a symlink to the $prefix path (not the destroot path); use the
         # system to do this because the $prefix path doesn't exist yet and the
         # tcl ln command fails, whereas this system command will allow it.
-        system "ln -Fhs ${vtkDocPath} ${destroot}/${vtkDocPathLink}"
+        system "ln -s ${vtkDocPath} ${destroot}/${prefix}/share/doc/${distname}"
     }
     # A doxygen dependency would add a lot of complexity to vtk, so
     # just use a download instead of building the docs. Otherwise:
-    #depends_build-append \
-        port:doxygen
-    #configure.args-append \
-        -DBUILD_DOCUMENTATION:BOOL=ON
+    #depends_build-append   port:doxygen
+    #configure.args-append  -DBUILD_DOCUMENTATION:BOOL=ON
 }
 
 

