app-emacs/emacs-daemon: add 0.24

Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
Ulrich Müller
2025-03-10 12:43:03 +01:00
parent e7933d1bba
commit 17c9a74b67
2 changed files with 58 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST emacs-daemon-0.22.tar.xz 5276 BLAKE2B a866b14951df94e1d382253dcb7045beb800c9dd754f7eed40eadecde43fd583bb2bc20ad9ccc9f87174b06aadbb26f7875deaf36d9bb5325f98ffa58fded8c7 SHA512 f013cd00d3a24ca348bf718dd20dec7bea89107c0a27c921d6b58595b611991830604fc658d57681708218fbee1dae6dd0b277a2a9da67639e3553e0fd133094
DIST emacs-daemon-0.23.tar.xz 4876 BLAKE2B 95fd9fc2b038dd60d4fc889674f4f1c3e5c0f8894a0161a0ea626835e91d500766e7fb50f8efafd70b0a45129626968147009c218b55ca0df6c6da50b8cb99dc SHA512 90f4b5b22df17106173de6116f45d902613b60b4b837293ea5f7843ad4967f68f9920cb301ef1edc50c6c831941be487b456ac8c1bc41ae41a55c6e1ea135343
DIST emacs-daemon-0.24.tar.xz 4556 BLAKE2B a4b6809771c6f6c9d7b4b45ea9fe95f2274ecf9006aecb473636258d9681ebf80099be3a7fe5119d6bfc31e89846fc9b5b04954b3614be2382e1ee8078c44919 SHA512 d5a08e997a20907b6251bcfb0f8af022648adb8311af7fcb94aad73c1b579eb16dd2ea17325d86f293940dd56eb2de47df29c2b98b4ca591ceac0d97120dcf23

View File

@@ -0,0 +1,57 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit elisp
if [[ ${PV##*.} = 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/emacs-tools.git"
EGIT_BRANCH="${PN}"
EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}"
S="${EGIT_CHECKOUT_DIR}"
else
SRC_URI="https://dev.gentoo.org/~ulm/emacs/${P}.tar.xz"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
fi
DESCRIPTION="Gentoo support for Emacs running as a server in the background"
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs"
LICENSE="GPL-2+"
SLOT="0"
RDEPEND=">=app-emacs/emacs-common-1.11"
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://gitlab.gnome.org/GNOME/gtk/-/issues/221> and
<https://gitlab.gnome.org/GNOME/gtk/-/issues/2315>.
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
dodoc README ChangeLog
}