summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/eselect-emacs/eselect-emacs-0.4.ebuild')
-rw-r--r--app-admin/eselect-emacs/eselect-emacs-0.4.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/app-admin/eselect-emacs/eselect-emacs-0.4.ebuild b/app-admin/eselect-emacs/eselect-emacs-0.4.ebuild
index 5e6f3b9..f58c8aa 100644
--- a/app-admin/eselect-emacs/eselect-emacs-0.4.ebuild
+++ b/app-admin/eselect-emacs/eselect-emacs-0.4.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-inherit eutils
+inherit eutils fdo-mime
DESCRIPTION="Manages the /usr/bin/emacs symlink"
HOMEPAGE="http://www.gentoo.org/"
@@ -24,3 +24,11 @@ src_install() {
insinto /usr/share/eselect/modules
doins emacs.eselect || die "doins failed"
}
+
+pkg_postinst() {
+ use X && fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ use X && fdo-mime_desktop_database_update
+}