commit: af4d10cb0359ff4d6dd97c7be5e9a5499b436efe Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> AuthorDate: Sun Nov 27 19:50:45 2016 +0000 Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> CommitDate: Sun Nov 27 19:50:45 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af4d10cb
net-wireless/cpyrit-cuda: die in pretend if gcc > 4.8 Package-Manager: portage-2.3.0 net-wireless/cpyrit-cuda/cpyrit-cuda-0.5.0.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/net-wireless/cpyrit-cuda/cpyrit-cuda-0.5.0.ebuild b/net-wireless/cpyrit-cuda/cpyrit-cuda-0.5.0.ebuild index 3d56ede..bdb81b4 100644 --- a/net-wireless/cpyrit-cuda/cpyrit-cuda-0.5.0.ebuild +++ b/net-wireless/cpyrit-cuda/cpyrit-cuda-0.5.0.ebuild @@ -7,7 +7,7 @@ EAPI=6 PYTHON_COMPAT=( python2_7 ) DISTUTILS_SINGLE_IMPL=1 -inherit distutils-r1 +inherit toolchain-funcs distutils-r1 DESCRIPTION="A sub-package that adds CUDA-capability to Pyrit" HOMEPAGE="https://github.com/JPaulMora/Pyrit" @@ -26,6 +26,12 @@ PDEPEND="~net-wireless/pyrit-${PV}" 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" + fi +} + pkg_setup() { python-single-r1_pkg_setup }