|
|
LICENSE="OPERA-9.0" | LICENSE="OPERA-9.0" |
KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd" | KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd" |
| |
IUSE="qt-static spell gnome" |
IUSE="qt-static spell gnome elibc_FreeBSD" |
RESTRICT="strip mirror" | RESTRICT="strip mirror" |
| |
OPERALNG="en" | OPERALNG="en" |
|
|
unpack ${A} | unpack ${A} |
cd ${S} | cd ${S} |
epatch "${FILESDIR}/${PN}-9.00-install.patch" | 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" \ | sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ |
-e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \ | -e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \ |
|
|
echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > ${D}/etc/revdep-rebuild/90opera | 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 | # 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}/ | \ | scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \ |
while read i; do | while read i; do |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; | if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
|
|
elog "To use the spellchecker (USE=spell) for non-English simply do" | elog "To use the spellchecker (USE=spell) for non-English simply do" |
elog "$ emerge app-dicts/aspell-[your language]." | elog "$ emerge app-dicts/aspell-[your language]." |
| |
if use x86-fbsd; then |
if use elibc_FreeBSD; then |
elog | elog |
elog "To improve shared memory usage please set:" | elog "To improve shared memory usage please set:" |
elog "$ sysctl kern.ipc.shm_allow_removed=1" | elog "$ sysctl kern.ipc.shm_allow_removed=1" |