1 |
commit: 50a75543c991ba5dcdee0791f5e6452f49de643e |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 5 08:32:26 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 5 08:33:00 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50a75543 |
7 |
|
8 |
app-misc/mc: add an elog entry on aspell configuration |
9 |
|
10 |
Fix-by: aporilel <AT> yandex.ru |
11 |
Closes: https://bugs.gentoo.org/788151 |
12 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
app-misc/mc/mc-4.8.26-r2.ebuild | 7 +++++++ |
16 |
app-misc/mc/mc-9999.ebuild | 6 ++++++ |
17 |
2 files changed, 13 insertions(+) |
18 |
|
19 |
diff --git a/app-misc/mc/mc-4.8.26-r2.ebuild b/app-misc/mc/mc-4.8.26-r2.ebuild |
20 |
index 5c6783cbf2c..47e5f652e71 100644 |
21 |
--- a/app-misc/mc/mc-4.8.26-r2.ebuild |
22 |
+++ b/app-misc/mc/mc-4.8.26-r2.ebuild |
23 |
@@ -112,6 +112,13 @@ src_install() { |
24 |
} |
25 |
|
26 |
pkg_postinst() { |
27 |
+ if use spell && ! has_version app-dicts/aspell-en ; then |
28 |
+ elog "'spell' USE flag is enabled however app-dicts/aspell-en is not installed." |
29 |
+ elog "You should manually set 'spell_language' in the Misc section of ~/.config/mc/ini" |
30 |
+ elog "It has to be set to one of your installed aspell dictionaries or 'NONE'" |
31 |
+ elog |
32 |
+ fi |
33 |
+ |
34 |
elog "To enable exiting to latest working directory," |
35 |
elog "put this into your ~/.bashrc:" |
36 |
elog ". ${EPREFIX}/usr/libexec/mc/mc.sh" |
37 |
|
38 |
diff --git a/app-misc/mc/mc-9999.ebuild b/app-misc/mc/mc-9999.ebuild |
39 |
index 936a91cde7d..ad94e390553 100644 |
40 |
--- a/app-misc/mc/mc-9999.ebuild |
41 |
+++ b/app-misc/mc/mc-9999.ebuild |
42 |
@@ -110,6 +110,12 @@ src_install() { |
43 |
} |
44 |
|
45 |
pkg_postinst() { |
46 |
+ if use spell && ! has_version app-dicts/aspell-en ; then |
47 |
+ elog "'spell' USE flag is enabled however app-dicts/aspell-en is not installed." |
48 |
+ elog "You should manually set 'spell_language' in the Misc section of ~/.config/mc/ini" |
49 |
+ elog "It has to be set to one of your installed aspell dictionaries or 'NONE'" |
50 |
+ elog |
51 |
+ fi |
52 |
elog "To enable exiting to latest working directory," |
53 |
elog "put this into your ~/.bashrc:" |
54 |
elog ". ${EPREFIX}/usr/libexec/mc/mc.sh" |