commit:     b1abd9c3fafec28ddc8185ba043c776dcbc663fb
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 27 20:29:07 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat Dec 27 21:01:55 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1abd9c3

app-emacs/rpm-spec-mode: style and refactor

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-emacs/rpm-spec-mode/rpm-spec-mode-0.16.ebuild | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git a/app-emacs/rpm-spec-mode/rpm-spec-mode-0.16.ebuild 
b/app-emacs/rpm-spec-mode/rpm-spec-mode-0.16.ebuild
index 494a671457fa..f1781b36ce4f 100644
--- a/app-emacs/rpm-spec-mode/rpm-spec-mode-0.16.ebuild
+++ b/app-emacs/rpm-spec-mode/rpm-spec-mode-0.16.ebuild
@@ -1,24 +1,32 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-[[ ${PV} == 0.16 ]] && COMMIT=7d06d19a31e888b932da6c8202ff2c73f42703a1
+[[ "${PV}" == 0.16 ]] && COMMIT=7d06d19a31e888b932da6c8202ff2c73f42703a1
 
 inherit elisp
 
 DESCRIPTION="Emacs mode to ease editing of RPM spec files"
 HOMEPAGE="https://www.emacswiki.org/emacs/RpmSpecMode
        https://github.com/stigbjorlykke/rpm-spec-mode/";
-SRC_URI="https://github.com/stigbjorlykke/${PN}/archive/${COMMIT}.tar.gz
-       -> ${P}.tar.gz"
-S="${WORKDIR}"/${PN}-${COMMIT}
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/stigbjorlykke/${PN}";
+else
+       SRC_URI="https://github.com/stigbjorlykke/${PN}/archive/${COMMIT}.tar.gz
+               -> ${P}.tar.gz"
+       S="${WORKDIR}/${PN}-${COMMIT}"
+
+       KEYWORDS="~amd64 ~x86"
+fi
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
 
-PATCHES=( "${FILESDIR}"/${PN}-0.15-emacs-28.patch )
+PATCHES=( "${FILESDIR}/${PN}-0.15-emacs-28.patch" )
 
 DOCS=( README.md )
 SITEFILE="50${PN}-gentoo.el"

Reply via email to