commit: b7a467cb6dc22fc856db010ba60fd26936a2ec98 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Fri Feb 14 14:12:15 2025 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Sat Feb 15 09:26:38 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7a467cb
sys-power/intel-undervolt: Port to ver_replacing Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> sys-power/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 6390ac5c14d9..46f5c056910d 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 }
