diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-05 23:52:45 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-05 23:52:45 +0000 |
commit | 1c33e521c460dc40899ce7bc919602b842ce27e2 (patch) | |
tree | 580eefad4cce1e883e7504b93352a9029b53036d /app-editors/emacs/emacs-18.59-r15.ebuild | |
parent | 65e4244e411c4f65f55f2aa91f39e228f4c0680b (diff) |
gentoo auto-resync : 05:03:2023 - 23:52:45
Diffstat (limited to 'app-editors/emacs/emacs-18.59-r15.ebuild')
-rw-r--r-- | app-editors/emacs/emacs-18.59-r15.ebuild | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/app-editors/emacs/emacs-18.59-r15.ebuild b/app-editors/emacs/emacs-18.59-r15.ebuild index 6822620a67f8..7844e27bcb93 100644 --- a/app-editors/emacs/emacs-18.59-r15.ebuild +++ b/app-editors/emacs/emacs-18.59-r15.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -134,8 +134,7 @@ src_install() { dosym -r /usr/share/info/emacs-${SLOT} ${basedir}/info docompress -x /usr/share/info - # move Info dir to avoid collisions with the dir file generated by portage - mv "${D}"/usr/share/info/emacs-${SLOT}/dir{,.orig} || die + # dissuade Portage from removing our dir file #257260 touch "${D}"/usr/share/info/emacs-${SLOT}/.keepinfodir dodir /var/lib/emacs @@ -146,10 +145,9 @@ src_install() { } pkg_preinst() { - # move Info dir file to correct name - if [[ -d "${D}"/usr/share/info ]]; then - mv "${D}"/usr/share/info/emacs-${SLOT}/dir{.orig,} || die - fi + # verify that the PM hasn't removed our Info directory index #257260 + local infodir="${ED}/usr/share/info/emacs-${SLOT}" + [[ -f ${infodir}/dir || ! -d ${infodir} ]] || die } pkg_postinst() { |