--- vtk-4.2.6.ebuild 2005-11-17 10:10:37.000000000 +0100 +++ /usr/local/portage/sci-libs/vtk/vtk-4.2.6.ebuild 2005-11-17 10:15:06.000000000 +0100 @@ -92,6 +92,9 @@ use patented && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_PATENTED:BOOL=ON" cmake ${CMAKE_VARIABLES} . || die "cmake configuration failed" + # run cmake a second time, as cmake often doesn't configure properly in one run + # no need to feed the $CMAKE_VARIABLES again for the second run as they are already set + cmake . || die "cmake configuration failed" emake || die "emake failed" }