commit:     3801b02af6a571c4ee4fc638537a80edfd9f96b7
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 10 11:09:47 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Mar 10 11:09:47 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/emacs.git/commit/?id=3801b02a

app-emacs/emacs-daemon: Add conditional for live version

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 app-emacs/emacs-daemon/emacs-daemon-9999.ebuild | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/app-emacs/emacs-daemon/emacs-daemon-9999.ebuild 
b/app-emacs/emacs-daemon/emacs-daemon-9999.ebuild
index 797198b..fdda794 100644
--- a/app-emacs/emacs-daemon/emacs-daemon-9999.ebuild
+++ b/app-emacs/emacs-daemon/emacs-daemon-9999.ebuild
@@ -3,15 +3,21 @@
 
 EAPI=8
 
-EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/emacs-tools.git";
-EGIT_BRANCH="${PN}"
-EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}"
-
-inherit elisp git-r3
+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";
-S="${WORKDIR}/${PN}"
 
 LICENSE="GPL-2+"
 SLOT="0"

Reply via email to