diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-emacs/emacs-daemon | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-emacs/emacs-daemon')
-rw-r--r-- | app-emacs/emacs-daemon/Manifest | 3 | ||||
-rw-r--r-- | app-emacs/emacs-daemon/emacs-daemon-0.22.ebuild | 53 | ||||
-rw-r--r-- | app-emacs/emacs-daemon/metadata.xml | 9 |
3 files changed, 65 insertions, 0 deletions
diff --git a/app-emacs/emacs-daemon/Manifest b/app-emacs/emacs-daemon/Manifest new file mode 100644 index 000000000000..3938405ab910 --- /dev/null +++ b/app-emacs/emacs-daemon/Manifest @@ -0,0 +1,3 @@ +DIST emacs-daemon-0.22.tar.xz 5276 BLAKE2B a866b14951df94e1d382253dcb7045beb800c9dd754f7eed40eadecde43fd583bb2bc20ad9ccc9f87174b06aadbb26f7875deaf36d9bb5325f98ffa58fded8c7 SHA512 f013cd00d3a24ca348bf718dd20dec7bea89107c0a27c921d6b58595b611991830604fc658d57681708218fbee1dae6dd0b277a2a9da67639e3553e0fd133094 +EBUILD emacs-daemon-0.22.ebuild 1674 BLAKE2B 63e92d60d7c6fd8b146cc83b963f947b1cba0395db3751e66f436187f5592bb8753a4147d25a72522229fdda75bb38ff368e67c41df946da9856d191ef2eea07 SHA512 e7044d8206d47abf8abc2aa8c934b0739ca51250c00d46a3311ec6eb1f05321b5d02e4957d4adcc5f70035f706345529b1ba41ba0d6b177bee5156a5d771fa75 +MISC metadata.xml 282 BLAKE2B 432e60a3b04def9f566fde3852011e006c0d578c72c42115734d1af5c128440fcee68134c8f891baad437e64a8d61fbbac49e70a35ed4f6f85641e888d3a2547 SHA512 1838e22e1f5b849b816a05d1b25bd81333c8cf67ceb996177e05ba7a555b8e0e307e62cb53e6f1217f4216823e2fecf050e85437678503d60e10c6b2d5303072 diff --git a/app-emacs/emacs-daemon/emacs-daemon-0.22.ebuild b/app-emacs/emacs-daemon/emacs-daemon-0.22.ebuild new file mode 100644 index 000000000000..e219a750ce93 --- /dev/null +++ b/app-emacs/emacs-daemon/emacs-daemon-0.22.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit elisp + +DESCRIPTION="Gentoo support for Emacs running as a server in the background" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs" +SRC_URI="https://dev.gentoo.org/~ulm/emacs/${P}.tar.xz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd" + +DEPEND=">=virtual/emacs-23" +RDEPEND="${DEPEND}" + +SITEFILE="10${PN}-gentoo.el" + +pkg_setup() { + local has_daemon has_gtk line + has_daemon=$(${EMACS} ${EMACSFLAGS} --eval "(princ (fboundp 'daemonp))") + has_gtk=$(${EMACS} ${EMACSFLAGS} --eval "(princ (featurep 'gtk))") + + if [[ ${has_daemon} != t ]]; then + while read line; do ewarn "${line}"; done <<-EOF + Your current Emacs version does not support running as a daemon which + is required for ${CATEGORY}/${PN}. + Use "eselect emacs" to select an Emacs version >= 23. + EOF + elif [[ ${has_gtk} == t ]]; then + while read line; do ewarn "${line}"; done <<-EOF + Your current Emacs is compiled with GTK+. There is a long-standing bug + in GTK+ that prevents Emacs from recovering from X disconnects: + <https://bugzilla.gnome.org/show_bug.cgi?id=85715> + If you run Emacs as a daemon, then it is strongly recommended that you + compile it with the Lucid or the Motif toolkit instead, i.e. with + USE="athena Xaw3d -gtk -motif" or USE="motif -gtk -athena -Xaw3d". + EOF + fi +} + +src_compile() { :; } + +src_install() { + newinitd emacs.rc emacs + newconfd emacs.conf emacs + exeinto /usr/libexec/emacs + doexe emacs-wrapper.sh emacs-stop.sh + elisp-site-file-install "${SITEFILE}" + dodoc README ChangeLog +} diff --git a/app-emacs/emacs-daemon/metadata.xml b/app-emacs/emacs-daemon/metadata.xml new file mode 100644 index 000000000000..c918cdef9591 --- /dev/null +++ b/app-emacs/emacs-daemon/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>gnu-emacs@gentoo.org</email> + <name>Gentoo GNU Emacs project</name> +</maintainer> +<stabilize-allarches/> +</pkgmetadata> |