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-emacs/gnuserv/
Date: Tue, 02 Jan 2018 22:24:37
Message-Id: 1514931833.f0d8d1222534a291943aa9245f29f0a853a362be.ulm@gentoo
1 commit: f0d8d1222534a291943aa9245f29f0a853a362be
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 2 22:23:29 2018 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 2 22:23:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0d8d122
7
8 app-emacs/gnuserv: Migrate to xdg-utils.eclass, bump to EAPI 6.
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 app-emacs/gnuserv/gnuserv-3.12.8-r3.ebuild | 68 ++++++++++++++++++++++++++++++
13 1 file changed, 68 insertions(+)
14
15 diff --git a/app-emacs/gnuserv/gnuserv-3.12.8-r3.ebuild b/app-emacs/gnuserv/gnuserv-3.12.8-r3.ebuild
16 new file mode 100644
17 index 00000000000..680dce5508d
18 --- /dev/null
19 +++ b/app-emacs/gnuserv/gnuserv-3.12.8-r3.ebuild
20 @@ -0,0 +1,68 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +inherit elisp multilib desktop xdg-utils
27 +
28 +DESCRIPTION="Attach to an already running Emacs"
29 +HOMEPAGE="http://meltin.net/hacks/emacs/"
30 +SRC_URI="http://meltin.net/hacks/emacs/src/${P}.tar.gz"
31 +
32 +LICENSE="GPL-2+"
33 +SLOT="0"
34 +KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux ~ppc-macos"
35 +IUSE="X"
36 +
37 +DEPEND=">=app-eselect/eselect-emacs-1.15
38 + X? ( x11-libs/libXau )"
39 +RDEPEND="${DEPEND}"
40 +
41 +SITEFILE="50${PN}-gentoo.el"
42 +
43 +src_prepare() {
44 + sed -i -e 's/exec gnuclient/&-emacs/' gnudoit || die
45 + eapply_user
46 +}
47 +
48 +src_configure() {
49 + econf $(use_enable X xauth) \
50 + --x-includes="${EPREFIX}"/usr/include \
51 + --x-libraries="${EPREFIX}"/usr/$(get_libdir)
52 +}
53 +
54 +src_compile() {
55 + default
56 +}
57 +
58 +src_install() {
59 + exeinto /usr/libexec/emacs
60 + doexe gnuserv
61 + newbin gnuclient gnuclient-emacs
62 + newbin gnudoit gnudoit-emacs
63 + # Don't install gnuattach, it is not functional with FSF GNU Emacs
64 +
65 + newman gnuserv.1 gnuserv-emacs.1
66 + echo ".so man1/gnuserv-emacs.1" | newman - gnuclient-emacs.1
67 + echo ".so man1/gnuserv-emacs.1" | newman - gnudoit-emacs.1
68 +
69 + elisp-install ${PN} *.el *.elc
70 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
71 + dodoc ChangeLog README README.orig
72 +
73 + if use X; then
74 + domenu "${FILESDIR}"/gnuclient.desktop || die
75 + fi
76 +}
77 +
78 +pkg_postinst() {
79 + elisp-site-regen
80 + use X && xdg_desktop_database_update
81 + eselect gnuclient update ifunset
82 +}
83 +
84 +pkg_postrm() {
85 + elisp-site-regen
86 + use X && xdg_desktop_database_update
87 + eselect gnuclient update ifunset
88 +}