diff options
Diffstat (limited to 'app-editors/emacs-vcs/emacs-vcs-24.0.91.ebuild')
-rw-r--r-- | app-editors/emacs-vcs/emacs-vcs-24.0.91.ebuild | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/app-editors/emacs-vcs/emacs-vcs-24.0.91.ebuild b/app-editors/emacs-vcs/emacs-vcs-24.0.91.ebuild index 7a6e1a478d00..c434cd35e30b 100644 --- a/app-editors/emacs-vcs/emacs-vcs-24.0.91.ebuild +++ b/app-editors/emacs-vcs/emacs-vcs-24.0.91.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/emacs-vcs-24.0.91.ebuild,v 1.7 2012/01/05 23:43:15 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/emacs-vcs-24.0.91.ebuild,v 1.8 2012/01/08 21:29:32 ulm Exp $ EAPI=4 @@ -300,8 +300,20 @@ src_install () { pkg_preinst() { # move Info dir file to correct name - mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{.orig,} \ - || die "moving info dir failed" + local infodir=/usr/share/info/${EMACS_SUFFIX} f + if [[ -f ${ED}${infodir}/dir.orig ]]; then + mv "${ED}"${infodir}/dir{.orig,} || die "moving info dir failed" + else + # this should not happen in EAPI 4 + ewarn "Regenerating Info directory index in ${infodir} ..." + rm -f "${ED}"${infodir}/dir{,.*} + for f in "${ED}"${infodir}/*; do + if [[ ${f##*/} != *-[0-9]* && -e ${f} ]]; then + install-info --info-dir="${ED}"${infodir} "${f}" \ + || die "install-info failed" + fi + done + fi } pkg_postinst() { |