From 0f4b151a2a5c8430b6a3d2ca98ec3d00e339bdea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Wed, 26 Jul 2023 10:35:24 +0200 Subject: [PATCH] app-emacs/php-mode: enable live MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- app-emacs/php-mode/php-mode-1.25.0.ebuild | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app-emacs/php-mode/php-mode-1.25.0.ebuild b/app-emacs/php-mode/php-mode-1.25.0.ebuild index 66ad92fae09bd..a4c5626eb7ec1 100644 --- a/app-emacs/php-mode/php-mode-1.25.0.ebuild +++ b/app-emacs/php-mode/php-mode-1.25.0.ebuild @@ -7,13 +7,20 @@ inherit elisp DESCRIPTION="GNU Emacs major mode for editing PHP code" HOMEPAGE="https://github.com/emacs-php/php-mode/" -SRC_URI="https://github.com/emacs-php/${PN}/archive/v${PV}.tar.gz - -> ${P}.tar.gz" + +if [[ ${PV} == *9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/emacs-php/${PN}.git" +else + SRC_URI="https://github.com/emacs-php/${PN}/archive/v${PV}.tar.gz + -> ${P}.tar.gz" + KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +fi + S="${WORKDIR}"/${P}/lisp LICENSE="GPL-3+" SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" DOCS=( ../AUTHORS.md ../CHANGELOG.md ../CONTRIBUTING.md ../README{,.ja}.md ../docs ) SITEFILE="50${PN}-gentoo.el"