Avoid lexicographical compare in pkg_setup().
Closes: https://bugs.gentoo.org/705254
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
)
S=${WORKDIR}/${P}-src
-pkg_pretend() {
- if [[ $(tc-getCXX) == *g++* && $(gcc-version) < 4.9 ]] ; then
- die 'The active compiler needs to be gcc 4.9 (or newer) or clang'
- else
- einfo 'The active compiler should be ok'
- fi
-}
-
pkg_setup() {
games_pkg_setup
use doc && python-any-r1_pkg_setup