summaryrefslogtreecommitdiff
blob: 3b338589951f40e06287cc9d2b1e867db6ba9753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2016 Gentoo Foundation
# 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

DESCRIPTION="A sub-package that adds CUDA-capability to Pyrit"
HOMEPAGE="https://github.com/JPaulMora/Pyrit"
SRC_URI="https://github.com/JPaulMora/Pyrit/archive/v${PV}.tar.gz -> pyrit-${PV}.tar.gz"

LICENSE="GPL-3+ GPL-3+-with-cuda-exception GPL-3+-with-cuda-openssl-exception"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="
	dev-libs/openssl:=
	net-libs/libpcap
	dev-util/nvidia-cuda-toolkit"
RDEPEND="${DEPEND}"
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
}