From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7F2431582EF for ; Sat, 15 Feb 2025 09:29:29 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 61A5C343058 for ; Sat, 15 Feb 2025 09:29:29 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 6666411042D; Sat, 15 Feb 2025 09:29:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 5AD0A11042D for ; Sat, 15 Feb 2025 09:29:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0BEB8343058 for ; Sat, 15 Feb 2025 09:29:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 994D623C1 for ; Sat, 15 Feb 2025 09:29:26 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1739611589.6d3503b7f39479544a6c0abfbe0b13a57e787bc5.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-emacs/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-eselect/eselect-emacs/eselect-emacs-1.19.ebuild X-VCS-Directories: app-eselect/eselect-emacs/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 6d3503b7f39479544a6c0abfbe0b13a57e787bc5 X-VCS-Branch: master Date: Sat, 15 Feb 2025 09:29:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 43c566ee-42c8-4945-bb59-fcfffd583e88 X-Archives-Hash: 3cc6391df768b96d33e9668b74adc1c8 commit: 6d3503b7f39479544a6c0abfbe0b13a57e787bc5 Author: Ulrich Müller gentoo org> AuthorDate: Fri Feb 14 14:10:56 2025 +0000 Commit: Ulrich Müller gentoo 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 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 }