commit:     ecd102c35a753b734f72d48ee61c048b806da760
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  4 06:56:39 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr  4 07:21:43 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecd102c3

games-board/openyahtzee: port to EAPI 7, eutils--

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

 games-board/openyahtzee/openyahtzee-1.9.3.ebuild | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/games-board/openyahtzee/openyahtzee-1.9.3.ebuild 
b/games-board/openyahtzee/openyahtzee-1.9.3.ebuild
index def1007cccb..dbf5ebc9bb8 100644
--- a/games-board/openyahtzee/openyahtzee-1.9.3.ebuild
+++ b/games-board/openyahtzee/openyahtzee-1.9.3.ebuild
@@ -1,9 +1,10 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
+
 WX_GTK_VER="3.0"
-inherit eutils flag-o-matic wxwidgets toolchain-funcs versionator
+inherit flag-o-matic toolchain-funcs wxwidgets
 
 DESCRIPTION="A full-featured wxWidgets version of the classic dice game 
Yahtzee"
 HOMEPAGE="http://openyahtzee.sourceforge.net/";
@@ -12,19 +13,19 @@ SRC_URI="mirror://sourceforge/openyahtzee/${P}.tar.xz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
 
 RDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X]"
-DEPEND="${RDEPEND}
-       >=sys-devel/gcc-4.6
-       dev-libs/boost"
+DEPEND="
+       ${RDEPEND}
+       dev-libs/boost
+"
 
 pkg_pretend() {
        local ver=4.6
        local msg="You need at least GCC ${ver}.x for C++11 range-based 'for' 
and nullptr support."
 
        if tc-is-gcc ; then
-               if ! version_is_at_least ${ver} $(gcc-version); then
+               if ver_test ${ver} -gt $(gcc-version); then
                        die ${msg}
                fi
        else

Reply via email to