commit:     77074b4b1f0c2b8ea900a40f814879576a96cd0b
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Mar  8 06:29:20 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Mar  8 06:29:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/emacs.git/commit/?id=77074b4b

app-emacs/emacs-common: Use upstream README files

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 app-emacs/emacs-common/emacs-common-9999.ebuild | 28 ++++---------------------
 1 file changed, 4 insertions(+), 24 deletions(-)

diff --git a/app-emacs/emacs-common/emacs-common-9999.ebuild 
b/app-emacs/emacs-common/emacs-common-9999.ebuild
index 6db48eb..99ccf3a 100644
--- a/app-emacs/emacs-common/emacs-common-9999.ebuild
+++ b/app-emacs/emacs-common/emacs-common-9999.ebuild
@@ -64,31 +64,11 @@ src_install() {
                fi
        fi
 
-       DOC_CONTENTS="All site initialisation for Gentoo-installed packages is
-               added to ${SITELISP}/site-gentoo.el. In order for this site
-               initialisation to be loaded for all users automatically, a 
default
-               site startup file /etc/emacs/site-start.el is installed. You are
-               responsible for maintenance of this file.
-               \n\nAlternatively, individual users can add the following 
command:
-               \n\n\t(require 'site-gentoo)
-               \n\nto their ~/.emacs initialisation files, or, for greater
-               flexibility, users may load single package-specific 
initialisation
-               files from the ${SITELISP}/site-gentoo.d/ directory."
-
-       [[ -d /run/openrc ]] && DOC_CONTENTS+="\n\n\nTo have OpenRC
-               (version 0.60 or later) automatically start Emacs as a daemon in
-               your user session, login as normal user and execute the command:
-               \n\n\t$ rc-update --user add emacs default
-               \n\nThis will add emacs to the default runlevel in
-               ~/.config/rc/runlevels/.
-               \n\nIf you want to start your user's Emacs daemon at system 
startup
-               and have it persist between login sessions, do the following in
-               addition (as the superuser):
-               \n\n\t# ln -s user /etc/init.d/user.<user>
-               \n\t# rc-service user.<user> start
-               \n\t# rc-update add user.<user> default
-               \n\nSee OpenRC's user guide for the full documentation."
+       dodoc README.daemon
 
+       local DOC_CONTENTS DISABLE_AUTOFORMATTING=1
+       DOC_CONTENTS=$(sed -e "s:@SITELISP@:${EPREFIX}${SITELISP}:g" \
+               README.gentoo.in) || die
        readme.gentoo_create_doc
 }
 

Reply via email to