From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B5AE21395E2 for ; Sun, 27 Nov 2016 19:51:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6275EE094C; Sun, 27 Nov 2016 19:51:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3EBA6E094C for ; Sun, 27 Nov 2016 19:51:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 020993412F9 for ; Sun, 27 Nov 2016 19:51:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9084449C for ; Sun, 27 Nov 2016 19:51:46 +0000 (UTC) From: "Göktürk Yüksek" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Göktürk Yüksek" Message-ID: <1480276245.af4d10cb0359ff4d6dd97c7be5e9a5499b436efe.gokturk@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/cpyrit-cuda/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-wireless/cpyrit-cuda/cpyrit-cuda-0.5.0.ebuild X-VCS-Directories: net-wireless/cpyrit-cuda/ X-VCS-Committer: gokturk X-VCS-Committer-Name: Göktürk Yüksek X-VCS-Revision: af4d10cb0359ff4d6dd97c7be5e9a5499b436efe X-VCS-Branch: master Date: Sun, 27 Nov 2016 19:51:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f91abf43-a5e2-4415-810b-bd5f766028c8 X-Archives-Hash: 23db02ff1d3803b5590826fb628a1060 commit: af4d10cb0359ff4d6dd97c7be5e9a5499b436efe Author: Göktürk Yüksek gentoo org> AuthorDate: Sun Nov 27 19:50:45 2016 +0000 Commit: Göktürk Yüksek gentoo 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 }