diff options
| author | Ulrich Müller <ulm@gentoo.org> | 2025-07-02 18:23:47 +0200 |
|---|---|---|
| committer | Ulrich Müller <ulm@gentoo.org> | 2025-07-02 18:23:47 +0200 |
| commit | 375ea9a8be509f2892ee51fe8e3ecbcca2758c75 (patch) | |
| tree | 30acb8b12117dbb0493dc21fc939f57763521f4b /app-emacs/emacs-daemon/emacs-daemon-0.26.ebuild | |
| parent | 8f71260236aebaf557ac7ca50e0e7dd99523c774 (diff) | |
| download | gentoo-375ea9a8be509f2892ee51fe8e3ecbcca2758c75.tar.gz gentoo-375ea9a8be509f2892ee51fe8e3ecbcca2758c75.tar.bz2 gentoo-375ea9a8be509f2892ee51fe8e3ecbcca2758c75.zip | |
app-emacs/emacs-daemon: add 0.26
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-emacs/emacs-daemon/emacs-daemon-0.26.ebuild')
| -rw-r--r-- | app-emacs/emacs-daemon/emacs-daemon-0.26.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/app-emacs/emacs-daemon/emacs-daemon-0.26.ebuild b/app-emacs/emacs-daemon/emacs-daemon-0.26.ebuild new file mode 100644 index 000000000000..9cdac7a279cd --- /dev/null +++ b/app-emacs/emacs-daemon/emacs-daemon-0.26.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp-common + +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" + +BDEPEND=">=app-editors/emacs-${NEED_EMACS}:*" +RDEPEND="${BDEPEND} + >=app-emacs/emacs-common-1.11" + +pkg_setup() { + elisp-check-emacs-version + + local has_gtk line + has_gtk=$(${EMACS} ${EMACSFLAGS} --eval "(princ (featurep 'gtk))") + + if [[ ${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_install() { + newinitd emacs.rc emacs + newconfd emacs.conf emacs + dodoc README ChangeLog +} |
