public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-emacs/
Date: Sat, 15 Feb 2025 09:29:26 +0000 (UTC)	[thread overview]
Message-ID: <1739611589.6d3503b7f39479544a6c0abfbe0b13a57e787bc5.ulm@gentoo> (raw)

commit:     6d3503b7f39479544a6c0abfbe0b13a57e787bc5
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:10:56 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 09:26:29 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d3503b7

app-eselect/eselect-emacs: Port to ver_replacing

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

 app-eselect/eselect-emacs/eselect-emacs-1.19.ebuild | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/app-eselect/eselect-emacs/eselect-emacs-1.19.ebuild b/app-eselect/eselect-emacs/eselect-emacs-1.19.ebuild
index e993f563b04e..2eb9f4c7400f 100644
--- a/app-eselect/eselect-emacs/eselect-emacs-1.19.ebuild
+++ b/app-eselect/eselect-emacs/eselect-emacs-1.19.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=7
 
+inherit eapi9-ver
+
 DESCRIPTION="Manage multiple Emacs versions on one system"
 HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs"
 SRC_URI="https://dev.gentoo.org/~ulm/emacs/${P}.tar.xz"
@@ -24,12 +26,9 @@ src_install() {
 }
 
 pkg_postinst() {
-	local v
-	for v in ${REPLACING_VERSIONS}; do
-		ver_test "${v}" -ge 1.19 && continue
+	if ver_replacing -lt 1.19; then
 		# Refresh, 1.19 introduced a symlink in /usr/include
 		local target=$(eselect --brief emacs show)
 		[[ ${target// } == emacs* ]] && eselect emacs set "${target// }"
-		break
-	done
+	fi
 }


             reply	other threads:[~2025-02-15  9:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-15  9:29 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-10  4:12 [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-emacs/ WANG Xuerui
2022-05-24 11:10 Ulrich Müller
2022-01-01 10:51 James Le Cuirot
2021-09-09 12:11 Ulrich Müller
2021-09-09  4:23 Sam James
2021-08-02  8:07 Ulrich Müller
2021-04-25 22:26 Ulrich Müller
2021-01-06 13:12 Fabian Groffen
2020-12-27 13:49 Fabian Groffen
2019-10-01 12:59 Ulrich Müller
2019-07-26 13:18 Aaron Bauman
2019-07-05 21:16 Andreas K. Hüttel
2017-06-18 11:56 Alexis Ballier
2017-01-29 14:49 Fabian Groffen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1739611589.6d3503b7f39479544a6c0abfbe0b13a57e787bc5.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox