Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/emacs/
Date: Sun, 22 Sep 2019 16:16:31
Message-Id: 1569168975.4340eb85c2d4859037b858bb58e2f77d7f79d9f7.ulm@gentoo
1 commit: 4340eb85c2d4859037b858bb58e2f77d7f79d9f7
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 22 16:13:52 2019 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 22 16:16:15 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4340eb85
7
8 app-editors/emacs: Install systemd unit file.
9
10 Closes: https://bugs.gentoo.org/694542
11 Package-Manager: Portage-2.3.76, Repoman-2.3.17
12 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
13
14 app-editors/emacs/{emacs-26.3.ebuild => emacs-26.3-r1.ebuild} | 9 +++++++++
15 1 file changed, 9 insertions(+)
16
17 diff --git a/app-editors/emacs/emacs-26.3.ebuild b/app-editors/emacs/emacs-26.3-r1.ebuild
18 similarity index 97%
19 rename from app-editors/emacs/emacs-26.3.ebuild
20 rename to app-editors/emacs/emacs-26.3-r1.ebuild
21 index 0e312adbbbb..40ca9d58019 100644
22 --- a/app-editors/emacs/emacs-26.3.ebuild
23 +++ b/app-editors/emacs/emacs-26.3-r1.ebuild
24 @@ -281,6 +281,15 @@ src_install () {
25 # remove COPYING file (except for etc/COPYING used by describe-copying)
26 rm "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp/COPYING
27
28 + if use systemd; then
29 + insinto /usr/lib/systemd/user
30 + sed -e "/^##/d" \
31 + -e "/^ExecStart/s,emacs,${EPREFIX}/usr/bin/${EMACS_SUFFIX}," \
32 + -e "/^ExecStop/s,emacsclient,${EPREFIX}/usr/bin/&-${EMACS_SUFFIX}," \
33 + etc/emacs.service | newins - ${EMACS_SUFFIX}.service
34 + assert
35 + fi
36 +
37 if use gzip-el; then
38 # compress .el files when a corresponding .elc exists
39 find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \