commit:     423186474fb376ce83d9f4c529dcab3d2c40f91b
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 27 20:34:09 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=42318647

app-emacs/puppet-mode: bump EAPI to 8; refactor

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

 app-emacs/puppet-mode/puppet-mode-0.4-r1.ebuild | 28 +++++++++++++++++++++++++
 app-emacs/puppet-mode/puppet-mode-0.4.ebuild    | 26 -----------------------
 2 files changed, 28 insertions(+), 26 deletions(-)

diff --git a/app-emacs/puppet-mode/puppet-mode-0.4-r1.ebuild 
b/app-emacs/puppet-mode/puppet-mode-0.4-r1.ebuild
new file mode 100644
index 000000000000..4ee3e9212a70
--- /dev/null
+++ b/app-emacs/puppet-mode/puppet-mode-0.4-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit elisp
+
+DESCRIPTION="Emacs major mode for editing Puppet manifests"
+HOMEPAGE="https://github.com/voxpupuli/puppet-mode/";
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/voxpupuli/${PN}";
+else
+       SRC_URI="https://github.com/voxpupuli/puppet-mode/archive/${PV}.tar.gz
+               -> ${P}.tar.gz"
+
+       KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv x86"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+
+DOCS=( CHANGES.md README.md )
+SITEFILE="50${PN}-1-gentoo.el"
+
+elisp-enable-tests ert test

diff --git a/app-emacs/puppet-mode/puppet-mode-0.4.ebuild 
b/app-emacs/puppet-mode/puppet-mode-0.4.ebuild
deleted file mode 100644
index 275c2c1214b1..000000000000
--- a/app-emacs/puppet-mode/puppet-mode-0.4.ebuild
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit elisp
-
-DESCRIPTION="Emacs major mode for editing Puppet manifests"
-HOMEPAGE="https://github.com/voxpupuli/puppet-mode";
-SRC_URI="https://github.com/voxpupuli/puppet-mode/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv x86"
-
-DOCS="CHANGES.md README.md"
-SITEFILE="50${PN}-1-gentoo.el"
-
-# Tests require unpackaged ert-runner
-RESTRICT="test"
-
-src_prepare() {
-       elisp_src_prepare
-
-       sed -i -e 's/@VERSION@/'${PV}'/' puppet-mode.el || die
-}

Reply via email to