1 |
commit: 6dfd288962043a87938817fed6aea7000bb8d325 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 22 16:14:54 2019 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 22 16:16:16 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dfd2889 |
7 |
|
8 |
app-editors/emacs-vcs: Install systemd unit file. |
9 |
|
10 |
Bug: 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-vcs/emacs-vcs-26.3.9999.ebuild | 9 +++++++++ |
15 |
app-editors/emacs-vcs/emacs-vcs-27.0.9999.ebuild | 9 +++++++++ |
16 |
2 files changed, 18 insertions(+) |
17 |
|
18 |
diff --git a/app-editors/emacs-vcs/emacs-vcs-26.3.9999.ebuild b/app-editors/emacs-vcs/emacs-vcs-26.3.9999.ebuild |
19 |
index 03b0618a410..bc37463010b 100644 |
20 |
--- a/app-editors/emacs-vcs/emacs-vcs-26.3.9999.ebuild |
21 |
+++ b/app-editors/emacs-vcs/emacs-vcs-26.3.9999.ebuild |
22 |
@@ -304,6 +304,15 @@ src_install () { |
23 |
# remove COPYING file (except for etc/COPYING used by describe-copying) |
24 |
rm "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp/COPYING |
25 |
|
26 |
+ if use systemd; then |
27 |
+ insinto /usr/lib/systemd/user |
28 |
+ sed -e "/^##/d" \ |
29 |
+ -e "/^ExecStart/s,emacs,${EPREFIX}/usr/bin/${EMACS_SUFFIX}," \ |
30 |
+ -e "/^ExecStop/s,emacsclient,${EPREFIX}/usr/bin/&-${EMACS_SUFFIX}," \ |
31 |
+ etc/emacs.service | newins - ${EMACS_SUFFIX}.service |
32 |
+ assert |
33 |
+ fi |
34 |
+ |
35 |
if use gzip-el; then |
36 |
# compress .el files when a corresponding .elc exists |
37 |
find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \ |
38 |
|
39 |
diff --git a/app-editors/emacs-vcs/emacs-vcs-27.0.9999.ebuild b/app-editors/emacs-vcs/emacs-vcs-27.0.9999.ebuild |
40 |
index cb262d172dd..3ee98c8520a 100644 |
41 |
--- a/app-editors/emacs-vcs/emacs-vcs-27.0.9999.ebuild |
42 |
+++ b/app-editors/emacs-vcs/emacs-vcs-27.0.9999.ebuild |
43 |
@@ -311,6 +311,15 @@ src_install () { |
44 |
# remove COPYING file (except for etc/COPYING used by describe-copying) |
45 |
rm "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp/COPYING |
46 |
|
47 |
+ if use systemd; then |
48 |
+ insinto /usr/lib/systemd/user |
49 |
+ sed -e "/^##/d" \ |
50 |
+ -e "/^ExecStart/s,emacs,${EPREFIX}/usr/bin/${EMACS_SUFFIX}," \ |
51 |
+ -e "/^ExecStop/s,emacsclient,${EPREFIX}/usr/bin/&-${EMACS_SUFFIX}," \ |
52 |
+ etc/emacs.service | newins - ${EMACS_SUFFIX}.service |
53 |
+ assert |
54 |
+ fi |
55 |
+ |
56 |
if use gzip-el; then |
57 |
# compress .el files when a corresponding .elc exists |
58 |
find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \ |