From b7a467cb6dc22fc856db010ba60fd26936a2ec98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Fri, 14 Feb 2025 15:12:15 +0100 Subject: [PATCH] sys-power/intel-undervolt: Port to ver_replacing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ulrich Müller --- .../intel-undervolt/intel-undervolt-1.7-r1.ebuild | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/sys-power/intel-undervolt/intel-undervolt-1.7-r1.ebuild b/sys-power/intel-undervolt/intel-undervolt-1.7-r1.ebuild index 6390ac5c14d92..46f5c056910d7 100644 --- a/sys-power/intel-undervolt/intel-undervolt-1.7-r1.ebuild +++ b/sys-power/intel-undervolt/intel-undervolt-1.7-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit linux-info systemd toolchain-funcs +inherit eapi9-ver linux-info systemd toolchain-funcs DESCRIPTION="Intel CPU undervolting and throttling configuration tool" HOMEPAGE="https://github.com/kitsunyan/intel-undervolt" @@ -53,10 +53,8 @@ src_compile() { } pkg_postinst() { - for v in ${REPLACING_VERSIONS}; do - if [[ ${v} == 1.6 ]] ; then - elog "openrc service has been renamed to intel-undervolt-loop" - elog "please update your startup configuration" - fi - done + if ver_replacing -eq 1.6 ; then + elog "openrc service has been renamed to intel-undervolt-loop" + elog "please update your startup configuration" + fi }