commit:     50a75543c991ba5dcdee0791f5e6452f49de643e
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Wed May  5 08:32:26 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Wed May  5 08:33:00 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50a75543

app-misc/mc: add an elog entry on aspell configuration

Fix-by: aporilel <AT> yandex.ru
Closes: https://bugs.gentoo.org/788151
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 app-misc/mc/mc-4.8.26-r2.ebuild | 7 +++++++
 app-misc/mc/mc-9999.ebuild      | 6 ++++++
 2 files changed, 13 insertions(+)

diff --git a/app-misc/mc/mc-4.8.26-r2.ebuild b/app-misc/mc/mc-4.8.26-r2.ebuild
index 5c6783cbf2c..47e5f652e71 100644
--- a/app-misc/mc/mc-4.8.26-r2.ebuild
+++ b/app-misc/mc/mc-4.8.26-r2.ebuild
@@ -112,6 +112,13 @@ src_install() {
 }
 
 pkg_postinst() {
+       if use spell && ! has_version app-dicts/aspell-en ; then
+               elog "'spell' USE flag is enabled however app-dicts/aspell-en 
is not installed."
+               elog "You should manually set 'spell_language' in the Misc 
section of ~/.config/mc/ini"
+               elog "It has to be set to one of your installed aspell 
dictionaries or 'NONE'"
+               elog
+       fi
+
        elog "To enable exiting to latest working directory,"
        elog "put this into your ~/.bashrc:"
        elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"

diff --git a/app-misc/mc/mc-9999.ebuild b/app-misc/mc/mc-9999.ebuild
index 936a91cde7d..ad94e390553 100644
--- a/app-misc/mc/mc-9999.ebuild
+++ b/app-misc/mc/mc-9999.ebuild
@@ -110,6 +110,12 @@ src_install() {
 }
 
 pkg_postinst() {
+       if use spell && ! has_version app-dicts/aspell-en ; then
+               elog "'spell' USE flag is enabled however app-dicts/aspell-en 
is not installed."
+               elog "You should manually set 'spell_language' in the Misc 
section of ~/.config/mc/ini"
+               elog "It has to be set to one of your installed aspell 
dictionaries or 'NONE'"
+               elog
+       fi
        elog "To enable exiting to latest working directory,"
        elog "put this into your ~/.bashrc:"
        elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"

Reply via email to