--- opera-8.54.ebuild 2006-05-26 07:06:19.000000000 +0200 +++ /root/opera-8.54.ebuild 2006-05-26 17:16:04.000000000 +0200 @@ -2,9 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-8.54.ebuild,v 1.3 2006/05/26 04:40:14 halcy0n Exp $ -inherit eutils +inherit eutils gnome2 -IUSE="qt-static spell qt kde" +IUSE="qt-static spell qt kde gnome" OPERAVER="8.54-20060330" OPERAFTPDIR="854/final/en" @@ -100,6 +100,12 @@ # Install the icons insinto /usr/share/pixmaps doins images/opera.xpm + if use gnome ; then + for res in 16x16 22x22 32x32 48x48 ; do + insinto /usr/share/icons/hicolor/${res}/apps/ + newins images/opera_${res}.png opera.png + done + fi # Install the menu entry insinto /usr/share/applications @@ -132,9 +138,18 @@ } pkg_postinst() { + if use gnome ; then + gnome2_icon_cache_update + fi einfo "For localized language files take a look at:" einfo "http://www.opera.com/download/languagefiles/index.dml?platform=linux" einfo einfo "To change the spellcheck language edit /opt/opera/share/opera/ini/spellcheck.ini" einfo "and emerge app-text/aspell-language." } + +pkg_postrm() { + if use gnome ; then + gnome2_icon_cache_update + fi +}