Ebuild improvements
authorLars Wendler <polynomial-c@gentoo.org>
Mon, 5 Dec 2011 22:03:41 +0000 (22:03 +0000)
committerLars Wendler <polynomial-c@gentoo.org>
Mon, 5 Dec 2011 22:03:41 +0000 (22:03 +0000)
Package-Manager: portage-2.2.0_alpha79/cvs/Linux x86_64

www-client/firefox-bin/ChangeLog
www-client/firefox-bin/firefox-bin-8.0.ebuild
www-client/seamonkey-bin/ChangeLog
www-client/seamonkey-bin/seamonkey-bin-2.5.ebuild

index fbabf7eb06f92b0f45200eedd5c87818d74dd333..03bba5ada05a4c8feefecf5c996650004324a865 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for www-client/firefox-bin
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.73 2011/11/29 22:51:59 chainsaw Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.74 2011/12/05 22:03:41 polynomial-c Exp $
+
+  05 Dec 2011; Lars Wendler <polynomial-c@gentoo.org> firefox-bin-8.0.ebuild:
+  Ebuild improvements.
 
   29 Nov 2011; Tony Vroon <chainsaw@gentoo.org> firefox-bin-8.0.ebuild:
   Marked stable on AMD64 based on arch testing by Agostino "ago" Sarubbo,
index 23940105930dc4971d033602a7bee5b09ec4cd6f..f38fffba98c326b8a7c461ddb65fb90f1b9bcd39 100644 (file)
@@ -1,10 +1,10 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/firefox-bin-8.0.ebuild,v 1.3 2011/11/29 22:51:59 chainsaw Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/firefox-bin-8.0.ebuild,v 1.4 2011/12/05 22:03:41 polynomial-c Exp $
 
 EAPI="3"
 
-inherit eutils mozilla-launcher multilib mozextension pax-utils
+inherit eutils mozilla-launcher multilib mozextension pax-utils fdo-mime gnome2-utils
 
 # Can be updated using scripts/get_langs.sh from mozilla overlay
 LANGS=(af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en en-GB en-US
@@ -154,6 +154,10 @@ src_install() {
        pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container}
 }
 
+pkg_preinst() {
+       gnome2_icon_savelist
+}
+
 pkg_postinst() {
        if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \
                || ! has_version 'net-misc/curl'; then
@@ -168,8 +172,13 @@ pkg_postinst() {
                einfo "if you have curl emerged with the nss USE-flag"
                einfo
        fi
+
+       # Update mimedb for the new .desktop file
+       fdo-mime_desktop_database_update
+       gnome2_icon_cache_update
 }
 
 pkg_postrm() {
        update_mozilla_launcher_symlinks
+       gnome2_icon_cache_update
 }
index 0ae385ab485e3def0d74d559bf7dfce4429bf93d..9a614fca3cda53368593566bf0f5122d755f252f 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for www-client/seamonkey-bin
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/ChangeLog,v 1.108 2011/11/23 23:01:00 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/ChangeLog,v 1.109 2011/12/05 22:01:56 polynomial-c Exp $
+
+  05 Dec 2011; Lars Wendler <polynomial-c@gentoo.org> seamonkey-bin-2.5.ebuild:
+  Ebuild improvements.
 
   23 Nov 2011; Lars Wendler <polynomial-c@gentoo.org> seamonkey-bin-2.5.ebuild:
   Use nsplugins.eclass to handle the plugins directory.
index 46da44f2d6187048164db44713c94e10bbd9f695..6f1823913bebb8c715a64d7fc336d03207d2d6b0 100644 (file)
@@ -1,10 +1,10 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/seamonkey-bin-2.5.ebuild,v 1.2 2011/11/23 23:01:00 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/seamonkey-bin-2.5.ebuild,v 1.3 2011/12/05 22:01:56 polynomial-c Exp $
 
 EAPI="4"
 
-inherit eutils mozilla-launcher multilib mozextension pax-utils nsplugins
+inherit eutils mozilla-launcher multilib mozextension pax-utils nsplugins fdo-mime gnome2-utils
 
 LANGS=(be ca cs de en-GB en-US es-AR es-ES fi fr gl hu it
 ja lt nb-NO nl pl pt-PT ru sk sv-SE tr zh-CN)
@@ -142,3 +142,17 @@ EOF
        # Required in order to use plugins and even run seamonkey on hardened.
        pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container}
 }
+
+pkg_preinst() {
+       gnome2_icon_savelist
+}
+
+pkg_postinst() {
+       # Update mimedb for the new .desktop file
+       fdo-mime_desktop_database_update
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+}