--- /usr/portage/sci-geosciences/googleearth/googleearth-5.1.3535.3218.ebuild 2010-05-21 09:36:58.000000000 +0200 +++ googleearth-5.1.3535.3218.ebuild 2010-06-06 02:44:09.000000000 +0200 @@ -99,6 +99,18 @@ # bug #262780 epatch "${FILESDIR}/decimal-separator.patch" + if ! use qt-bundled; then + rm -rvf libQt{Core,Gui,Network,WebKit}.so.4 plugins/imageformats qt.conf || die + fi + rm -rvf libGLU.so.1 libcurl.so.4 || die + if ! use mdns-bundled; then + rm -rfv libnss_mdns4_minimal.so.2 || die + fi + if use x86; then + # no 32 bit libs for gdal + rm -rvf libgdal.so.1 || die + fi + # make the postinst script only create the files; it's installation # are too complicated and inserting them ourselves is easier than # hacking around it @@ -124,18 +136,6 @@ cp -pPR "${WORKDIR}"/data/* "${D}"/opt/${PN} || die - if ! use qt-bundled; then - rm -rvf libQt{Core,Gui,Network,WebKit}.so.4 plugins/imageformats qt.conf || die - fi - rm -rvf libGLU.so.1 libcurl.so.4 || die - if ! use mdns-bundled; then - rm -rfv libnss_mdns4_minimal.so.2 || die - fi - if use x86; then - # no 32 bit libs for gdal - rm -rvf libgdal.so.1 || die - fi - fowners -R root:root /opt/${PN} fperms -R a-x,a+X /opt/googleearth/resources }