commit:     bbc364de83bccc57ee8d3c7a366b859096bd3e90
Author:     Matt Jolly <Matt.Jolly <AT> footclan <DOT> ninja>
AuthorDate: Wed Oct 25 15:42:16 2023 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Wed Oct 25 16:15:33 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbc364de

www-client/chromium: add gn test to 119/beta

Signed-off-by: Matt Jolly <Matt.Jolly <AT> footclan.ninja>
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 www-client/chromium/chromium-119.0.6045.33.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/www-client/chromium/chromium-119.0.6045.33.ebuild 
b/www-client/chromium/chromium-119.0.6045.33.ebuild
index 41323a32a07d..aeab0b5fad59 100644
--- a/www-client/chromium/chromium-119.0.6045.33.ebuild
+++ b/www-client/chromium/chromium-119.0.6045.33.ebuild
@@ -14,6 +14,7 @@ PYTHON_REQ_USE="xml(+)"
 LLVM_MAX_SLOT=17
 LLVM_MIN_SLOT=16
 MIN_GCC_VER=12
+GN_MIN_VER=0.2122
 
 VIRTUALX_REQUIRED="pgo"
 
@@ -187,7 +188,7 @@ BDEPEND="
                $(depend_clang_llvm_versions ${LLVM_MIN_SLOT} ${LLVM_MAX_SLOT})
        )
        dev-lang/perl
-       >=dev-util/gn-0.2122
+       >=dev-util/gn-${GN_MIN_VER}
        >=dev-util/gperf-3.0.3
        >=dev-util/ninja-1.7.2
        dev-vcs/git
@@ -318,6 +319,10 @@ pkg_setup() {
                                die "At least Clang ${LLVM_MIN_SLOT} is 
required"
                        fi
                fi
+               # Users should never hit this, it's purely a development 
convenience
+               if ver_test $(gn --version || die) -lt ${GN_MIN_VER}; then
+                               die "dev-util/gn >= ${GN_MIN_VER} is required 
to build this Chromium"
+               fi
        fi
 
        chromium_suid_sandbox_check_kernel_config

Reply via email to