commit:     ad6d3b2bc08e743a758183b0e7e0f786990b4779
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 28 13:50:04 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Fri Jun 28 14:00:20 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad6d3b2b

app-emacs/meson-mode: bump EAPI - 7 -> 8; misc tweaks

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

 .../{meson-mode-0.3.ebuild => meson-mode-0.3-r1.ebuild}  | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/app-emacs/meson-mode/meson-mode-0.3.ebuild 
b/app-emacs/meson-mode/meson-mode-0.3-r1.ebuild
similarity index 58%
rename from app-emacs/meson-mode/meson-mode-0.3.ebuild
rename to app-emacs/meson-mode/meson-mode-0.3-r1.ebuild
index 7f9a90e2ec2e..2af5cb5acb4e 100644
--- a/app-emacs/meson-mode/meson-mode-0.3.ebuild
+++ b/app-emacs/meson-mode/meson-mode-0.3-r1.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 NEED_EMACS=26.1
 
@@ -9,12 +9,20 @@ inherit elisp
 
 DESCRIPTION="A GNU Emacs major mode for Meson build-system files"
 HOMEPAGE="https://github.com/wentasah/meson-mode";
-SRC_URI="https://github.com/wentasah/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/wentasah/${PN}.git";
+else
+       SRC_URI="https://github.com/wentasah/${PN}/archive/v${PV}.tar.gz
+               -> ${P}.tar.gz"
+
+       KEYWORDS="amd64 ~arm64 ~riscv"
+fi
 
 LICENSE="GPL-3+"
 SLOT="0"
-KEYWORDS="amd64 ~arm64 ~riscv"
 
 DOCS=( README.md )
-
 SITEFILE="50${PN}-gentoo.el"

Reply via email to