summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2018-01-02 23:23:29 +0100
committerUlrich Müller <ulm@gentoo.org>2018-01-02 23:23:53 +0100
commitf0d8d1222534a291943aa9245f29f0a853a362be (patch)
tree6eac407b25590b6e2af4aa25c26047534a1b0812 /app-emacs/gnuserv
parentapp-emacs/gnuserv: Add missing inherit of desktop.eclass. (diff)
downloadgentoo-f0d8d1222534a291943aa9245f29f0a853a362be.tar.gz
gentoo-f0d8d1222534a291943aa9245f29f0a853a362be.tar.bz2
gentoo-f0d8d1222534a291943aa9245f29f0a853a362be.zip
app-emacs/gnuserv: Migrate to xdg-utils.eclass, bump to EAPI 6.
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-emacs/gnuserv')
-rw-r--r--app-emacs/gnuserv/gnuserv-3.12.8-r3.ebuild68
1 files changed, 68 insertions, 0 deletions
diff --git a/app-emacs/gnuserv/gnuserv-3.12.8-r3.ebuild b/app-emacs/gnuserv/gnuserv-3.12.8-r3.ebuild
new file mode 100644
index 000000000000..680dce5508d5
--- /dev/null
+++ b/app-emacs/gnuserv/gnuserv-3.12.8-r3.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit elisp multilib desktop xdg-utils
+
+DESCRIPTION="Attach to an already running Emacs"
+HOMEPAGE="http://meltin.net/hacks/emacs/"
+SRC_URI="http://meltin.net/hacks/emacs/src/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux ~ppc-macos"
+IUSE="X"
+
+DEPEND=">=app-eselect/eselect-emacs-1.15
+ X? ( x11-libs/libXau )"
+RDEPEND="${DEPEND}"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_prepare() {
+ sed -i -e 's/exec gnuclient/&-emacs/' gnudoit || die
+ eapply_user
+}
+
+src_configure() {
+ econf $(use_enable X xauth) \
+ --x-includes="${EPREFIX}"/usr/include \
+ --x-libraries="${EPREFIX}"/usr/$(get_libdir)
+}
+
+src_compile() {
+ default
+}
+
+src_install() {
+ exeinto /usr/libexec/emacs
+ doexe gnuserv
+ newbin gnuclient gnuclient-emacs
+ newbin gnudoit gnudoit-emacs
+ # Don't install gnuattach, it is not functional with FSF GNU Emacs
+
+ newman gnuserv.1 gnuserv-emacs.1
+ echo ".so man1/gnuserv-emacs.1" | newman - gnuclient-emacs.1
+ echo ".so man1/gnuserv-emacs.1" | newman - gnudoit-emacs.1
+
+ elisp-install ${PN} *.el *.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ dodoc ChangeLog README README.orig
+
+ if use X; then
+ domenu "${FILESDIR}"/gnuclient.desktop || die
+ fi
+}
+
+pkg_postinst() {
+ elisp-site-regen
+ use X && xdg_desktop_database_update
+ eselect gnuclient update ifunset
+}
+
+pkg_postrm() {
+ elisp-site-regen
+ use X && xdg_desktop_database_update
+ eselect gnuclient update ifunset
+}