commit:     44d177c87746fff8873d14a5b432adb59e2c74c3
Author:     Uwe Scholz <uwescholz <AT> src <DOT> gnome <DOT> org>
AuthorDate: Wed May  1 19:58:16 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul  7 16:24:20 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44d177c8

gnome-extra/gnome-commander: check for gcc version correctly

Signed-off-by: Uwe Scholz <uwescholz <AT> src.gnome.org>
Closes: https://github.com/gentoo/gentoo/pull/11873
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 gnome-extra/gnome-commander/gnome-commander-1.10.0.ebuild | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/gnome-extra/gnome-commander/gnome-commander-1.10.0.ebuild 
b/gnome-extra/gnome-commander/gnome-commander-1.10.0.ebuild
index a5e742b15f1..87303c532e8 100644
--- a/gnome-extra/gnome-commander/gnome-commander-1.10.0.ebuild
+++ b/gnome-extra/gnome-commander/gnome-commander-1.10.0.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2019 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
 GNOME2_LA_PUNT="yes"
 
-inherit gnome2
+inherit gnome2 toolchain-funcs
 
 DESCRIPTION="A graphical, full featured, twin-panel file manager"
 HOMEPAGE="https://gcmd.github.io/";
@@ -35,7 +35,6 @@ DEPEND="
        ${RDEPEND}
        dev-util/gtk-doc-am
        sys-devel/gettext
-       >=sys-devel/gcc-8.2.0
        virtual/pkgconfig
        test? ( >=dev-cpp/gtest-1.7.0 )
 "
@@ -52,6 +51,13 @@ src_configure() {
                $(use_with unique)
 }
 
+pkg_pretend() {
+       if tc-is-gcc && [[ $(gcc-major-version) -lt 8 ]]; then
+               eerror "Compilation with gcc older than version 8 is not 
supported"
+               die "GCC to old, please use gcc-8 or above"
+       fi
+}
+
 pkg_postinst() {
        gnome2_pkg_postinst
        has_version dev-util/meld || elog "You need dev-util/meld to 
synchronize files and directories."

Reply via email to