-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
DISTUTILS_SINGLE_IMPL=1
-inherit toolchain-funcs distutils-r1
+inherit toolchain-funcs distutils-r1 eapi7-ver
DESCRIPTION="A sub-package that adds CUDA-capability to Pyrit"
HOMEPAGE="https://github.com/JPaulMora/Pyrit"
S="${WORKDIR}/Pyrit-${PV}/modules/cpyrit_cuda"
pkg_pretend() {
- if tc-is-gcc && [[ $(gcc-version) > 4.8 ]]; then
- die "gcc 4.9 and up are not supported"
+ if tc-is-gcc && ver_test $(gcc-version) -ge 4.8; then
+ die "gcc 4.8 and up are not supported"
fi
}