--- eclipse-sdk-3.7.1-r9.ebuild 2013-01-08 09:50:10.365552965 +0100 +++ eclipse-sdk-3.7.1-r9.ebuild 2013-01-16 16:52:10.067407769 +0100 @@ -282,11 +282,13 @@ # if swt-3.7.2 is installed, the swt libraries need symlinks or # eclipse will not find them: + local swtLibMajorMinor="$(echo ${SWT} | sed 's/\.//' | cut -c -2)" local xLibDir="/usr/$(get_libdir)" ebegin "Symlinking swt libraries in ${xLibDir}" for xLib in atk-gtk gtk pi-gtk ; do local xSrc="${xLibDir}/libswt-${xLib}.so" - local xTgt="$(basename $(ls ${xLibDir}/libswt-${xLib}-*.so))" + local xLibVersions="$(ls -r ${xLibDir}/libswt-${xLib}-${swtLibMajorMinor}*.so)" + local xTgt="$(basename ${xLibVersions})" dosym "${xTgt}" "${xSrc}" || die done eend