commit:     cea76b0bd5a07c3e67399394456fbdb031f42fe4
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May 14 05:32:24 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 14 05:32:56 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cea76b0b

dev-libs/botan: port to tc-check-min_ver

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/botan/botan-3.8.1.ebuild | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/dev-libs/botan/botan-3.8.1.ebuild 
b/dev-libs/botan/botan-3.8.1.ebuild
index 6c759e64bbb6..02403bf77b27 100644
--- a/dev-libs/botan/botan-3.8.1.ebuild
+++ b/dev-libs/botan/botan-3.8.1.ebuild
@@ -64,15 +64,8 @@ pkg_pretend() {
        [[ ${MERGE_TYPE} == binary ]] && return
 
        # bug #908958
-       if tc-is-gcc && ver_test $(gcc-version) -lt 11 ; then
-               eerror "Botan needs >=gcc-11 or >=clang-14 to compile."
-               eerror "Please upgrade GCC: emerge -v1 sys-devel/gcc"
-               die "GCC version is too old to compile Botan!"
-       elif tc-is-clang && ver_test $(clang-version) -lt 14 ; then
-               eerror "Botan needs >=gcc-11 or >=clang-14 to compile."
-               eerror "Please upgrade Clang: emerge -v1 llvm-core/clang"
-               die "Clang version is too old to compile Botan!"
-       fi
+       tc-check-min_ver gcc 11
+       tc-check-min_ver clang 14
 }
 
 src_configure() {

Reply via email to