commit:     b333fa9bb5273e98e2f9298d250e81804cc7f7f4
Author:     Tomas Fabrizio Orsi <torsi <AT> fi <DOT> uba <DOT> ar>
AuthorDate: Sun Mar 31 21:36:25 2024 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Apr  1 05:53:22 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b333fa9b

app-editors/emacs: Added a warning regarding mailutils

Closes: https://bugs.gentoo.org/927377
Signed-off-by: Tomas Fabrizio Orsi <torsi <AT> fi.uba.ar>
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 app-editors/emacs/emacs-29.3.9999.ebuild | 8 ++++++++
 app-editors/emacs/emacs-29.3.ebuild      | 8 ++++++++
 app-editors/emacs/emacs-30.0.9999.ebuild | 8 ++++++++
 3 files changed, 24 insertions(+)

diff --git a/app-editors/emacs/emacs-29.3.9999.ebuild 
b/app-editors/emacs/emacs-29.3.9999.ebuild
index 61a66215f0bc..1aab6b584222 100644
--- a/app-editors/emacs/emacs-29.3.9999.ebuild
+++ b/app-editors/emacs/emacs-29.3.9999.ebuild
@@ -573,6 +573,14 @@ src_install() {
                        \"${EPREFIX}/Applications/Gentoo\". You may want to 
copy or
                        symlink it into /Applications by yourself."
        fi
+       if ! use mailutils; then
+               DOC_CONTENTS+="\\n\\nThe mailutils USE flag is disabled. If 
Emacs'
+               own e-mail features are going to be used as an e-mail client
+               (e.g. Rmail), you are strongly encouraged to enable it. If not,
+               Emacs will use its own implementation of movemail; which has
+               fewer features and is less secure. For more information see:
+               
https://www.gnu.org/software/emacs/manual/html_node/emacs/Movemail.html";
+       fi
        tc-is-cross-compiler && DOC_CONTENTS+="\\n\\nEmacs did not write
                a portable dump file due to being cross-compiled.
                To create this file at run time, execute the following command:

diff --git a/app-editors/emacs/emacs-29.3.ebuild 
b/app-editors/emacs/emacs-29.3.ebuild
index 8260e939b153..c3b4ffc30b6b 100644
--- a/app-editors/emacs/emacs-29.3.ebuild
+++ b/app-editors/emacs/emacs-29.3.ebuild
@@ -586,6 +586,14 @@ src_install() {
                        \"${EPREFIX}/Applications/Gentoo\". You may want to 
copy or
                        symlink it into /Applications by yourself."
        fi
+       if ! use mailutils; then
+               DOC_CONTENTS+="\\n\\nThe mailutils USE flag is disabled. If 
Emacs'
+               own e-mail features are going to be used as an e-mail client
+               (e.g. Rmail), you are strongly encouraged to enable it. If not,
+               Emacs will use its own implementation of movemail; which has
+               fewer features and is less secure. For more information see:
+               
https://www.gnu.org/software/emacs/manual/html_node/emacs/Movemail.html";
+       fi
        tc-is-cross-compiler && DOC_CONTENTS+="\\n\\nEmacs did not write
                a portable dump file due to being cross-compiled.
                To create this file at run time, execute the following command:

diff --git a/app-editors/emacs/emacs-30.0.9999.ebuild 
b/app-editors/emacs/emacs-30.0.9999.ebuild
index 89bb695cbae2..c6a0edb9e9b8 100644
--- a/app-editors/emacs/emacs-30.0.9999.ebuild
+++ b/app-editors/emacs/emacs-30.0.9999.ebuild
@@ -575,6 +575,14 @@ src_install() {
                        \"${EPREFIX}/Applications/Gentoo\". You may want to 
copy or
                        symlink it into /Applications by yourself."
        fi
+       if ! use mailutils; then
+               DOC_CONTENTS+="\\n\\nThe mailutils USE flag is disabled. If 
Emacs'
+               own e-mail features are going to be used as an e-mail client
+               (e.g. Rmail), you are strongly encouraged to enable it. If not,
+               Emacs will use its own implementation of movemail; which has
+               fewer features and is less secure. For more information see:
+               
https://www.gnu.org/software/emacs/manual/html_node/emacs/Movemail.html";
+       fi
        tc-is-cross-compiler && DOC_CONTENTS+="\\n\\nEmacs did not write
                a portable dump file due to being cross-compiled.
                To create this file at run time, execute the following command:

Reply via email to