diff options
Diffstat (limited to 'net-mail/notmuch/notmuch-0.18.1.ebuild')
-rw-r--r-- | net-mail/notmuch/notmuch-0.18.1.ebuild | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/net-mail/notmuch/notmuch-0.18.1.ebuild b/net-mail/notmuch/notmuch-0.18.1.ebuild index 2e0ae77388aa..4efd660ed80c 100644 --- a/net-mail/notmuch/notmuch-0.18.1.ebuild +++ b/net-mail/notmuch/notmuch-0.18.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/notmuch/notmuch-0.18.1.ebuild,v 1.5 2014/08/28 11:39:27 aidecoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/notmuch/notmuch-0.18.1.ebuild,v 1.6 2014/08/28 14:07:54 aidecoe Exp $ EAPI=5 @@ -148,7 +148,6 @@ src_install() { fi if use mutt; then - [[ -e /etc/mutt/notmuch-mutt.rc ]] && NOTMUCH_MUTT_RC_EXISTS=1 pushd contrib/notmuch-mutt || die dobin notmuch-mutt doman notmuch-mutt.1 @@ -162,10 +161,8 @@ src_install() { use doc && bindings python dohtml -r python } -pkg_postinst() { - use emacs && elisp-site-regen - - if use mutt && [[ ! ${NOTMUCH_MUTT_RC_EXISTS} ]]; then +pkg_preinst() { + if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then elog "To enable notmuch support in mutt, add the following line into" elog "your mutt config file, please:" elog "" @@ -173,6 +170,10 @@ pkg_postinst() { fi } +pkg_postinst() { + use emacs && elisp-site-regen +} + pkg_postrm() { use emacs && elisp-site-regen } |