--- opera-9.23.ebuild 2007-09-06 18:15:44 +0200 +++ opera-9.23.ebuild 2007-09-06 18:17:52 +0200 @@ -13,7 +13,7 @@ LICENSE="OPERA-9.0" KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd" -IUSE="qt-static spell gnome" +IUSE="qt-static spell gnome elibc_FreeBSD" RESTRICT="strip mirror" OPERALNG="en" @@ -60,7 +60,10 @@ unpack ${A} cd ${S} epatch "${FILESDIR}/${PN}-9.00-install.patch" - epatch "${FILESDIR}/${PN}-9.21-pluginpath.patch" + + # bug #181300 + ! use elibc_FreeBSD && epatch "${FILESDIR}/${PN}-9.21-pluginpath.patch" + use elibc_FreeBSD && epatch "${FILESDIR}/${PN}-9.23-pluginpath-fbsd.patch" sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ -e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \ @@ -133,7 +136,7 @@ echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > ${D}/etc/revdep-rebuild/90opera # Change libz.so.3 to libz.so.1 for gentoo/freebsd - if use x86-fbsd; then + if use elibc_FreeBSD; then scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \ while read i; do if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; @@ -164,7 +167,7 @@ elog "To use the spellchecker (USE=spell) for non-English simply do" elog "$ emerge app-dicts/aspell-[your language]." - if use x86-fbsd; then + if use elibc_FreeBSD; then elog elog "To improve shared memory usage please set:" elog "$ sysctl kern.ipc.shm_allow_removed=1"